/* DOTS NAV */
.dot-nav {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.dot-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dot-nav .dot {
    display: grid;
    place-items: center;
    width: 44px;
    height: 32px;
    border-radius: 6px;
    position: relative;
    text-decoration: none;
}

.dot-nav .dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot-nav .dot:hover::before,
.dot-nav .dot:focus-visible::before,
.dot-nav .dot.active::before {
    background-color: var(--white);
    transform: scale(1.4);
}

.dot-nav .dot:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.dot-nav .dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dot-nav .dot:hover::after,
.dot-nav .dot:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

/* HERO */

.back-link {
    position: absolute;
    top: 3rem;
    left: 3rem;
    transition: color 0.25s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.hero-landing {
    position: relative;
    background:
        linear-gradient(to top right,
            rgba(10, 10, 11, 0.5) 20%,
            transparent 55%),
        url(assets/img/rising/rising-film-herobg-2560.webp) center / cover no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-landing-content {
    width: min(56ch, 100% - 3rem);
    padding: 0 0 var(--space-lg) 3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-landing-content h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.7rem, 5.5vw, 4.4rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-landing-content p {
    font-size: 1.4rem;
    font-weight: 500;
    margin-block: var(--space-md);
}

.hero-landing-content .btn-text {
    font-size: var(--text-lg);
}

/* TEASER */

#teaser {
    border-top: 1px solid var(--border);
}

#teaser header {
    max-width: 70ch;
    margin-inline: auto;
    text-align: center;
}

#teaser header p {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-accent);
}

.teaser-wrapper {
    background: rgba(17, 18, 20, 0.4);
    position: relative;
    aspect-ratio: 16/9;
}

.teaser-wrapper--constrained {
    max-width: 800px;
    margin-inline: auto;
    margin-top: var(--space-md);
}

.teaser-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* TEXT LAYOUT */

#summary .container,
#impact .container {
    max-width: 70ch;
}

header {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.text-body>* {
    margin-block: 0;
}

.text-body>*+* {
    margin-top: var(--space-md);
}

.text-body>p+p {
    margin-top: var(--space-sm);
}

.text-body>h3+p {
    margin-top: var(--space-sm);
}

.text-body> :is(p, h3)+ :is(ul, ol) {
    margin-top: var(--space-sm);
}

/* SUMMARY */

#summary .card-content {
    padding: var(--space-md);
}

#summary .card-content h3 {
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.grid-film-specs {
    grid-template-columns: minmax(120px, 160px) 1fr;
    gap: 0.75rem 1.5rem;
}

/* STATEMENT */

#statement .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.statement-body {
    max-width: 65ch;
}

.statement-body img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.statement-body figcaption {
    margin-top: var(--space-xs);
}

/* JOURNEY TIMELINE */

.timeline-wrapper {
    text-align: right;
}

.timeline-wrapper h3 {
    font-size: var(--text-heading-md);
}

.timeline-wrapper p {
    margin-bottom: var(--space-md);
    padding-block: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: auto;
    right: 28px;
    width: 2px;
    background: var(--dark-blue);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 1.5rem;
    padding-block: 0.75rem;
}

.step-circle {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #2d2e3e;
    border-radius: 50%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.step:hover .step-circle {
    transform: scale(1.08);
    box-shadow: 0px 0px 6px rgba(0, 229, 255, 0.25);
}

.step-circle .fi::before {
    content: none;
}

.step-circle .fi {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-label {
    font-size: var(--text-sm);
}

.step-sublabel {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.4;
}

/* GALLERY */

.gallery {
    gap: var(--space-sm);
}

.gallery-link {
    display: block;
    min-width: 0;
    cursor: zoom-in;
}

.featured-img {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: top center;
}

/* IMPACT */

#impact ul li {
    list-style-type: "✒️ ";
    margin-top: var(--space-sm);
    list-style-position: inside;
}

/* TEAM MEMBERS */

.card-profile .card-media {
    aspect-ratio: 16/9;
    height: auto;
}

.card-profile .card-content {
    padding: var(--space-md);
}

.card-profile .card-title {
    font-size: var(--text-heading-md);
}

.card-profile .card-label {
    padding: 0.75rem 0;
    text-wrap: balance;
    border-bottom: 1px solid var(--border);
}

.card-profile .card-content>p+p {
    margin-top: var(--space-sm);
}

.card-profile .btn-text {
    padding-top: var(--space-md);
}

/* PARTNERS */

#partners .container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-lg);
}

.partners-contact {
    max-width: 65ch;
}

.partners-contact .section-title {
    margin-bottom: 0;
}

.partners-contact .card {
    display: grid;
    gap: var(--space-lg) var(--space-md);
    padding: var(--space-md);
}

.partners-contact .card-title {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.partners-contact .card div p {
    margin-top: var(--space-sm);
}

.partners {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    text-align: right;
}

.partners h3 {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.partners div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.partners>div>a>img {
    height: 70px;
    width: fit-content;
    display: block;
}

.partners div:nth-of-type(2) a {
    background: var(--white);
}

.partners div:nth-of-type(2) img {
    object-fit: contain;
}

.partners>div>p {
    margin-top: 1.4rem;
}

/* MEDIA QUERIES */

@media (max-width: 1024px) {
    .gallery img {
        aspect-ratio: 16/9;
    }

    .featured-img {
        grid-area: auto;
    }
}

@media (width > 768px) {
    .dot-nav~main .container {
        width: min(1200px, calc(100% - 144px));
    }
}

@media (max-width: 768px) {
    .dot-nav {
        display: none;
    }

    .back-link {
        font-size: var(--text-sm);
    }

    .hero-landing {
        min-height: 100svh;
        background: radial-gradient(ellipse 95% 75% at center,
                rgb(0 0 0 / 32%) 0%,
                rgb(0 0 0 / 22%) 45%,
                rgb(0 0 0 / 10%) 72%,
                transparent 100%),
            url(assets/img/rising/rising-film-hero-bg-1020.webp) center/cover no-repeat;
        justify-content: center;
        align-items: center;
    }

    .hero-landing-content {
        text-align: center;
        padding: 0;
    }

    .grid-film-specs {
        grid-template-columns: 1fr;
    }

    #statement .container {
        flex-direction: column;
    }

    .statement-body {
        max-width: 100%;
    }

    .timeline-wrapper {
        width: 100%;
        text-align: left;
    }

    .timeline-wrapper p {
        font-size: var(--text-md);
    }

    .timeline::before {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .step {
        flex-direction: column;
        align-items: center;
        padding-block: 1.2rem;
    }

    .step-text {
        background: var(--black);
        padding-block: .5rem;
    }

    .step-label,
    .step-sublabel {
        text-align: center;
    }

    #partners .container {
        flex-direction: column;
    }

    .partners-contact .card {
        gap: var(--space-md);
    }

    .partners {
        align-items: flex-start;
        text-align: left;
    }

    .partners div {
        width: 100%;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {

    .hero-landing-content p,
    .hero-landing-content .btn-text {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .step:hover .step-circle {
        transform: none;
    }
}
