@font-face {
    font-family: 'Saans';
    src: url('src/fonts/Saans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: #F5f5f3;
    color: var(--base);
    transition: var(--transition-theme);
}

body.is-dark {
    background-color: var(--base);
    color: white;
}

body.is-dark nav {
    background-color: var(--base);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.is-dark .nav-back-btn, 
body.is-dark .nav-links a:not(.contact-btn) {
    color: white;
}



.project-page {
    background-color: #F5f5f3;
    transition: var(--transition-theme);
}

@font-face {
    font-family: 'Saans';
    src: url('src/fonts/Saans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Saans';
    src: url('src/fonts/Saans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

:root {
    --base: #171412;
    --orange: #f72;
    --purple: #3d2fa9;
    --bg-color: #F3F3F1;
    --cyan: #98E0F7;
    --grey: #8e827c;
    --bg-d: #f2f0e7;
    --red: #FF1A00;
    --yellow: #ffc765;
    --font-main: 'Saans', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-theme: background-color 1s ease-in-out, color 1s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.03em;
}

/* Lenis Smooth Scroll */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--base);
    font-family: var(--font-main);
    overflow-x: hidden;
}

p, .body-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: inherit;
    font-weight: 500;
    transition: color 1s ease-in-out;
}

.strong {
    font-weight: 600;
}

.body-text-large {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 500;
}

.mobile-only { display: none !important; }
.desktop-only { display: inline !important; }

.project-logo {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
}


/* Micro-Dense Noise Effect */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    mix-blend-mode: multiply;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Global Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 0 0 24px 24px;
}

#preloader::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
}

.preloader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-text {
    position: absolute;
    font-size: 2rem;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
}

.preloader-circle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    transform: scale(0);
    mix-blend-mode: lighten;
}

/* Elastic Custom Cursor */
#custom-cursor {
    width: 26px;
    height: 26px;
    background: var(--cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cursor-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--base);
    opacity: 0;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--bg-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-theme), border 0.5s ease;
}

nav::before {
    content: '';
    position: fixed;
    inset: 0;
    mix-blend-mode: multiply;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
    pointer-events: none;
}

.logo-container {
    cursor: pointer;
    display: inline-block;
    height: 1.5rem;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5rem;
    white-space: nowrap;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--base);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-theme);
}

.contact-btn {
    background: #000;
    color: #fff !important;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dot {
    width: 18px;
    height: 18px;
    background: var(--cyan);
    border-radius: 50%;
}

/* Hero Section */
.hero, .project-hero {
    height: 100vh;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-hero {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    padding: 8rem 4rem 4rem;
    align-items: flex-end;
}

.hero-content {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1400px;
}

.portrait-wrapper {
    width: 92px;
    height: 119px;
    border-radius: 20px;
    overflow: hidden;
    background: #D9D9D9;
}

.portrait-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.2;
}

.hero-text span.brand {
    color: var(--red);
    white-space: nowrap;
}

.hero-text span.brackets {
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
    white-space: nowrap;
}

/* Footer elements */
.bottom-info {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    font-weight: 600;
    font-size: 1rem;
}

.indicator-group {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-indicator {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 1 !important;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.scroll-indicator:hover {
    background-color: var(--red);
    border-color: var(--red);
}

.scroll-indicator svg {
    width: 14px;
    height: auto;
}

.scroll-indicator svg path {
    fill: var(--base);
    transition: fill 0.4s ease;
}

.scroll-indicator:hover svg path {
    fill: #fff;
}

.floating-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 1;
    z-index: 1;
}

/* Standard Sections */
.section-padding {
    padding: 120px 4rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.container-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 3.5rem;
    display: block;
}


.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
}

.mission-item h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 6rem;
    align-items: start;
}

.experience-text p {
    font-size: 1.25rem;
    line-height: 1.6;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-group {
    display: flex;
    flex-direction: column;
}

.experience-group-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.5;
    margin-bottom: 1.5rem;
    display: block;
}

