/* PAGE */

.tinder-page {
    margin: 0;
    background: var(--paper, #f6fdfe);
    color: var(--ink, #4a4a4a);
    font-family: "Nunito", sans-serif;
}

/* TOP NAVIGATION */

.case-header {
    padding-top: 24px;
}

.tinder-page .case-top-nav {
    display: flex;
    width: 100%;
}

.tinder-page .case-top-nav > * {
    animation: none;
    transform: none;
    translate: none;
    rotate: none;
    transition: none;
}

.tinder-page .case-top-nav .nav-button:hover,
.tinder-page .case-top-nav .nav-button:active {
    transform: none;
    box-shadow: none;
}

/* Static navigation on the case-study page */
.tinder-page .case-top-nav > * {
    animation: none;
    translate: none;
    rotate: none;
    transform: none;
}

/* Match the homepage's small-screen navigation */
@media (max-width: 750px) {
    .tinder-page .case-header {
        position: relative;
        padding-top: 24px;
    }

    .tinder-page .case-top-nav {
        display: none;
    }

    .tinder-page .mobile-navigation {
        display: block;
    }

    /* Open downward because the nav is now at the top */
    .tinder-page .mobile-menu {
        top: calc(100% + 16px);
        bottom: auto;
    }

    .tinder-page .case-banner {
        margin-top: 32px;
    }
}

/* BANNER */

.case-banner {
    display: grid;
    place-items: center;

    margin: 52px 45px 0;
    min-height: 220px;
    aspect-ratio: 3.7 / 1;

    border-radius: 34px;
    background: linear-gradient(
        110deg,
        #FF528D 0%,
        #ff507a 55%,
        #ff765f 100%
    );
}

.case-tinder-wordmark {
    display: block;
    width: 30%;
    max-width: 460px;
    height: auto;
    max-height: 65%;
    object-fit: contain;
}

/* CONTENT AND DOTS */

.case-layout {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: clamp(40px, 6.5vw, 106px);

    margin: 36px 45px 0;
    padding-bottom: 100px;
}

.case-content {
    min-width: 0;
    padding-right: clamp(0px, 7vw, 120px);
}

.case-section {
    scroll-margin-top: 40px;
    margin-bottom: 90px;
}

/* INTRODUCTION */

.case-intro h1 {
    margin: 0;
    color: var(--ink, #4a4a4a);

    font-size: clamp(23px, 2vw, 32px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: normal;
}

.case-subtitle {
    margin: 3px 0 32px;
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
}

/* PROJECT DETAILS PILL */

.case-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 28px;

    margin: 0;
    padding: 17px 36px;

    border: 1px solid #ccd4d5;
    border-radius: 999px;

    font-size: 17px;
    line-height: 1.4;
}

.case-details > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.case-details dt {
    font-weight: 800;
}

.case-details dd {
    margin: 0;
}

/* STICKY DOT NAVIGATION */

.case-progress {
    position: sticky;
    top: 32px;
    align-self: start;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.case-dot {
    position: relative;
    display: grid;
    place-items: center;

    width: 24px;
    height: 38px;
    text-decoration: none;
}

.case-dot::before {
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--mint, #a4f3dd);

    transition:
        background-color 200ms ease,
        transform 200ms ease;
}

.case-dot[aria-current="location"]::before {
    background: var(--yellow, #ffea80);
}

.case-dot:hover::before {
    transform: scale(1.15);
}

.case-dot:focus-visible {
    outline: 2px solid var(--ink, #4a4a4a);
    outline-offset: 2px;
    border-radius: 999px;
}

/* Labels appear on hover or keyboard focus */

.dot-label {
    position: absolute;
    z-index: 10;
    left: calc(100% + 10px);
    top: 50%;

    padding: 6px 12px;
    border-radius: 999px;
    background: var(--mint, #a4f3dd);
    color: var(--ink, #4a4a4a);

    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 150ms ease;
}

.case-dot:hover .dot-label,
.case-dot:focus-visible .dot-label {
    opacity: 1;
}

/* TEMPORARY CONTENT AREAS */

.case-placeholder {
    min-height: 40svh;
}

.case-placeholder h2 {
    margin: 0 0 16px;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 800;
}

.case-placeholder p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
}

/* TABLET */

@media (max-width: 1100px) {
    .tinder-page .case-top-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .case-details {
        border-radius: 24px;
        padding: 20px 24px;
    }
}

/* MOBILE */

@media (max-width: 750px) {
    .case-header {
        padding-top: 20px;
    }

    .tinder-page .case-top-nav {
        display: flex;
        gap: 10px;
        padding-inline: 16px;
    }

    .tinder-page .case-top-nav .nav-button {
        padding: 8px 18px;
        font-size: 15px;
    }

    .tinder-page .case-top-nav .nav-icon {
        min-width: 62px;
    }

    .case-banner {
        margin: 30px 20px 0;
        min-height: 190px;
        aspect-ratio: 1.8 / 1;
        border-radius: 24px;
    }

    .case-tinder-wordmark {
        width: 52%;
    }

    .case-layout {
        grid-template-columns: 24px minmax(0, 1fr);
        column-gap: 16px;
        margin: 26px 20px 0;
    }

    .case-content {
        padding-right: 0;
    }

    .case-intro h1 {
        font-size: 23px;
    }

    .case-subtitle {
        font-size: 17px;
        margin-bottom: 24px;
    }

    .case-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px;
        font-size: 15px;
    }

    .case-section {
        margin-bottom: 60px;
    }

    .case-dot::before {
        width: 11px;
        height: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .case-dot::before,
    .dot-label {
        transition: none;
    }
}


@media (max-width: 750px) {
    .tinder-page .hero-nav.case-top-nav {
        display: none;
    }

    .tinder-page .case-header .mobile-navigation {
        display: block;
    }
}
