/* About SPIDTECH. Built on inner.css + flow.css (the page title, .p-hero). The team's story in
   three chapters, picture and words side by side and alternating (Apple story layout); the
   pictures open larger in the EliteZone dialog. Then two short cards and the free-trial card. */

.ab-page {
    padding-bottom: var(--section-space);
    interpolate-size: allow-keywords;
}

/* ---------- the three chapters ---------- */
.ab-journey {
    margin-top: var(--section-space);
}

.ab-head .lead {
    margin-top: 12px;
}

.ab-stories {
    display: grid;
    gap: 112px;
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
}

.ab-story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));   /* every picture the same size, sides alternating */
    align-items: center;
    gap: 72px;
}

.ab-story:nth-child(even) .ab-photo {
    order: 2;
}

.ab-photo {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    padding: 0;
    border: 0;
    border-radius: var(--radius-big);
    background: #000;
    overflow: hidden;
    cursor: zoom-in;
}

.ab-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.ab-photo:hover img {
    transform: scale(1.03);
}

.ab-photo .ctl {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: rgb(255 255 255 / .92);
    color: var(--g900);
}

.ab-chapter {
    margin: 0;
    color: var(--red-ink);
    font-size: 15px;
    font-weight: 600;
}

.ab-text h3 {
    margin: 12px 0 0;
    color: var(--g900);
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}

.ab-text > p:not(.ab-chapter):not(.meta) {
    margin: 16px 0 0;
    color: var(--g700);
    font-size: 19px;
    line-height: 1.6;
}

.ab-text details {
    margin-top: 24px;
    border-top: 1px solid var(--g300);
}

.ab-text summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    color: var(--g900);
    font-size: 17px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.ab-text summary::-webkit-details-marker {
    display: none;
}

.ab-text summary .ctl svg {
    transition: transform .4s var(--ease);
}

.ab-text summary:hover .ctl {
    background: var(--g300);
    color: var(--g900);
}

.ab-text details[open] .ctl svg {
    transform: rotate(45deg);
}

.ab-text details p {
    margin: 12px 0 0;
    color: var(--g700);
    font-size: 17px;
    line-height: 1.65;
}

.ab-text details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .5s var(--ease), content-visibility .5s var(--ease) allow-discrete;
}

.ab-text details[open]::details-content {
    block-size: auto;
}

.ab-text .meta {
    margin: 20px 0 0;
}

/* ---------- the album: Spider around the world ----------
   Each event: its name, place and year, a line from the event's own text, then its photos in a
   sideways strip (scroll-snap, paddles under it, like the Features gallery). A photo opens the
   album viewer. */
.ab-gallery {
    margin-top: var(--section-space);
}

.ab-event {
    margin-top: 72px;
}

.ab-event-head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: end;
    gap: 12px 48px;
    margin-bottom: 24px;
}

.ab-event-head h3 {
    margin: 0;
    color: var(--g900);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.ab-event-head .meta {
    margin: 6px 0 0;
}

.ab-event-head > p {
    max-width: 56ch;
    margin: 0;
    color: var(--g700);
    font-size: 17px;
    line-height: 1.6;
}

.ab-strip {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 4px 0 8px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ab-strip::-webkit-scrollbar {
    display: none;
}

.ab-strip li {
    flex: none;
    scroll-snap-align: start;
}

.ab-shot {
    display: block;
    height: 280px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--card);
    overflow: hidden;
    cursor: zoom-in;
}

.ab-shot img {
    display: block;
    width: auto;
    height: 100%;
    transition: transform .6s var(--ease);
}

.ab-shot:hover img {
    transform: scale(1.03);
}

.ab-paddles {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 12px;
}

.ab-paddles .ctl:disabled {
    opacity: .42;
    cursor: default;
}

.ab-text details .link {
    margin-top: 12px;
    font-size: 15px;
}

/* the album viewer */
.ab-album {
    width: min(960px, 100%);
    padding: 56px 40px 36px;
}

.ab-album .ctl[data-close] {
    position: absolute;
    top: 16px;
    right: 16px;
}

.ab-album-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.ab-album-head .meta {
    margin: 6px 0 0;
    font-variant-numeric: tabular-nums;
}

.ab-album-photo {
    position: relative;
    margin: 24px 0 0;
    touch-action: pan-y;
}

.ab-album-photo img {
    display: block;
    width: 100%;
    height: min(68vh, 540px);
    object-fit: contain;
    user-select: none;
}

.ab-album-prev,
.ab-album-next {
    position: absolute;
    top: 50%;
    background: rgb(255 255 255 / .92);
    box-shadow: 0 1px 6px rgb(0 0 0 / .12);
    transform: translateY(-50%);
}

.ab-album-prev {
    left: 8px;
}

.ab-album-next {
    right: 8px;
}

/* ---------- today · free trial ---------- */
.ab-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: var(--section-space);
}