.experience-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: 2rem;
}

.experience-item:first-of-type {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.experience-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.experience-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: inherit;
}

.experience-role {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--grey);
}

.experience-period {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--grey);
    white-space: nowrap;
}

/* Footer */
.site-footer {
    padding: 6rem 4rem 0;
    transition: var(--transition-theme);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.is-red {
    background-color: var(--red);
    color: white;
}

body.is-red nav {
    background-color: var(--red);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

body.is-red .nav-back-btn,
body.is-red .nav-links a:not(.contact-btn) {
    color: white;
}

.site-footer .container {
    width: 100%;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    width: 100%;
}

.footer-link {
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
    margin-left: auto;
}

.footer-brand {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 0;
    margin-bottom: 0;
}

.footer-brand-text {
    display: block;
    width: 100%;
    font-size: 16vw;
    font-weight: 600;
    line-height: 0.85;
    white-space: nowrap;
    text-align: center;
    /* opacity: 0.15; */
    letter-spacing: -0.05em;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .site-footer {
        padding: 4rem 2rem 0;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 3rem 1.5rem 0;
    }
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .footer-copy {
        margin-left: 0;
    }
}

/* Work Section Styles */
.work-header {
    margin-bottom: 4rem;
}

.work-title {
    font-size: 48px;
    font-weight: 600;
    max-width: 60%;
    line-height: 1.3;
}

.work-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.work-card {
    text-decoration: none;
    color: inherit;
    border-radius: 32px;
    border: 1px solid var(--grey);
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 120px rgba(0,0,0,0.15);
}

.work-card.featured {
    grid-column: span 12;
    padding: 0;
}

.work-card.featured .card-content {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 480px;
    align-items: flex-end;
}

.work-card.featured .card-text {
    padding: 2rem;
}

.work-card.featured .card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2rem;
}

.work-card.featured .card-description {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--base);
}

.work-card.featured .card-media {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.work-card.featured .card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

/* Marquee Styles */
.marquee {
    background-color: var(--base);
    border-top: 1px solid var(--red);
    border-bottom: 1px solid var(--red);
    padding: 3.5rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%); 
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-inner {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.marquee-part {
    font-size: clamp(3rem, 8vw, 10rem);
    font-weight: 600;
    color: var(--red);
    padding-right: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.marquee-part span {
    -webkit-text-stroke: 2px var(--red);
    color: transparent;
}

.marquee-test {
    height: 100vh;
}

@media (max-width: 1024px) {
    nav { padding: 2rem; }
    .hero { padding: 0 2rem; }
    .hero-content { grid-template-columns: 1fr; gap: 3rem; }
    .nav-links a:not(.contact-btn) { display: none; }
    .section-padding { padding: 80px 2rem; }
    .mission-grid { grid-template-columns: 1fr; gap: 4rem; }

    /* --- Home Headings --- */
    .mission-item h3 { font-size: 1.6rem; }
    .work-title { font-size: 2rem; max-width: 100%; }
    
    .work-card.featured .card-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .work-card.featured .card-text {
        padding: 3rem;
    }
    
    .work-card.featured .card-description {
        font-size: 1.6rem;
    }
    
    .work-card.featured .card-media {
        height: 280px;
    }

    /* --- Experience --- */
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Project Page Styles */
.nav-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--base);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-theme), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-back-btn:hover {
    opacity: 1;
    transform: translateX(-4px);
}

.nav-back-btn svg {
    width: 18px;
    height: 18px;
}

.project-header {
    margin-bottom: 0;
    margin-top: 0;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1;
    width: 70%;
    max-width: 800px;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.project-subtitle {
    font-size: 1.8rem;
    max-width: 900px;
    line-height: 1.4;
    font-weight: 500;
}


.project-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
}

.meta-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.meta-value {
    font-size: 1.25rem;
    font-weight: 500;
}

.container-full {
    width: 100%;
    padding: 0 4rem;
}

.project-image-large .image-wrapper {
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
    background: #f2f2f2;
}

.project-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8rem;
}

.details-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.details-text p {
    color: inherit;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--base);
    font-weight: 600;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-10px);
}

