.events-grid,
.visual-dev-section,
.workflow-section,
.mentorship-section,
.contact-section {
    margin-bottom: 13px;
}

.hero-section {
    position: relative;
    height: 80vh;
    height: 80svh;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top, 
        rgba(10, 10, 10, 1) 0%, 
        rgba(10, 10, 10, 0) 50%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10vh;
    padding-bottom: 10svh;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
}

/* EVENTS GRID SECTION */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 300px;
    width: 100%;
}

.event-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    border-right: 1px solid #222;
}

.event-card:last-child {
    border-right: none;
}

.event-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.event-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    pointer-events: none;
}

.visual-dev-section {
    position: relative;
    height: 650px;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.visual-dev-bg-img {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: auto;
    max-width: none;
    transform: translateX(-50%);
    z-index: 1;
}

.visual-dev-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.0) 50%
    );
    z-index: 2;
}

.visual-dev-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4rem;
    text-align: center;
}

.visual-dev-content h2 {
    font-size: 2.66rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.visual-dev-content p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* MANIFESTO SECTION */
.manifesto-section {
    width: 100%;
    background-color: #f5f5f7;
    padding: 6rem 2rem 3rem 2rem;
    text-align: center;
}

.manifesto-container {
    max-width: 820px;
    margin: 0 auto;
}

.manifesto-container h2 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #111111;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.manifesto-container p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: #424245;
}

/* WORKFLOW SECTION */
.workflow-section {
    width: 100%;
    height: 650px;
    background-color: #f5f5f7;
    padding: 3rem 2rem 3rem 2rem;
}

.workflow-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.workflow-cards-stack {
    position: relative;
    height: 560px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.workflow-card-wrapper {
    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    will-change: transform, opacity;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translate3d(0, 0, 0);
    aspect-ratio: 300 / 440;
}

.workflow-card-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-back {
    top: 0;
    left: 0;
    width: 300px;
    z-index: 1;
}

.card-middle {
    top: 60px;
    right: 0;
    width: 300px;
    z-index: 2;
}

.card-front {
    top: 120px;
    left: 80px;
    width: 300px;
    z-index: 3;
}

.workflow-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.workflow-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #6e6e73;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.workflow-content h2 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.08;
    color: #111111;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.workflow-content p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: #424245;
    margin-bottom: 10rem;
    max-width: 480px;
}

.workflow-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.btn-text-link {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ruby-main);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-text-link:hover {
    opacity: 0.85;
    color: var(--ruby-hover);
}

.mentorship-section {
    width: 100%;
    background-color: #22262e;
    padding: 6rem 2rem 0 2rem;
    color: var(--color-text-light, #ffffff);
    overflow: hidden;
}

.mentorship-manifesto {
    max-width: 820px;
    margin: 0 auto 5rem auto;
    text-align: center;
}

.mentorship-manifesto h2 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.mentorship-manifesto p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.mentorship-container {
    max-width: 1200px;
    height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mentorship-media {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 380 / 762;
    margin: 0 auto;
    border-radius: 16px 16px 0 0;
    align-self: end;
}

.mentorship-media:has(img.is-loaded) {
    background: transparent;
    animation: none;
}

.mentorship-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: bottom;
}

.mentorship-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 3rem;
}

.mentorship-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.mentorship-content h2 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.mentorship-content p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.mentorship-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.contact-section {
    width: 100%;
    background-color: #f5f5f7;
    padding: 3rem 2rem;
    color: #111111;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-media {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 420 / 556;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
}

.contact-media:has(img.is-loaded) {
    background: transparent;
    animation: none;
}

.contact-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #6e6e73;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.contact-content h2 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.08;
    color: #111111;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: #424245;
    margin-bottom: 2.25rem;
    max-width: 480px;
}

.contact-status {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: #111111;
    margin-bottom: 10rem;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}


/* Media Breakpoints */

@media (max-width: 1070px) {
    .events-grid{
        height: 200px;
    }
    .manifesto-container h2 {
        font-size: 2.3rem;
    }

    .workflow-section {
        height: auto;
        padding: 5rem 2rem;
    }

    .workflow-container {
        gap: 2.5rem;
    }

    .workflow-content h2,
    .mentorship-content h2,
    .contact-content h2 {
        font-size: 2.4rem;
    }

    .workflow-content p,
    .mentorship-content p {
        margin-bottom: 2.5rem;
    }

    .workflow-cards-stack {
        height: 480px;
        max-width: 440px;
    }

    .card-back,
    .card-middle,
    .card-front {
        width: 250px;
    }

    .card-middle {
        top: 50px;
    }

    .card-front {
        top: 100px;
        left: 60px;
    }

    .mentorship-container {
        height: auto;
        gap: 0rem;
    }

    .mentorship-media {
        max-width: 320px;
        aspect-ratio: 320 / 642;
    }

    .mentorship-manifesto h2 {
        font-size: 1.75rem;
    }

    .contact-container {
        gap: 2.5rem;
    }

    .contact-media {
        max-width: 360px;
        aspect-ratio: 360 / 476;
    }

    .contact-status {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 734px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .button-group {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        gap: 0.75rem;
    }

    .hero-content .btn-primary,
    .hero-content .btn-secondary,
    .visual-dev-content .btn-primary,
    .visual-dev-content .btn-secondary {
        font-size: 0.9rem;
        padding: 0 1.125rem 2px 1.125rem;
        white-space: nowrap;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        height: 400px;
    }

    .event-card {
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .event-card:nth-child(odd) {
        border-right: 1px solid #222;
    }



    .visual-dev-content h2 {
        font-size: 2rem;
    }

    .visual-dev-content p {
        font-size: 1.2rem;
    }

    .manifesto-section {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }

    .manifesto-container h2 {
        font-size: 1.8rem;
    }

    .manifesto-container p {
        font-size: 1rem;
    }

    .workflow-section {
        height: auto;
        padding: 3rem 1.5rem 5rem 1.5rem;
    }

    .workflow-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .workflow-cards-stack {
        height: 420px;
        max-width: 340px;
    }

    .card-back,
    .card-middle,
    .card-front {
        width: 210px;
    }

    .card-middle {
        top: 40px;
    }

    .card-front {
        top: 80px;
        left: 45px;
    }

    .workflow-content {
        align-items: center;
        text-align: center;
    }

    .workflow-content h2,
    .mentorship-content h2,
    .contact-content h2 {
        font-size: 2.1rem;
    }

    .workflow-content p,
    .mentorship-content p,
    .contact-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .workflow-actions,
    .mentorship-actions,
    .contact-actions {
        flex-direction: column;
        width: 100%;
        max-width: none;
        gap: 1.25rem;
    }

    .mentorship-section {
        padding: 4rem 1.5rem;
    }

    .mentorship-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 3rem;
    }

    .mentorship-media {
        order: 1;
        max-width: 340px;
        aspect-ratio: 340 / 425;
        border-radius: 24px;
        overflow: hidden;
        align-self: center;
    }

    .mentorship-media picture,
    .mentorship-media .mentorship-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mentorship-content {
        order: 2;
        align-items: center;
        text-align: center;
        padding-bottom: 0;
    }

    .mentorship-media {
        order: 2;
        max-width: 300px;
        aspect-ratio: 300 / 400;
        align-self: end;
    }

    .contact-section {
        padding: 4rem 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-media {
        max-width: 320px;
        aspect-ratio: 320 / 424;
    }

    .contact-content {
        align-items: center;
        text-align: center;
    }

    .contact-status {
        margin-bottom: 2rem;
        font-size: 1rem;
    }
}