/* ============================================
   polytics.club - Victorian Oceanic Design
   Aesthetic: victorian-ornate
   Layout: single-column
   Typography: playfair-elegant
   Palette: ocean-deep
   Patterns: zoom-focus
   Imagery: collage
   Motifs: particle-effects
   Tone: warm-inviting
   ============================================ */

/* CSS Custom Properties */
:root {
    --bg-surface: #0a1628;
    --bg-mid: #071220;
    --bg-abyss: #040c18;
    --gold: #d4af37;
    --brass: #a08520;
    --text-body: #c8d8e8;
    --text-emphasis: #e0dcc8;
    --teal: #1a8a7a;
    --particle-cyan: #4ecdc4;
    --divider-gold: rgba(212, 175, 55, 0.4);
    --depth-progress: 0;
    --column-bg-1: #0b1e3d;
    --column-bg-2: #0d2244;
}

/* Reset and Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-surface);
    color: var(--text-body);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   CONTENT COLUMN
   ============================================ */
.content-column {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 28px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 60%),
        repeating-linear-gradient(
            180deg,
            var(--column-bg-1) 0px,
            var(--column-bg-2) 1px
        );
    background-size: 100% 100%, 100% 2px;
    box-shadow: 0 0 80px 40px rgba(11, 30, 61, 0.6);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 0;
    position: relative;
}

/* Crest */
.crest {
    margin-bottom: 48px;
    animation: crest-pulse 6s ease-in-out infinite;
}

.crest-svg {
    width: 160px;
    height: 192px;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.15));
}

@keyframes crest-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

/* Hero Title */
.hero-title {
    font-family: 'Cinzel Decorative', 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--gold);
    letter-spacing: 0.04em;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3),
                 0 0 60px rgba(212, 175, 55, 0.08);
    margin-bottom: 24px;
    display: inline-block;
    line-height: 1.1;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    transform: scale(0.5);
    filter: blur(4px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-char.revealed {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.hero-char-dot {
    color: var(--teal);
}

/* Hero Tagline */
.hero-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-body);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease 0.2s, transform 1.2s ease 0.2s;
    max-width: 500px;
    letter-spacing: 0.02em;
}

.hero-tagline.revealed {
    opacity: 0.85;
    transform: translateY(0);
}

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

.hero-scroll-indicator svg {
    width: 24px;
    height: 40px;
}

.scroll-dot {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { cy: 12; opacity: 0.5; }
    50% { cy: 26; opacity: 0.2; }
}

@keyframes fade-in-scroll {
    to { opacity: 0.4; }
}

/* ============================================
   DEPTH SECTIONS
   ============================================ */
.depth-section {
    min-height: 90vh;
    padding: 80px 0;
    position: relative;
}

/* ============================================
   SECTION HEADERS WITH VICTORIAN FRAME
   ============================================ */
.section-header {
    text-align: center;
    padding: 32px 44px;
    margin-bottom: 56px;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--gold);
    letter-spacing: 0.04em;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    line-height: 1.3;
}

/* ============================================
   VICTORIAN FRAME SYSTEM
   Pure CSS ornamental frames
   ============================================ */
.victorian-frame {
    position: relative;
    border: 2px solid var(--gold);
    border-radius: 2px;
    outline: 1px solid rgba(212, 175, 55, 0.5);
    outline-offset: 6px;
    background: rgba(11, 30, 61, 0.35);
}

/* Top-left and top-right corner flourishes */
.victorian-frame::before,
.victorian-frame::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--gold);
    border-radius: 50% 0;
    z-index: 2;
}

.victorian-frame::before {
    top: -7px;
    left: -7px;
    transform: rotate(0deg);
}

.victorian-frame::after {
    top: -7px;
    right: -7px;
    transform: rotate(90deg);
}

/* Enhanced frame for section headers */
.section-header.victorian-frame {
    background: rgba(11, 30, 61, 0.5);
}

.section-header.victorian-frame::before {
    top: -9px;
    left: -9px;
    width: 14px;
    height: 14px;
}