body.is-dark .back-link {
    color: white;
}


.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-5px);
}



/* Intro Featured Image Styles */
.intro-featured-img {
    position: relative;
    z-index: 5;
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.intro-featured-img .container {
    width: 100%;
}

.intro-featured-img .image-wrapper {
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 60px 120px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

.intro-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Updated Case Study Styles */
.intro-dark {   
    padding: 0 0 8rem;
    position: relative;
    z-index: 10;
    width: 100%;
    color: white;
}

.intro-dark .container {
    max-width: 1400px;
    margin: 0 auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10rem;
    align-items: start;
}

.intro-text p {
    margin-bottom: 3rem;
    color: inherit;
}

.intro-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.intro-meta .meta-item {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 1.5rem;
}

.intro-meta .meta-label {
    opacity: 0.5;
    color: inherit;
}

.intro-meta .meta-value {
    color: var(--cyan);
}

.case-section {
    padding: 8rem 4rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
    align-items: flex-end;
    margin-top: 4rem;
}

.bands-grid,
.opportunity-image,
.research-grid .placeholder-img {
    grid-column: span 6;
    margin: 0;
}

.opportunity-image {
    border-radius: 32px;
    overflow: hidden;
}

.bands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
}

.band-item {
    width: 100%;
}

.band-item img {
    width: 100%;
    height: auto;
    display: block;
}

.research-grid .text-content {
    grid-column: span 6;
    max-width: 100%;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .bands-grid,
    .opportunity-image,
    .research-grid .placeholder-img,
    .research-grid .text-content {
        grid-column: span 1 !important;
    }

    .bands-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bands-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

.case-heading {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.case-subheading {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: inherit;
}

.text-content {
    max-width: 800px;
}

.case-list {
    list-style: none;
    margin: 2rem 0;
}

.case-list li {
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.case-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--cyan);
}

/* Challenge Cards */
.challenge-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
    width: 100%;
    max-width: 800px; /* Igual que .text-content */
}

.challenge-card {
    border-radius: 16px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid var(--grey);
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.challenge-card__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.challenge-card__text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--base);
    margin: 0;
}

.solutions-section {
    position: relative;
    padding: 8rem 0;
}

.solutions-header {
    width: 70%;
    max-width: 800px;
    margin-bottom: 8rem;
}

.solutions-section .label {
    display: block;
    margin-bottom: 4rem;
}

.solutions-wrapper {

    display: flex;
    flex-direction: column;
    gap: 12rem; /* Espacio entre los bloques de solución */
}

.solution-item {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    gap: 4rem;
    align-items: flex-start;
}

.solution-text .case-heading {
    font-size: 1.825rem;
    margin-bottom: 1.5rem;
}

.solution-text .body-text {
    font-size: 1rem;
    line-height: 1.5rem;
}

.solution-item .text-content {
    max-width: 100%;
}

.solution-item .placeholder-img {
    margin: 0;
    aspect-ratio: 4/3;
    width: 100%;
}

.placeholder-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin: 3rem 0;
    border: 1px dashed #ccc;
    overflow: hidden;
}

