/* dilemma.studio - High Contrast Duotone Brand */
/* Palette: #0a0a0a, #f5f5f5, #7a7a7a, #ff3333 */

:root {
    --dark: #0a0a0a;
    --light: #f5f5f5;
    --overlap: #7a7a7a;
    --red: #ff3333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ========================================
   HERO SPLIT
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

.hero-left {
    flex: 1;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.15em;
    overflow: hidden;
}

.hero-right {
    flex: 1;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0.15em;
    overflow: hidden;
}

.brand-half {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    letter-spacing: -0.02em;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.brand-left {
    color: var(--light);
    transform: translateX(0);
}

.brand-right {
    color: var(--dark);
    transform: translateX(0);
}

/* Hero enter animation */
.hero.loading .brand-left {
    opacity: 0;
    transform: translateX(-40px);
}

.hero.loading .brand-right {
    opacity: 0;
    transform: translateX(40px);
}

.hero.loading .hero-center {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.red-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
}

.hero-dot {
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.6; }
}

.inline-dot {
    margin-top: 1.25rem;
}

.est {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: var(--overlap);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--overlap);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--red);
    animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* ========================================
   TENSION BARS
   ======================================== */

.tension-bar {
    height: 4px;
    background: var(--overlap);
    position: relative;
}

.tension-bar-thick {
    height: 6px;
}

/* ========================================
   DIAGONAL SECTIONS
   ======================================== */

.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-dark {
    background: var(--dark);
    color: var(--light);
}

.section-light {
    background: var(--light);
    color: var(--dark);
}

.diagonal-section {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    padding: 8rem 2rem;
    margin: -2rem 0;
    position: relative;
    z-index: 1;
}

/* Alternating diagonal directions */
.diagonal-section:nth-child(even) {
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.section-inner {
    max-width: 640px;
    margin: 0 auto;
}

.project-id {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--overlap);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-light .project-id {
    color: var(--overlap);
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.project-text {
    font-size: 0.95rem;
    max-width: 480px;
    line-height: 1.7;
}

.section-dark .project-text {
    color: rgba(245, 245, 245, 0.75);
}

.section-light .project-text {
    color: rgba(10, 10, 10, 0.7);
}

/* Red accents */
.red-word {
    color: var(--red);
}

.red-underline {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

/* ========================================
   MANIFESTO
   ======================================== */

.manifesto {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.manifesto-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.manifesto-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.manifesto-red {
    position: relative;
    display: inline-block;
}

.manifesto-red::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--red);
    transition: width 0.8s ease;
}

.manifesto-red.active::after {
    width: 100%;
}

/* ========================================
   CONTACT SPLIT
   ======================================== */

.contact {
    display: flex;
    min-height: 50vh;
}

.contact-left {
    flex: 1;
    background: var(--dark);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}

.contact-right {
    flex: 1;
    background: var(--light);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}

.contact-block {
    max-width: 280px;
}

.contact-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.contact-info {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.contact-detail {
    font-size: 0.85rem;
    line-height: 1.8;
}

.contact-left .contact-detail {
    color: rgba(245, 245, 245, 0.6);
}

.contact-right .contact-detail {
    color: rgba(10, 10, 10, 0.55);
}

/* ========================================
   FADE IN ANIMATIONS
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade for contact blocks */
.contact-left .fade-in {
    transition-delay: 0s;
}

.contact-right .fade-in {
    transition-delay: 0.15s;
}

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

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

    .hero-left,
    .hero-right {
        min-height: 50vh;
        justify-content: center;
        padding: 0;
    }

    .hero-left {
        padding-right: 0;
    }

    .hero-right {
        padding-left: 0;
    }

    .brand-half {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero-center {
        top: 50%;
    }

    .contact {
        flex-direction: column;
    }

    .contact-left,
    .contact-right {
        min-height: 40vh;
        padding: 3rem 2rem;
    }

    .diagonal-section {
        clip-path: polygon(0 2.5%, 100% 0, 100% 97.5%, 0 100%);
        padding: 6rem 1.5rem;
    }

    .diagonal-section:nth-child(even) {
        clip-path: polygon(0 0, 100% 2.5%, 100% 100%, 0 97.5%);
    }

    .manifesto-text {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .brand-half {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.6rem;
    }

    .manifesto-text {
        font-size: 1.6rem;
    }

    .contact-left,
    .contact-right {
        padding: 2.5rem 1.5rem;
    }
}
