/* =============================================
   double-standard.xyz v2 - Styles
   Palette:
     Honey Neutral: #F5E8D0
     Text Dark:     #2A2A2A
     Holo Base:     #E0D8F0
     Holo Accent:   #A088C0
     Sepia Warm:    #C8A878
     Curve Grey:    #8888A0
   Fonts:
     Space Grotesk (headlines), Nunito Sans (body), Cormorant (accent)
   ============================================= */

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

:root {
    --honey-neutral: #F5E8D0;
    --text-dark: #2A2A2A;
    --holo-base: #E0D8F0;
    --holo-accent: #A088C0;
    --sepia-warm: #C8A878;
    --curve-grey: #8888A0;
    --scroll-hue: 0deg;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.75;
    color: var(--text-dark);
    background-color: var(--honey-neutral);
    overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

h2 {
    font-size: clamp(28px, 4vw, 52px);
}

.accent-text {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(20px, 2.5vw, 36px);
}

/* =============================================
   KEYFRAMES
   ============================================= */

@keyframes hue-rotate-anim {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes prism-breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.04);
        opacity: 0.95;
    }
}

@keyframes ring-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes letter-appear {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes xyz-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes draw-z-path {
    0% { stroke-dashoffset: 3000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes scroll-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtle-float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-8px); }
}

/* =============================================
   PRISM OPENING SECTION
   ============================================= */

.section-prism {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--honey-neutral);
    overflow: hidden;
}

.prism-bg-wash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 60% 50% at 50% 50%,
        rgba(224, 216, 240, 0.25) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.prism-holographic-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff6b6b, #feca57, #48dbfb, #6bcb77, #a088c0, #ff9ff3, #ff6b6b
    );
    animation:
        hue-rotate-anim 8s linear infinite,
        prism-breathe 7s ease-in-out infinite;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, filter;
}

.prism-holographic-element.visible {
    opacity: 0.8;
}

.prism-holographic-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(
        from 90deg,
        rgba(160, 136, 192, 0.4),
        rgba(224, 216, 240, 0.1),
        rgba(200, 168, 120, 0.3),
        rgba(160, 136, 192, 0.4)
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    z-index: 1;
    animation: ring-spin 20s linear infinite;
    transition: opacity 1.2s ease 0.5s;
    pointer-events: none;
}

.prism-holographic-ring.visible {
    opacity: 0.6;
}

.prism-title {
    position: relative;
    z-index: 2;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
}

.title-main {
    display: inline-block;
    color: var(--text-dark);
}

.title-main .letter {
    display: inline-block;
    opacity: 0;
    animation: letter-appear 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.title-xyz {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #A088C0, #48dbfb, #ff9ff3, #feca57, #A088C0
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    animation: xyz-gradient-shift 5s ease-in-out infinite;
    animation-play-state: paused;
}

.title-xyz.visible {
    opacity: 1;
    animation-play-state: running;
}

.prism-frames {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    max-width: 720px;
    padding: 0 24px;
}

.vintage-frame {
    border: 4px solid var(--sepia-warm);
    border-radius: 4px;
    padding: 22px 26px;
    box-shadow:
        inset 0 0 14px rgba(200, 168, 120, 0.25),
        0 2px 12px rgba(42, 42, 42, 0.06);
    background: rgba(245, 232, 208, 0.72);
    flex: 1;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.vintage-frame.visible {
    opacity: 1;
    transform: translateY(0);
}

.frame-text {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.5;
    color: var(--text-dark);
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.scroll-hint.visible {
    opacity: 0.55;
}

.scroll-hint-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-dark);
}

.scroll-arrow {
    animation: scroll-hint-bounce 2.2s ease-in-out infinite;
}

/* =============================================
   Z-PATTERN COMPARISON SECTIONS
   ============================================= */

.section-z-pattern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background-color: var(--honey-neutral);
}

.section-z-pattern:nth-of-type(even) {
    background-color: #F0E2C6;
}

.z-connector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.z-curve {
    stroke: var(--curve-grey);
    stroke-width: 2;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-width 0.35s ease;
}

.z-curve.drawn {
    animation: draw-z-path 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.z-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    width: calc(100vw - 48px);
    max-width: 1100px;
    min-height: 60vh;
}