.placeholder-img img {
    width: 80%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-full {
    width: 100%;
    display: block;
}

.solution-image {
    width: 100%;
    display: block;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 3rem 0;
}

.sitemap-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


@media (max-width: 1024px) {
    .solutions-section {
        padding: 6rem 0;
    }
    .solutions-wrapper {
        gap: 8rem;
    }
    .solution-item {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Strategy Section */
.case-strategy {
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

.strategy-part {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.principles-header {
    margin-top: 6rem;
    margin-bottom: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.principles-header p {
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 600px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.principle-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.principle-item strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: inherit;
}

.principle-item p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* User Intent Badges */
.intents-container {
    margin: 3.5rem 0 4.5rem;
}

.intents-title {
    display: block;
    font-size: 0.85rem;
    color: var(--grey);
    margin-bottom: 1rem;
    font-weight: 500;
}

.intents-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.intent-badge {
    padding: 0.8rem 1.6rem;
    background: var(--bg-color);
    border-radius: 100px;
    border: 1px solid var(--grey);
    font-size: 1rem;
    font-weight: 600;
}

/* Circular Collaboration Diagram */
.collab-diagram {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 1 / 1;
    margin: 0rem auto;
}

.collab-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.collab-line {
    stroke: var(--grey);
    stroke-width: 1;
    stroke-dasharray: 6 4;
}

/* Center Hub */
.collab-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background-color: var(--bg-color);
    border: 1px solid var(--base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* box-shadow: 0 0 0 8px rgba(23, 20, 18, 0.08), 0 20px 60px rgba(0,0,0,0.15); */
    transition: var(--transition-smooth);
    color: var(--base);
}

.collab-center__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: inherit;
}

/* Role Cards */
.collab-node {
    position: absolute;
    width: 200px;
    background: #fbfbf9;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 1;
    transition: var(--transition-smooth);
}

.collab-node:hover {
    background: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.collab-node strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--base);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.collab-node p {
    font-size: 0.85rem !important;
    line-height: 1.5;
    color: var(--base);
    margin: 0 !important;
    font-weight: 500;
}

/* Pentagon positions — tighter layout */
/* Node 1: Commercial Team — top center */
.collab-node--1 {
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
}
.collab-node--1:hover {
    transform: translateX(-50%) translateY(-4px);
}

/* Node 2: Implementation Team — top right */
.collab-node--2 {
    top: 32%;
    right: 8%;
}

/* Node 3: Customer Experience — bottom right */
.collab-node--3 {
    bottom: 16%;
    right: 18%;
}

/* Node 4: Frontend Developers — bottom left */
.collab-node--4 {
    bottom: 16%;
    left: 18%;
}

/* Node 5: Product Owner — top left */
.collab-node--5 {
    top: 32%;
    left: 8%;
}

/* Responsive: tablet */
@media (max-width: 1024px) {
    .collab-diagram {
        max-width: 700px;
    }
    .collab-node {
        width: 170px;
        padding: 1.25rem;
    }
    .collab-center {
        width: 120px;
        height: 120px;
    }
    .collab-center__label {
        font-size: 0.75rem;
    }
    .collab-node strong {
        font-size: 0.9rem;
    }
    .collab-node p {
        font-size: 0.8rem !important;
    }
}

/* Responsive: mobile — collapse to grid layout */
@media (max-width: 768px) {
    .collab-diagram {
        aspect-ratio: unset;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin: 3rem auto;
    }
    .collab-lines {
        display: none;
    }
    .collab-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 120px;
        height: 120px;
        margin-bottom: 0.5rem;
    }
    .collab-node {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 420px;
    }
    .collab-node:hover {
        transform: translateY(-4px) !important;
    }
}
/* Design Principles Cards */
.principles-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
    width: 100%;
    text-align: left;
}

.principle-card {
    background: #fbfbf9;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.principle-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.principle-card__number {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--red);
    width: fit-content;
    font-weight: 600;
    border: 1px solid var(--red);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    line-height: 1.4;
}

.principle-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--base);
}

.principle-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--base);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .principles-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .principles-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .principle-card {
        padding: 2rem;
    }
}



.outcome-section {
    background-color: transparent;
    color: inherit;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    padding: 12rem 0;
    position: relative;
    z-index: 5;
    margin-bottom: 0;
    transition: var(--transition-theme);
}

.outcome-header {
    width: 70%;
    max-width: 800px;
    margin-bottom: 8rem;
}


body.is-dark .outcome-section,
body.is-dark .represents-section {
    color: white;
    transition: var(--transition-theme);
}