.ab-card,
.ab-cta-card {
    border-radius: var(--radius-big);
    background: var(--card);
}

.ab-card {
    padding: 48px;
}

.ab-card h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.ab-card p {
    margin: 10px 0 0;
    color: var(--g700);
    font-size: 17px;
    line-height: 1.6;
}

.ab-card .link {
    margin-top: 20px;
}

.ab-cta {
    margin-top: var(--section-space);
}

.ab-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    padding: 56px;
}

.ab-cta-card .lead {
    margin-top: 12px;
}

/* ---------- the larger picture ---------- */
.ab-dlg {
    width: min(960px, 100%);
    padding: 56px 40px 32px;
}

.ab-dlg .ctl[data-close] {
    position: absolute;
    top: 16px;
    right: 16px;
}

.ab-dlg h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.ab-dlg img {
    display: block;
    width: 100%;
    margin-top: 20px;
    border-radius: 18px;
}

.ab-dlg .meta {
    margin: 14px 0 0;
}

@media (max-width: 1068px) {
    .ab-story {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .ab-story:nth-child(even) .ab-photo {
        order: 0;
    }

    .ab-stories {
        gap: 80px;
    }

    .ab-cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 48px;
    }
}

@media (max-width: 734px) {
    .ab-event {
        margin-top: 56px;
    }

    .ab-event-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .ab-event-head h3 {
        font-size: 24px;
    }

    .ab-shot {
        height: 200px;
        border-radius: 14px;
    }

    .ab-album {
        padding: 56px 16px 24px;
    }

    .ab-album-photo img {
        height: auto;
        max-height: min(62vh, 460px);
    }

    .ab-stories {
        gap: 64px;
        margin-top: 40px;
    }

    .ab-text > p:not(.ab-chapter):not(.meta) {
        font-size: 17px;
    }

    .ab-next {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .ab-card {
        padding: 32px 28px;
    }

    .ab-cta {
        margin-top: var(--section-space);
    }

    .ab-cta-card {
        padding: 36px 28px;
    }

    .ab-dlg {
        padding: 56px 20px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ab-text details::details-content {
        transition: none;
    }

    .ab-photo img,
    .ab-shot img {
        transition: none;
    }
}

/* UI review (2026-10-25): the photo lost its own «+» (one control per story); it still enlarges */
.ab-photo {
    cursor: zoom-in;
}

/* Button levels (user, 2026-10-25): the album arrows are level 3 */
.ab-paddles .ctl {
    background: #fff;
    color: var(--b2, #1D1D1F);
    box-shadow: var(--b3-shadow);
}

.ab-paddles .ctl:hover {
    box-shadow: var(--b3-shadow-h);
}

/* ===== phones and tablets (2026-11-07), everything here sits inside a width query, the desktop stays as it was ===== */
/* a tablet held sideways: the chapters stay picture beside words, not a window-wide picture */
@media (min-width: 901px) and (max-width: 1068px) {
    .ab-story {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

    .ab-story:nth-child(even) .ab-photo {
        order: 2;
    }
}

/* Story 03's two album links (user report 2026-11-09), every width: side by side when they fit, else stacked. */
@media screen {
    html body .ab-text details .ab-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0 24px;
        margin: 12px 0 0;
    }

    html body .ab-text details .ab-links .link {
        margin-top: 0;
    }
}
/* ===== end of phones and tablets ===== */
