/* ============================================
   double-standard.org v2 - Styles
   Colors: #F0D8C0, #C0D0E0, #6A3A20, #2A3A4A, #C04030, #B88040
   Fonts: Vollkorn 700, Nunito 400/600, Fira Sans 400
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.75;
    color: #2A3A4A;
    overflow-x: hidden;
    background: #F0D8C0;
}

h1, h2, h3, h4 {
    font-family: 'Vollkorn', serif;
    font-weight: 700;
}

/* ============================================
   SECTION 1: Mirror Opening
   ============================================ */

.mirror-opening {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.mirror-half {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mirror-warm {
    background: linear-gradient(160deg, #F0D8C0 0%, #E8C0A0 35%, #D8A878 70%, #C89060 100%);
}

.mirror-cool {
    background: linear-gradient(200deg, #C0D0E0 0%, #A0B4C8 35%, #8098B0 70%, #6880A0 100%);
}

/* Divider line between halves */
.mirror-divider {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(192, 64, 48, 0.4) 20%,
        rgba(192, 64, 48, 0.7) 50%,
        rgba(192, 64, 48, 0.4) 80%,
        transparent 100%
    );
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: fadeDivider 0.8s ease-out 0.6s forwards;
}

@keyframes fadeDivider {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Generative shapes */
.generative-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.85);
    animation: bloomShapes 0.7s ease-out 0.3s forwards;
}

@keyframes bloomShapes {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    60% {
        opacity: 0.9;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.generative-blurred {
    filter: blur(4px);
}

/* Title */
.mirror-title-half {
    position: relative;
    z-index: 5;
}

.title-word {
    font-family: 'Vollkorn', serif;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 80px);
    letter-spacing: 0.1em;
    opacity: 0;
    display: block;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.title-double {
    color: #6A3A20;
    text-align: right;
    transform: translateX(60%);
    animation: slideDoubleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.title-standard {
    color: #2A3A4A;
    text-align: left;
    transform: translateX(-60%);
    animation: slideStandardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

@keyframes slideDoubleIn {
    from {
        opacity: 0;
        transform: translateX(60%);
    }
    to {
        opacity: 1;
        transform: translateX(18%);
    }
}

@keyframes slideStandardIn {
    from {
        opacity: 0;
        transform: translateX(-60%);
    }
    to {
        opacity: 1;
        transform: translateX(-18%);
    }
}

/* Scroll prompt arrow */
.scroll-prompt {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    opacity: 0;
    animation: fadeInBounce 2s ease-in-out 2.4s infinite;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    15% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
    85% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-arrow path {
    stroke: #C04030;
}

/* ============================================
   SECTION 2: Timeline
   ============================================ */

.timeline-section {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(180deg,
        #F0D8C0 0%,
        #E8DCD2 8%,
        #DDE2E8 25%,
        #D8DDE4 50%,
        #DDE2E8 75%,
        #E8DCD2 92%,
        #F0D8C0 100%
    );
    min-height: 400vh;
}

.timeline-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 0%;
    background: linear-gradient(180deg,
        #C04030 0%,
        #B88040 30%,
        #C04030 60%,
        #B88040 100%
    );
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 2px;
}

.timeline-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 5%;
    gap: 50px;
}

.timeline-dot {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #C04030;
    border: 3px solid #F0D8C0;
    z-index: 3;
    margin-top: 26px;
    box-shadow: 0 0 0 4px #C04030;
}

.timeline-dot-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(192, 64, 48, 0.3);
    transform: translate(-50%, -50%);
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.timeline-card {
    width: 38%;
    max-width: 440px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card.visible {
    opacity: 1;
    transform: translateX(0) !important;
}

/* Standard A -- privileged side: warm, spacious, emphasized */
.timeline-card-left.standard-a {
    background: linear-gradient(135deg, #F0D8C0 0%, #F4E0CC 100%);
    border: 3px solid #B88040;
    color: #6A3A20;
    padding: 44px 40px;
    transform: translateX(-70px);
    box-shadow: 0 10px 40px rgba(184, 128, 64, 0.18), 0 2px 8px rgba(184, 128, 64, 0.08);
}

/* Standard B -- constrained side: cool, compact, muted */
.timeline-card-right.standard-b {
    background: linear-gradient(135deg, #C0D0E0 0%, #C8D6E4 100%);
    border: 1px solid #96A6B6;
    color: #2A3A4A;
    padding: 24px 22px;
    transform: translateX(70px);
    box-shadow: 0 4px 16px rgba(42, 58, 74, 0.06);
}

/* Highlight on hover pairing */
.timeline-card.highlight-pair {
    border-color: #C04030 !important;
    box-shadow: 0 0 24px rgba(192, 64, 48, 0.35), 0 0 60px rgba(192, 64, 48, 0.1) !important;
}

.timeline-label {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 14px;
}

.standard-a .timeline-label {
    color: #B88040;
}

.standard-b .timeline-label {
    color: #2A3A4A;
    opacity: 0.55;
}

.timeline-card-title {
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 14px;
    line-height: 1.3;
}

.standard-a .timeline-card-title {
    color: #6A3A20;
}

.standard-b .timeline-card-title {
    color: #2A3A4A;
}

.timeline-card-body {
    line-height: 1.75;
}

.standard-a .timeline-card-body {
    font-size: clamp(15px, 1.05vw, 17px);
    color: #6A3A20;
}

.standard-b .timeline-card-body {
    font-size: clamp(13px, 0.95vw, 15px);
    color: #2A3A4A;
    opacity: 0.8;
}

/* ============================================
   SECTION 3: Mountain Metaphor
   ============================================ */

.mountain-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #F0D8C0 0%, #E8C8A8 40%, #E0C098 100%);
    overflow: hidden;
}

.mountain-heading {
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(28px, 4vw, 56px);
    color: #6A3A20;
    z-index: 12;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 16px rgba(240, 216, 192, 0.6);
}

.mountain-landscape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    will-change: transform;
}

.mountain-layer-1 {
    height: 28%;
    background: #F0D8C0;
    clip-path: polygon(0% 100%, 0% 65%, 5% 55%, 12% 48%, 20% 58%, 28% 42%, 35% 50%, 42% 38%, 50% 46%, 58% 34%, 65% 44%, 72% 36%, 80% 48%, 88% 40%, 95% 52%, 100% 42%, 100% 100%);
    z-index: 2;
    opacity: 0.45;
}

.mountain-layer-2 {
    height: 42%;
    background: #E0C098;
    clip-path: polygon(0% 100%, 0% 60%, 8% 50%, 15% 56%, 22% 44%, 30% 52%, 38% 40%, 45% 48%, 52% 36%, 60% 44%, 68% 34%, 75% 46%, 82% 38%, 90% 48%, 100% 42%, 100% 100%);
    z-index: 3;
    opacity: 0.6;
}

.mountain-layer-3 {
    height: 56%;
    background: #D4A878;
    clip-path: polygon(0% 100%, 0% 55%, 10% 45%, 18% 52%, 25% 38%, 33% 46%, 40% 34%, 48% 42%, 55% 30%, 62% 40%, 70% 32%, 78% 44%, 85% 36%, 92% 46%, 100% 38%, 100% 100%);
    z-index: 4;
    opacity: 0.72;
}

.mountain-layer-4 {
    height: 68%;
    background: #B88040;
    clip-path: polygon(0% 100%, 0% 52%, 7% 46%, 14% 54%, 22% 40%, 30% 48%, 38% 36%, 45% 28%, 52% 38%, 60% 46%, 68% 34%, 76% 42%, 84% 36%, 92% 44%, 100% 48%, 100% 100%);
    z-index: 5;
    opacity: 0.82;
}

.mountain-layer-5 {
    height: 78%;
    background: #6A3A20;
    clip-path: polygon(0% 100%, 0% 58%, 8% 50%, 16% 58%, 24% 44%, 32% 52%, 40% 40%, 48% 32%, 54% 26%, 60% 36%, 68% 46%, 76% 38%, 84% 44%, 92% 38%, 100% 50%, 100% 100%);
    z-index: 6;
    opacity: 0.4;
}

.mountain-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
}

.mountain-label {
    position: absolute;
    cursor: pointer;
    z-index: 11;
}

.label-text {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #6A3A20;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(240, 216, 192, 0.88);
    padding: 7px 16px;
    border-radius: 24px;
    border: 1px solid rgba(184, 128, 64, 0.5);
    transition: color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    display: inline-block;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mountain-label:hover .label-text {
    color: #C04030;
    box-shadow: 0 0 20px rgba(192, 64, 48, 0.4), 0 0 40px rgba(192, 64, 48, 0.15);
    background: rgba(240, 216, 192, 0.96);
    border-color: #C04030;
}

.label-tooltip {
    display: block;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #6A3A20;
    background: rgba(240, 216, 192, 0.96);
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #B88040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 24px rgba(106, 58, 32, 0.15);
    max-width: 280px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mountain-label:hover .label-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SECTION 4: Magnetic CTA Zone
   ============================================ */

.magnetic-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    background: linear-gradient(145deg, #2A3A4A 0%, #344454 40%, #2E3E4E 60%, #2A3A4A 100%);
    overflow: hidden;
}

.magnetic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 600px 400px at 25% 35%, rgba(192, 64, 48, 0.06) 0%, transparent 100%),
        radial-gradient(ellipse 500px 350px at 75% 65%, rgba(184, 128, 64, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.magnetic-heading {
    font-size: clamp(28px, 4vw, 56px);
    color: #F0D8C0;
    margin-bottom: 70px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.magnetic-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.magnetic-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.magnetic-element {
    background: rgba(240, 216, 192, 0.06);
    border: 1px solid rgba(240, 216, 192, 0.15);
    border-radius: 14px;
    padding: 40px 32px;
    width: 200px;
    text-align: center;
    color: #F0D8C0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                background 0.4s ease,
                border-color 0.4s ease;
    cursor: default;
    opacity: 0;
    will-change: transform;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.magnetic-element.gathered {
    opacity: 1;
}

.magnetic-element h3 {
    font-size: clamp(20px, 2vw, 26px);
    margin-bottom: 14px;
    color: #C04030;
    transition: color 0.3s ease;
}

.magnetic-element p {
    font-size: 14px;
    line-height: 1.65;
    color: #C0D0E0;
    opacity: 0.85;
}

.magnetic-element:hover {
    background: rgba(240, 216, 192, 0.12);
    border-color: rgba(192, 64, 48, 0.6);
    box-shadow: 0 0 36px rgba(192, 64, 48, 0.2), 0 0 80px rgba(192, 64, 48, 0.06);
}

.magnetic-element:hover h3 {
    color: #F0D8C0;
}

/* ============================================
   SECTION 5: Resolution Footer
   ============================================ */

.resolution-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    overflow: hidden;
}

/* Merged gradient: warm and cool unify into one tone */
.resolution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        #2A3A4A 0%,
        #6A7A8A 15%,
        #C8BEB4 35%,
        #D4C4B4 50%,
        #D4C4B4 70%,
        #D4C4B4 100%
    );
    z-index: 0;
}

.resolution-content {
    text-align: center;
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.resolution-heading {
    font-size: clamp(32px, 5vw, 64px);
    color: #6A3A20;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.resolution-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.resolution-text {
    font-size: clamp(16px, 1.2vw, 20px);
    color: #2A3A4A;
    line-height: 1.85;
    margin-bottom: 44px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

.resolution-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.resolution-divider {
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, #B88040, #C04030, #B88040);
    margin: 0 auto 34px;
    border-radius: 2px;
}

.resolution-credit {
    font-family: 'Fira Sans', sans-serif;
    font-size: 13px;
    color: #6A3A20;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .mirror-opening {
        flex-direction: column;
    }

    .mirror-half {
        width: 100%;
        height: 50%;
    }

    .mirror-divider {
        left: 0;
        top: 50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(192, 64, 48, 0.4) 20%,
            rgba(192, 64, 48, 0.7) 50%,
            rgba(192, 64, 48, 0.4) 80%,
            transparent 100%
        );
        transform: translateY(-50%);
    }

    .title-double {
        text-align: center;
        animation-name: slideDoubleInMobile;
    }

    .title-standard {
        text-align: center;
        animation-name: slideStandardInMobile;
    }

    @keyframes slideDoubleInMobile {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes slideStandardInMobile {
        from { opacity: 0; transform: translateY(-30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .timeline-section {
        padding: 80px 0 60px;
    }

    .timeline-node {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 40px 5%;
    }

    .timeline-card {
        width: 88%;
        max-width: none;
    }

    .timeline-card-left.standard-a {
        transform: translateX(-35px);
    }

    .timeline-card-right.standard-b {
        transform: translateX(35px);
    }

    .timeline-dot {
        margin-top: 0;
        order: -1;
    }

    .timeline-center-line {
        display: none;
    }

    .magnetic-element {
        width: 155px;
        padding: 28px 20px;
    }

    .magnetic-container {
        gap: 20px;
    }

    .label-tooltip {
        max-width: 200px;
        font-size: 12px;
    }

    .mountain-heading {
        top: 4%;
        font-size: clamp(24px, 5vw, 36px);
    }
}

@media (max-width: 480px) {
    .title-word {
        font-size: clamp(28px, 10vw, 50px);
    }

    .magnetic-element {
        width: 140px;
        padding: 22px 16px;
    }

    .timeline-card-left.standard-a {
        padding: 28px 24px;
    }

    .timeline-card-right.standard-b {
        padding: 20px 18px;
    }
}