.section-header.victorian-frame::after {
    top: -9px;
    right: -9px;
    width: 14px;
    height: 14px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-content p {
    margin-bottom: 1.5em;
    color: var(--text-body);
}

.section-content strong,
.section-content b {
    font-weight: 600;
    color: var(--text-emphasis);
}

/* Drop Caps - Cinzel Decorative initial letter */
.drop-cap-text::first-letter {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    font-size: 4em;
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Pull Quotes */
.pull-quote {
    padding: 36px 44px;
    margin: 56px 0;
    text-align: center;
}

.pull-quote p {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-emphasis);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   COLLAGE PANELS
   Overlapping, rotated panels evoking
   Victorian political ephemera
   ============================================ */
.collage-panel-group {
    position: relative;
    margin: 56px 0;
    padding: 20px 0;
}

.collage-panel {
    position: relative;
    margin-bottom: 24px;
    transition: transform 0.4s ease-out, filter 0.4s ease-out, opacity 0.4s ease-out, z-index 0s;
}

/* Individual panel rotations for collage effect */
.collage-panel-1 { transform: rotate(-1.5deg); z-index: 1; }
.collage-panel-2 { transform: rotate(2deg); margin-top: -16px; z-index: 2; }
.collage-panel-3 { transform: rotate(-0.8deg); margin-top: -18px; z-index: 3; }
.collage-panel-4 { transform: rotate(1.5deg); z-index: 1; }
.collage-panel-5 { transform: rotate(-2deg); margin-top: -16px; z-index: 2; }
.collage-panel-6 { transform: rotate(-1deg); z-index: 1; }
.collage-panel-7 { transform: rotate(2.5deg); margin-top: -16px; z-index: 2; }
.collage-panel-8 { transform: rotate(-1.8deg); margin-top: -18px; z-index: 3; }

.collage-inner {
    padding: 26px 30px;
}

.collage-inner h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: var(--gold);
    letter-spacing: 0.03em;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.collage-inner p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.75;
    margin-bottom: 0;
}

/* Collage panel depth-layering shadows */
.collage-panel .collage-inner {
    box-shadow: 4px 4px 0 var(--bg-abyss),
                8px 8px 0 rgba(212, 175, 55, 0.12);
}

/* Collage hover: zoom-focus intensification */
.collage-panel:hover {
    transform: rotate(0deg) scale(1.03) !important;
    filter: brightness(1.15);
    z-index: 10 !important;
}

.collage-panel:hover .collage-inner {
    box-shadow: 6px 6px 0 var(--bg-abyss),
                12px 12px 0 rgba(212, 175, 55, 0.18);
}

/* Dim siblings on hover */
.collage-panel-group:hover .collage-panel:not(:hover) {
    opacity: 0.7;
}

/* ============================================
   ORNAMENTAL DIVIDERS
   SVG scrollwork with stroke-draw animation
   ============================================ */
.ornamental-divider {
    padding: 44px 0;
    text-align: center;
    overflow: visible;
}

.divider-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    animation: divider-breathe 8s ease-in-out infinite;
}

.divider-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.divider-path.drawn {
    stroke-dashoffset: 0;
}

@keyframes divider-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* ============================================
   ENGRAVED ILLUSTRATIONS
   Single-stroke gold line art in Victorian
   engraving style
   ============================================ */
.engraved-illustration {
    text-align: center;
    margin: 56px 0;
}

.engraved-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.1));
}

.engraved-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2.5s ease-in-out;
}

.engraved-path.drawn {
    stroke-dashoffset: 0;
}

/* ============================================
   COMPASS ROSE NAVIGATION
   Fixed position, slowly rotating, expands
   on hover to reveal section anchors
   ============================================ */
#compass-rose {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    z-index: 100;
    cursor: pointer;
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0.6;
}

#compass-rose:hover {
    opacity: 1;
    width: 210px;
    height: 210px;
}

.compass-svg {
    width: 100%;
    height: 100%;
    animation: compass-drift 120s linear infinite;
}

#compass-rose:hover .compass-svg {
    animation: none;
    transform: rotate(0deg);
}

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

.compass-labels {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    height: 210px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

#compass-rose:hover .compass-labels {
    opacity: 1;
    pointer-events: auto;
}

.compass-label {
    position: absolute;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    color: var(--text-body);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
    background: rgba(4, 12, 24, 0.85);
    padding: 2px 6px;
    border-radius: 2px;
}

.compass-label:hover {
    color: var(--gold);
}

.compass-label-n {
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-label-e {
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
}

.compass-label-s {
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-label-w {
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
}

/* ============================================
   ZOOM-FOCUS REVEAL ANIMATION
   Elements emerge from blurred, scaled-down
   state as if resolving through murky water
   ============================================ */
.zoom-reveal {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(3px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zoom-reveal.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Stagger children in collage groups */
.collage-panel.zoom-reveal:nth-child(1) { transition-delay: 0ms; }
.collage-panel.zoom-reveal:nth-child(2) { transition-delay: 100ms; }
.collage-panel.zoom-reveal:nth-child(3) { transition-delay: 200ms; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    text-align: center;
    padding: 80px 0 120px;
}

.footer-crest {
    margin-bottom: 20px;
    opacity: 0.6;
}

.footer-crest svg {
    width: 48px;
    height: 56px;
}

.footer-text {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.footer-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(200, 216, 232, 0.45);
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--particle-cyan);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(212, 175, 55, 0.25);
    color: var(--text-emphasis);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .content-column {
        padding: 0 18px;
    }

    .section-header {
        padding: 24px 22px;
    }

    .collage-inner {
        padding: 20px 22px;
    }

    .pull-quote {
        padding: 24px 22px;
    }

    #compass-rose {
        bottom: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    #compass-rose:hover {
        width: 180px;
        height: 180px;
    }

    .crest-svg {
        width: 120px;
        height: 144px;
    }

    .collage-panel-1,
    .collage-panel-2,
    .collage-panel-3,
    .collage-panel-4,
    .collage-panel-5,
    .collage-panel-6,
    .collage-panel-7,
    .collage-panel-8 {
        margin-top: 12px !important;
    }

    .ornamental-divider {
        padding: 32px 0;
    }

    .depth-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .depth-section {
        min-height: auto;
        padding: 50px 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-header {
        padding: 20px 16px;
    }

    .collage-inner {
        padding: 16px 18px;
    }

    .hero-scroll-indicator {
        bottom: 24px;
    }
}