.z-quadrant {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.z-quadrant.visible {
    opacity: 1;
    transform: translateY(0);
}

.z-tl {
    background: rgba(224, 216, 240, 0.28);
    border: 1px solid rgba(160, 136, 192, 0.18);
    border-left: 3px solid var(--holo-accent);
}

.z-tr {
    background: rgba(224, 216, 240, 0.12);
    border: 1px solid rgba(160, 136, 192, 0.08);
}

.z-bl {
    background: rgba(224, 216, 240, 0.28);
    border: 1px solid rgba(160, 136, 192, 0.18);
    border-left: 3px solid var(--holo-accent);
}

.z-br {
    background: rgba(224, 216, 240, 0.12);
    border: 1px solid rgba(160, 136, 192, 0.08);
}

.z-heading {
    font-size: clamp(18px, 2.5vw, 28px);
    margin-bottom: 14px;
    line-height: 1.3;
}

.z-body {
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.75;
    color: var(--text-dark);
}

.z-treatment {
    padding: 16px 0;
}

.treatment-label {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 5px 16px;
    border-radius: 3px;
    margin-bottom: 14px;
}

.treatment-positive .treatment-label {
    background: rgba(107, 203, 119, 0.18);
    color: #2d7a38;
    border: 1px solid rgba(107, 203, 119, 0.3);
}

.treatment-negative .treatment-label {
    background: rgba(255, 107, 107, 0.18);
    color: #b83227;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.section-z-pattern:hover .z-curve.drawn {
    stroke-width: 3;
}

/* =============================================
   HOLOGRAPHIC GALLERY
   ============================================= */

.section-holo-gallery {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background-color: var(--holo-base);
    overflow: hidden;
}

.section-holo-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 80% 60% at 50% 50%,
        rgba(160, 136, 192, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.gallery-heading {
    font-size: clamp(28px, 4vw, 52px);
    text-align: center;
    margin-bottom: 64px;
    color: var(--text-dark);
    position: relative;
}

.holo-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    width: 100%;
    padding: 0 24px;
    position: relative;
}

.holo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 270px;
    cursor: default;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(42, 42, 42, 0.08);
}

.holo-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.holo-card:hover {
    box-shadow: 0 8px 32px rgba(160, 136, 192, 0.22);
}

.holo-card-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        #ff6b6b, #feca57, #48dbfb, #6bcb77, #a088c0, #ff9ff3, #E0D8F0, #ff6b6b
    );
    filter: hue-rotate(var(--scroll-hue));
    opacity: 0.45;
    transition: opacity 0.35s ease;
    will-change: filter;
}

.holo-card:hover .holo-card-surface {
    opacity: 0.65;
}

.holo-card-content {
    position: relative;
    z-index: 2;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: rgba(245, 232, 208, 0.78);
    margin: 3px;
    border-radius: 12px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.holo-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 14px;
    color: var(--text-dark);
}

.holo-card-text {
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
    color: var(--text-dark);
    flex: 1;
    margin-bottom: 18px;
}

.holo-card-year {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(16px, 1.5vw, 22px);
    color: var(--holo-accent);
}

/* =============================================
   VINTAGE EVIDENCE SECTION
   ============================================= */

.section-vintage {
    position: relative;
    min-height: 80vh;
    padding: 80px 24px;
    background-color: var(--honey-neutral);
    filter: sepia(0.15);
}

.vintage-header {
    text-align: center;
    margin-bottom: 64px;
}

.vintage-heading {
    font-size: clamp(28px, 4vw, 52px);
    color: var(--text-dark);
    margin-bottom: 14px;
}

.vintage-subtitle {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(16px, 1.8vw, 24px);
    color: var(--sepia-warm);
}

.vintage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.vintage-item {
    transition: filter 0.4s ease;
}

.vintage-item:hover {
    filter: sepia(0.4);
}

.vintage-item-frame {
    border: 4px solid var(--sepia-warm);
    border-radius: 4px;
    padding: 34px 30px;
    box-shadow:
        inset 0 0 18px rgba(200, 168, 120, 0.28),
        0 2px 10px rgba(42, 42, 42, 0.04);
    background: rgba(245, 232, 208, 0.85);
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.vintage-item:hover .vintage-item-frame {
    box-shadow:
        inset 0 0 22px rgba(200, 168, 120, 0.35),
        0 4px 16px rgba(42, 42, 42, 0.06);
}

.vintage-item-number {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 42px);
    color: var(--sepia-warm);
    display: block;
    margin-bottom: 10px;
}

.vintage-item-title {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-dark);
    margin-bottom: 14px;
}

.vintage-item-text {
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.75;
    color: var(--text-dark);
}

/* =============================================
   UNIFIED FOOTER
   ============================================= */

.section-footer {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-holographic-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 180deg at 50% 50%,
        #E0D8F0, #A088C0, #C8A878, #F5E8D0, #E0D8F0
    );
    opacity: 0.55;
    animation: hue-rotate-anim 16s linear infinite;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 620px;
    padding: 48px 24px;
}

.footer-quote {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(20px, 2.5vw, 36px);
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 36px;
}

.footer-separator {
    width: 64px;
    height: 2px;
    background: var(--text-dark);
    margin: 0 auto 36px;
    opacity: 0.35;
}

.footer-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.footer-note {
    font-size: clamp(13px, 1vw, 15px);
    color: var(--curve-grey);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .prism-holographic-element {
        width: 260px;
        height: 260px;
    }

    .prism-holographic-ring {
        width: 330px;
        height: 330px;
    }

    .prism-frames {
        flex-direction: column;
        gap: 20px;
    }

    .z-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .z-quadrant {
        padding: 28px 24px;
    }

    .holo-cards-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .vintage-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .prism-holographic-element {
        width: 200px;
        height: 200px;
    }

    .prism-holographic-ring {
        width: 260px;
        height: 260px;
    }

    .prism-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .section-z-pattern {
        padding: 60px 16px;
    }

    .section-holo-gallery {
        padding: 60px 16px;
    }
}