body.is-dark .outcome-section .case-heading,
body.is-dark .outcome-section .body-text,
body.is-dark .represents-section .case-heading,
body.is-dark .represents-section .body-text {
    color: white;
}

body.is-dark .represents-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.is-dark .represents-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

body.is-dark .represents-card h4,
body.is-dark .represents-card p {
    color: white;
}

body.is-dark .represents-card__tag {
    border-color: var(--cyan);
    color: var(--cyan);
}

.outcome-section .label {
    color: rgba(255,255,255,0.6);
}

.represents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.represents-card {
    background: #fbfbf9;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.represents-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.represents-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--cyan);
    width: fit-content;
    font-weight: 600;
    border: 1px solid var(--cyan);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    line-height: 1.4;
}

/* Brand Strategy Grid */
.brand-strategy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem 0 6rem;
    width: 100%;
}

.brand-strategy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.brand-strategy-img {
    width: 100%;
    background: #ffffff;
    padding: 1rem 0.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition-smooth);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-strategy-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.brand-strategy-img img {
    width: 100%;
    height: auto;
    display: block;
}

.brand-strategy-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border: 1px solid var(--grey);
    border-radius: 100px;
    color: var(--grey);
    background: transparent;
    margin-top: auto;
}

@media (max-width: 1024px) {
    .brand-strategy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .brand-strategy-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.represents-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--base);
}

.represents-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--base);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .represents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .represents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    /* --- General & Headings --- */
    .intro-grid { grid-template-columns: 1fr; gap: 4rem; }
    
    .case-heading { font-size: 2rem; }
    .case-subheading, .mission-item h3 { font-size: 1.6rem; }
    .solution-text .case-heading, .represents-card h4 { font-size: 1.4rem; }
    
    .outcome-block { padding: 3rem; }

    /* --- Nav --- */
    nav {
        padding: 1rem 2rem;
    }
    .nav-back-btn span {
        display: none;
    }
    .nav-back-btn {
        padding: 0.5rem;
    }

    /* --- Hero --- */
    .hero, .project-hero {
        padding: 0 2rem;
    }
    .project-hero {
        padding: 6rem 2rem 3rem;
    }
    .project-header {
        margin-top: 0;
        margin-bottom: 0;
    }
    .project-title {
        font-size: clamp(2rem, 8vw, 3rem);
        width: 100%;
        max-width: 100%;
        line-height: 1.1;
    }
    p, .body-text, .solution-text .body-text, .challenge-card__text, .represents-card p, .case-list li {
        font-size: 1rem;
        line-height: 1.5;
    }

    .project-subtitle {
        font-size: 1.2rem;
        max-width: 100%;
    }
    .project-meta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    .meta-value {
        font-size: 1.1rem;
    }
    .meta-label {
        margin-bottom: 0.5rem;
    }

    /* --- Intro Featured Image --- */
    .intro-featured-img {
        min-height: auto;
        padding: 6rem 2rem;
    }
    .intro-featured-img .image-wrapper {
        border-radius: 24px;
    }

    /* --- Intro Dark Card --- */
    .intro-dark .container {
        padding: 4rem 2rem;
        border-radius: 24px;
    }


    /* --- Case Sections --- */
    .case-section {
        padding: 5rem 2rem;
    }
    .text-content, .solutions-header {
        width: 100%;
        max-width: 100%;
    }

    .challenge-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Solution items --- */
    .solution-item {
        margin-bottom: 6rem;
    }



    /* --- Work card --- */
    .work-card.featured .card-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .work-card.featured .card-text {
        padding: 3rem;
    }
    .work-card.featured .card-description {
        font-size: 1.6rem;
    }
    .work-card.featured .card-media {
        height: 300px;
    }
}

