/* cbdc.studio - Memphis-inspired CBDC Design Studio */
/* Colors: #D4A012 (Saffron), #1A8F7F (Teal), #E8456B (Hot Coral), #2B0A0E (Deep Burgundy), #C4727A (Dusty Rose), #EDE0CE (Warm Cream), #F2E8DC (Light Parchment) */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #F2E8DC;
    color: #2B0A0E;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   MEMPHIS BACKGROUND DECORATIONS
   ============================================ */

.memphis-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.memphis-shape {
    position: absolute;
    opacity: 0.12;
    transition: transform 0.3s ease;
}

.memphis-zigzag-1 {
    top: 8%;
    right: 12%;
    transform: rotate(-15deg);
}

.memphis-triangle-1 {
    top: 22%;
    left: 5%;
    transform: rotate(8deg);
}

.memphis-circle-1 {
    top: 45%;
    right: 8%;
    transform: rotate(0deg);
}

.memphis-zigzag-2 {
    bottom: 30%;
    left: 10%;
    transform: rotate(20deg);
}

.memphis-dots-1 {
    top: 65%;
    right: 20%;
    opacity: 0.08;
}

.memphis-triangle-2 {
    bottom: 15%;
    right: 35%;
    transform: rotate(-25deg);
}

.memphis-cross-1 {
    top: 35%;
    left: 18%;
    transform: rotate(45deg);
}

.memphis-circle-2 {
    bottom: 20%;
    left: 30%;
}

.memphis-squiggle-1 {
    top: 80%;
    right: 5%;
    transform: rotate(-10deg);
}

/* ============================================
   NAVIGATION DOTS
   ============================================ */

.nav-dots {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 1000;
    cursor: pointer;
}

.dot-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    position: relative;
}

.dot-cluster .nav-dot:nth-child(1) {
    transform: translateX(-4px);
}

.dot-cluster .nav-dot:nth-child(3) {
    transform: translateX(4px);
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2B0A0E;
    display: block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-dots:hover .nav-dot:nth-child(1) {
    background-color: #E8456B;
}

.nav-dots:hover .nav-dot:nth-child(2) {
    background-color: #D4A012;
}

.nav-dots:hover .nav-dot:nth-child(3) {
    background-color: #1A8F7F;
}

.nav-labels {
    position: absolute;
    top: 0;
    right: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px 16px;
    background: rgba(242, 232, 220, 0.95);
    border-left: 2px solid #E8456B;
}

.nav-dots:hover .nav-labels,
.nav-dots.active .nav-labels {
    opacity: 1;
    pointer-events: auto;
}

.nav-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2B0A0E;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    white-space: nowrap;
}

.nav-dots:hover .nav-label:nth-child(1) { transform: translateX(-2px) rotate(-1deg); }
.nav-dots:hover .nav-label:nth-child(2) { transform: translateX(4px) rotate(0.5deg); }
.nav-dots:hover .nav-label:nth-child(3) { transform: translateX(-6px) rotate(-0.8deg); }
.nav-dots:hover .nav-label:nth-child(4) { transform: translateX(2px) rotate(1deg); }
.nav-dots:hover .nav-label:nth-child(5) { transform: translateX(-4px) rotate(-0.5deg); }

.nav-label:hover {
    color: #E8456B;
}

/* ============================================
   SECTIONS - BASE
   ============================================ */

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.section-content {
    max-width: 900px;
    width: 100%;
    padding: 0 40px;
}

/* Memphis-style spatial unpredictability - varying margin-left per section */
.section-hero .section-content {
    margin-left: 15%;
}

.section-about .section-content {
    margin-left: 25%;
}

.section-services .section-content {
    margin-left: 10%;
}

.section-work .section-content {
    margin-left: 15%;
}

.section-contact .section-content {
    margin-left: 30%;
}

.section-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #C4727A;
    margin-bottom: 24px;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: #2B0A0E;
    margin-bottom: 40px;
}

.section-heading em {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 400;
    color: #E8456B;
}

/* ============================================
   FADE-REVEAL ANIMATION
   ============================================ */

.fade-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
.fade-reveal:nth-child(2) { transition-delay: 0.1s; }
.fade-reveal:nth-child(3) { transition-delay: 0.2s; }
.fade-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   HERO SECTION
   ============================================ */

