/* gallery v17 — diagonal cascade ribbon.
   Geometry shared by both CSS frameworks (Bootstrap has no clip-path / aspect utilities). */
.gallery-cascade__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mxw-2xl {
    max-width: 42rem !important;
}

.gallery-cascade__head {
    margin-bottom: 4rem;
}

.gallery-cascade__title {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
}

.gallery-cascade__lead {
    font-size: 1.125rem;
}

.gallery-cascade__row {
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-cascade__col {
    min-width: 0;
}

.gallery-cascade__img {
    transition: transform 500ms ease;
}

/* hover zoom — `:where()` keeps specificity at 0-1-0 so Tailwind's hover:scale-110 wins there */
:where(.gallery-cascade__img):hover {
    transform: scale(1.1);
}

@media (min-width: 640px) {
    .gallery-cascade__row {
        flex-direction: row;
        gap: 0;
    }
}

@media (min-width: 768px) {
    .gallery-cascade__title {
        font-size: 2.25rem;
    }
}

/* gallery v17 — diagonal cascade ribbon (clip-path + staggered offsets have no BS analog) */
.gallery-cascade__media {
    aspect-ratio: 3 / 4;
    transition: clip-path 300ms ease;
}

@media (min-width: 640px) {
    [data-cascade-pos] {
        transition: transform 300ms ease;
    }

    [data-cascade-pos="0"] {
        transform: translateY(0);
    }

    [data-cascade-pos="0"] .gallery-cascade__media {
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    }

    [data-cascade-pos="1"] {
        transform: translateY(1.75rem);
    }

    [data-cascade-pos="1"] .gallery-cascade__media {
        clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
    }

    [data-cascade-pos="2"] {
        transform: translateY(-1.25rem);
    }

    [data-cascade-pos="2"] .gallery-cascade__media {
        clip-path: polygon(0 0, 100% 12%, 100% 88%, 0 100%);
    }

    [data-cascade-pos="3"] {
        transform: translateY(2.25rem);
    }

    [data-cascade-pos="3"] .gallery-cascade__media {
        clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
    }

    [data-cascade-pos]:hover {
        transform: translateY(0);
    }

    [data-cascade-pos]:hover .gallery-cascade__media {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.content-river__arc {
    width: 18rem;
    height: 18rem;
}

.content-river__node {
    width: 0.75rem;
    height: 0.75rem;
    transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
    .content-river__copy--right {
        grid-column-start: 2;
    }

    .content-river__copy--left {
        grid-column-start: 1;
        grid-row-start: 1;
    }

    .content-river__spacer--left {
        order: 2;
    }
}

@media (min-width: 768px) {
    .content-lanes__item--lane-1 {
        margin-left: 0;
        margin-right: auto;
    }

    .content-lanes__item--lane-2 {
        margin-left: auto;
        margin-right: auto;
    }

    .content-lanes__item--lane-3 {
        margin-left: auto;
        margin-right: 0;
    }
}

.content-col-grow {
    flex: 1 1 0%;
    min-width: 0;
}

.content-grid-gap {
    gap: 2rem;
}

.content-heading-gap {
    margin-bottom: 2rem;
}

.content-section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.content-img-fullheight {
    display: block;
    width: 100%;
    height: 16rem;
    min-height: 16rem;
    flex-shrink: 0;
    object-fit: cover;
}
@media (min-width: 992px) {
    .content-img-fullheight {
        height: 100%;
        min-height: 16rem;
    }
}

.content-grid-gap {
    gap: 2rem;
}

.content-heading-gap {
    margin-bottom: 2rem;
}

.content-section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.content-img-grows {
    display: block;
    width: 100%;
    height: 16rem;
    min-height: 16rem;
    flex-shrink: 0;
    object-fit: cover;
}
@media (min-width: 992px) {
    .content-img-grows {
        height: 20rem;
        min-height: 20rem;
    }
}

.content-flex-min {
    min-width: 0;
}

.content-memo-outline__grid {
    width: 6rem;
    height: 6rem;
    pointer-events: none;
}

/* values v13 — accordion chevron rotation, CSS-only via details[open] */
.values-notion-stack__chevron {
    transition: transform 200ms ease;
}

details.values-notion-stack__summary,
details > .values-notion-stack__summary {
    /* no-op selector kept for clarity; actual toggle target is the chevron below */
}

details[open] > .values-notion-stack__summary .values-notion-stack__chevron,
details[open] .values-notion-stack__chevron {
    transform: rotate(180deg);
}

.values-notion-stack__summary {
    -webkit-tap-highlight-color: transparent;
}

.values-notion-stack__summary::-webkit-details-marker {
    display: none;
}

.values-notion-stack__idx {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.05em;
}

.values-notion-stack__index-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