@media (max-width: 640px) {
    /* --- Hero Home --- */
    .hero, .project-hero {
        padding: 0 1.5rem;
    }
    .hero {
        padding-bottom: 7rem;
    }
    .hero-text h1 {
        font-size: clamp(1.65rem, 6vw, 2.4rem);
        letter-spacing: -0.04em;
    }
    .mobile-only { display: inline !important; }
    .desktop-only { display: none !important; }
    .bottom-info {
        left: 1.5rem;
        bottom: 1.5rem;
        font-size: 0.85rem;
    }
    .indicator-group {
        bottom: 1.5rem;
        right: 1.5rem;
        left: auto;
        transform: none;
    }

    /* --- Hero Project --- */
    .project-hero {
        padding: 5rem 1.5rem 2rem;
    }
    .project-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .project-subtitle, p, .body-text, .solution-text .body-text, .challenge-card__text, .represents-card p, .case-list li {
        font-size: 1rem;
    }

    /* --- Intro Dark Card --- */
    .intro-dark .container {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }

    /* --- Intro Featured Image --- */
    .intro-featured-img {
        padding: 4rem 1.5rem;
    }
    .intro-featured-img .image-wrapper {
        border-radius: 16px;
    }

    /* --- Nav --- */
    nav {
        padding: 1rem 1.5rem;
    }

    /* --- Section padding & container --- */
    .section-padding {
        padding: 4rem 1.5rem;
    }
    .container {
        padding: 0;
    }

    /* --- Home Headings --- */
    .work-title {
        font-size: 1.6rem;
        max-width: 100%;
    }
    .work-card.featured .card-description {
        font-size: 1.2rem;
    }
    .work-card.featured .card-text {
        padding: 2rem;
    }

    /* .work-card.featured .card-media {
        height: 220px;
    } */

    /* --- Case sections --- */
    .challenge-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    .challenge-card {
        padding: 1.5rem;
    }
    .case-section {
        padding: 4rem 1.5rem;
    }
    /* --- Headings --- */
    .case-heading {
        font-size: 1.6rem;
    }
    .case-subheading, .mission-item h3 {
        font-size: 1.4rem;
    }
    .solution-text .case-heading, .represents-card h4 {
        font-size: 1.25rem;
    }
    .outcome-block {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    /* --- Intro grid --- */
    .intro-grid {
        gap: 3rem;
    }

    /* --- Project Meta Mobile --- */
    .project-meta {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2.5rem;
    }
    .meta-value {
        font-size: 1rem;
    }
}

/* Backstage Process Row */
.backstage-process-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 1000px;
}

.backstage-process-item {
    padding: 1rem 2rem;
    background: #fbfbf9;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    font-weight: 600;
    color: var(--base);
    white-space: nowrap;
}

.backstage-process-arrow {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--grey);
}

@media (max-width: 768px) {
    .backstage-process-row {
        gap: 0.75rem;
    }
    .backstage-process-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    .backstage-process-arrow {
        font-size: 1.2rem;
    }
}

/* No-Image Work Card Variant */
.work-card.featured.no-image .card-content {
    grid-template-columns: 1fr;
    min-height: 280px;
    align-items: center;
}

.work-card.featured.no-image .card-text {
    padding: 3rem 4rem;
    max-width: 700px;
}

@media (max-width: 1024px) {
    .work-card.featured.no-image .card-text {
        padding: 3rem;
    }
}

@media (max-width: 640px) {
    .work-card.featured.no-image .card-content {
        min-height: 220px;
    }
    .work-card.featured.no-image .card-text {
        padding: 2rem;
    }
}

/* Intro list & Solution list */
.intro-list,
.solution-list {
    list-style: none;
    margin: 1.5rem 0 2rem;
    padding: 0;
}

.intro-list li,
.solution-list li {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
}

.intro-list li::before,
.solution-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--grey);
}

.solution-list li {
    font-size: 1rem;
    line-height: 1.5rem;
}

@media (max-width: 1024px) {
    .intro-list li,
    .solution-list li {
        font-size: 1rem;
        line-height: 1.5;
    }
}