.section-hero {
    position: relative;
    overflow: hidden;
}

.hero-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1A8F7F;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 120px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 32px;
}

.title-line {
    display: block;
    color: #2B0A0E;
}

.title-line-accent {
    color: #E8456B;
    margin-left: 60px;
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    color: #C4727A;
    max-width: 420px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.hero-rule {
    margin-top: 8px;
}

.hero-geo {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    pointer-events: none;
}

.hero-geo-shape {
    animation: geoRotate 60s linear infinite;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */

.section-about {
    background: linear-gradient(180deg, transparent 0%, rgba(237, 224, 206, 0.4) 50%, transparent 100%);
}

.about-body {
    margin-bottom: 48px;
}

.body-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: #2B0A0E;
    margin-bottom: 20px;
    max-width: 640px;
}

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

.about-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 2px solid #E8456B;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: #2B0A0E;
    line-height: 1;
}

.stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C4727A;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 16px;
}

.service-card {
    padding: 32px;
    border: 1px solid rgba(43, 10, 14, 0.1);
    background: rgba(242, 232, 220, 0.6);
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.service-card:nth-child(1)::before { background: #E8456B; }
.service-card:nth-child(2)::before { background: #1A8F7F; }
.service-card:nth-child(3)::before { background: #D4A012; }
.service-card:nth-child(4)::before { background: #C4727A; }

.service-card:hover {
    border-color: rgba(43, 10, 14, 0.25);
    transform: translateY(-4px);
}

.service-icon {
    margin-bottom: 20px;
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #2B0A0E;
    margin-bottom: 12px;
}

.service-desc {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: #C4727A;
}

/* ============================================
   WORK SECTION
   ============================================ */

.section-work {
    background: linear-gradient(180deg, transparent 0%, rgba(43, 10, 14, 0.03) 50%, transparent 100%);
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-top: 16px;
}

.work-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.work-item:nth-child(even) {
    direction: rtl;
}

.work-item:nth-child(even) > * {
    direction: ltr;
}

.work-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.work-image svg {
    display: block;
    width: 100%;
    height: 100%;
}

.duotone {
    filter: contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover .duotone {
    transform: scale(1.03);
}

.work-info {
    padding: 16px 0;
}

.work-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #2B0A0E;
    margin-bottom: 8px;
    line-height: 1.1;
}

.work-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 300;
    color: #C4727A;
    line-height: 1.5;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.section-contact {
    position: relative;
}

.contact-body {
    margin-bottom: 48px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #E8456B;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: #D4A012;
}

.contact-divider {
    margin: 4px 0;
}

.contact-location {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1A8F7F;
}

.contact-geo {
    position: absolute;
    right: 10%;
    bottom: 15%;
    opacity: 0.12;
    pointer-events: none;
}

.contact-geo-shape {
    animation: geoRotate 80s linear infinite reverse;
}

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

.site-footer {
    padding: 40px;
    border-top: 1px solid rgba(43, 10, 14, 0.1);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #2B0A0E;
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    color: #C4727A;
    letter-spacing: 0.05em;
}

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

@media (max-width: 1024px) {
    .section-hero .section-content,
    .section-about .section-content,
    .section-services .section-content,
    .section-work .section-content,
    .section-contact .section-content {
        margin-left: 8%;
    }

    .hero-title {
        font-size: 80px;
    }

    .section-heading {
        font-size: 42px;
    }

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

    .work-item {
        grid-template-columns: 1fr;
    }

    .work-item:nth-child(even) {
        direction: ltr;
    }

    .hero-geo {
        opacity: 0.08;
        right: 2%;
    }
}

@media (max-width: 640px) {
    .section-hero .section-content,
    .section-about .section-content,
    .section-services .section-content,
    .section-work .section-content,
    .section-contact .section-content {
        margin-left: 0;
        padding: 0 24px;
    }

    .hero-title {
        font-size: 56px;
    }

    .title-line-accent {
        margin-left: 20px;
    }

    .section-heading {
        font-size: 32px;
    }

    .about-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .contact-link {
        font-size: 22px;
    }

    .nav-dots {
        top: 16px;
        right: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-geo,
    .contact-geo {
        display: none;
    }

    .memphis-bg {
        opacity: 0.5;
    }
}