/* diplomacy.bar - Styles */
/* Colors: #2A2A3B, #1D1D27, #8C7B5E, #8C8C9A, #C0C0D4, #E8E8F2, #C9A96E, #A03030 */
/* Fonts: Space Grotesk (headlines), IBM Plex Mono (body), Inter (UI) */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #1D1D27;
    color: #C0C0D4;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Bokeh Canvas */
#bokeh-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Ambient Overlay */
#ambient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 30% 20%, rgba(201,169,110,0.03) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(140,140,154,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(42,42,59,0.5) 0%, transparent 100%);
}

/* Sections */
.section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 40px;
}

.section-inner {
    max-width: 800px;
    width: 100%;
    position: relative;
}

.section-wide .section-inner {
    max-width: 960px;
}

/* Chrome Text Effect */
.chrome-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(
        135deg,
        #8C8C9A 0%,
        #E8E8F2 25%,
        #C9A96E 50%,
        #E8E8F2 75%,
        #C0C0D4 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chromeShimmer 8s ease-in-out infinite;
}

@keyframes chromeShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero Title */
#hero-title {
    font-size: clamp(56px, 10vw, 88px);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 2s ease-out 0.5s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter */
.typewriter-text {
    text-align: center;
    margin-top: 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #8C8C9A;
    opacity: 0;
    animation: subtitleFadeIn 1.5s ease-out 2.5s forwards;
}

@keyframes subtitleFadeIn {
    to { opacity: 1; }
}

.typewriter-content {
    border-right: none;
}

.typewriter-cursor {
    display: inline-block;
    animation: cursorBlink 1s step-end infinite;
    color: #C9A96E;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: scrollFadeIn 1s ease-out 4s forwards;
}

@keyframes scrollFadeIn {
    to { opacity: 0.4; }
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #C9A96E, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* Section Labels */
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-label.visible {
    opacity: 1;
    transform: translateX(0);
}

.label-numeral {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #C9A96E;
    opacity: 0.6;
}

.label-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, #C9A96E, transparent);
    opacity: 0.4;
}

.label-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8C8C9A;
}

/* Content Blocks */
.content-block {
    margin-bottom: 40px;
}

.body-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.9;
    color: #C0C0D4;
    opacity: 0.85;
}

/* Reveal Animation */
.reveal-block {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    opacity: 0.06;
}

.float-champagne {
    background: #C9A96E;
    right: -60px;
    top: 20%;
}

.float-silver {
    background: #C0C0D4;
    left: -40px;
    bottom: 30%;
}

/* Protocol Cards */
.protocol-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.protocol-card {
    position: relative;
    padding: 40px;
    padding-left: 50px;
    background: rgba(42, 42, 59, 0.3);
    border: 1px solid rgba(201, 169, 110, 0.08);
    transition: border-color 0.6s ease, background 0.6s ease;
}

.protocol-card:hover {
    border-color: rgba(201, 169, 110, 0.2);
    background: rgba(42, 42, 59, 0.5);
}

.card-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #C9A96E, transparent);
    opacity: 0.4;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.15em;
    color: #C9A96E;
    margin-bottom: 16px;
    opacity: 0.8;
}

.card-body {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.8;
    color: #C0C0D4;
    opacity: 0.75;
}

/* Corridor Quote */
.corridor-quote {
    padding: 60px 0;
}

.diplomatic-quote {
    position: relative;
    border: none;
    padding: 0;
    margin: 0;
}

.quote-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 60px;
    line-height: 1;
    color: #C9A96E;
    opacity: 0.2;
    display: inline;
    vertical-align: top;
}

.quote-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 18px;
    line-height: 2;
    color: #E8E8F2;
    opacity: 0.9;
    display: block;
    padding: 20px 0;
}

.quote-attribution {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.attribution-line {
    width: 30px;
    height: 1px;
    background: #8C7B5E;
    opacity: 0.4;
}

.attribution-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8C8C9A;
    opacity: 0.5;
}

/* Corridor Atmosphere Lines */
.corridor-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.atmosphere-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,169,110,0.08), transparent);
    width: 100%;
    left: 0;
}

.atmosphere-line:nth-child(1) { top: 15%; }
.atmosphere-line:nth-child(2) { top: 35%; }
.atmosphere-line:nth-child(3) { top: 55%; }
.atmosphere-line:nth-child(4) { top: 70%; }
.atmosphere-line:nth-child(5) { top: 85%; }

/* Reception Grid */
.reception-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reception-item {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(140, 140, 154, 0.08);
    align-items: flex-start;
}

.reception-item:last-child {
    border-bottom: none;
}

.item-time {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: 0.05em;
    color: #C9A96E;
    opacity: 0.5;
    min-width: 100px;
    flex-shrink: 0;
}

.item-detail {
    flex: 1;
}

.item-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E8E8F2;
    margin-bottom: 12px;
    opacity: 0.85;
}

.item-desc {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.8;
    color: #8C8C9A;
    opacity: 0.7;
}

/* Archive */
.archive-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.archive-text .body-text {
    margin-bottom: 24px;
}

.archive-text .body-text:last-child {
    margin-bottom: 0;
}

.seal-svg {
    width: 160px;
    height: 160px;
    opacity: 0.6;
    animation: sealRotate 60s linear infinite;
}

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

/* Exit Section */
.section-final {
    text-align: center;
}

.exit-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exit-title {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 20px;
}

.exit-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: #C9A96E;
    opacity: 0.6;
    margin-bottom: 30px;
}

.exit-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #C9A96E, transparent);
    opacity: 0.3;
    margin-bottom: 30px;
}

.exit-footnote {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #8C8C9A;
    opacity: 0.35;
    text-transform: uppercase;
}

/* Typewriter Line Animation */
.typewriter-line {
    overflow: hidden;
}

.typewriter-line.typing .typewriter-char {
    opacity: 0;
    animation: charReveal 0.04s forwards;
}

@keyframes charReveal {
    to { opacity: 1; }
}

/* Section Transitions - Bleed Effect */
.section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(29,29,39,0));
    pointer-events: none;
}

/* Parallax drift on floating elements */
.floating-element {
    transition: transform 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 80px 24px;
    }

    .protocol-grid {
        gap: 24px;
    }

    .protocol-card {
        padding: 24px;
        padding-left: 34px;
    }

    .reception-item {
        flex-direction: column;
        gap: 12px;
    }

    .item-time {
        font-size: 20px;
    }

    .archive-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .archive-visual {
        display: flex;
        justify-content: center;
    }

    .quote-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #hero-title {
        font-size: 40px;
    }

    .exit-title {
        font-size: 24px;
    }

    .body-text,
    .card-body {
        font-size: 13px;
    }
}


/* Red accent for diplomatic emphasis */
.protocol-card:hover .card-accent {
    background: linear-gradient(to bottom, #A03030, transparent);
    opacity: 0.7;
}

.reception-item:hover .item-time {
    color: #A03030;
    opacity: 0.7;
    transition: color 0.4s ease, opacity 0.4s ease;
}

/* Bronze undertone accents */
.section-label:hover .label-numeral {
    color: #8C7B5E;
    transition: color 0.4s ease;
}

/* Selection Color */
::selection {
    background: rgba(201, 169, 110, 0.2);
    color: #E8E8F2;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #1D1D27;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.2);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 110, 0.4);
}
