/* ============================================
   ACTIVITIES PAGE
   Editorial masthead + contact-sheet gallery
   ============================================ */

.ac-hero,
.ac-intro,
.ac-index,
.ac-gallery-section,
.ac-cta {
    --ac-ink: #14181f;
    --ac-paper: #f6f4ef;
    --ac-navy: #0a1f44;
    --ac-gold: #d4af37;
    --ac-muted: #6a7180;
    --ac-line: rgba(20, 24, 31, 0.12);
    --ac-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── HERO ─── */
.ac-hero {
    background: var(--ac-paper);
    padding: 56px 0 0;
    overflow: hidden;
}

.ac-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--ac-muted);
    margin-bottom: 40px;
}

.ac-breadcrumb a {
    color: var(--ac-muted);
}

.ac-breadcrumb a:hover {
    color: var(--ac-ink);
}

.ac-breadcrumb [aria-current] {
    color: var(--ac-ink);
    font-weight: 600;
}

.ac-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
    padding-bottom: 54px;
}

.ac-hero-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5.6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -2px;
    color: var(--ac-ink);
    text-transform: uppercase;
}

.ac-hero-line {
    display: block;
    animation: acRise 0.9s var(--ac-ease) both;
}

.ac-hero-line:nth-child(2) {
    padding-left: 0.1em;
    animation-delay: 0.08s;
}

.ac-hero-line:nth-child(3) {
    padding-left: 0.2em;
    animation-delay: 0.16s;
}

/* outlined middle word — typographic, not another coloured heading */
.ac-hero-line--outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ac-navy);
}

.ac-hero-aside {
    padding-bottom: 12px;
    border-left: 2px solid var(--ac-gold);
    padding-left: 26px;
    animation: acRise 0.9s var(--ac-ease) 0.24s both;
}

.ac-hero-lead {
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--ac-muted);
    margin-bottom: 20px;
}

.ac-jump {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ac-ink);
}

.ac-jump-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ac-line);
    transition: background-color 0.3s var(--ac-ease), color 0.3s var(--ac-ease), transform 0.3s var(--ac-ease);
}

.ac-jump-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ac-jump:hover {
    color: var(--ac-navy);
}

.ac-jump:hover .ac-jump-icon {
    background: var(--ac-navy);
    border-color: var(--ac-navy);
    color: var(--ac-gold);
    transform: translateY(3px);
}

/* moving contact sheet */
.ac-strip {
    overflow: hidden;
    padding: 0 0 4px;
    border-top: 1px solid var(--ac-line);
    background: var(--ac-paper);
}

.ac-strip-track {
    display: flex;
    gap: 10px;
    width: max-content;
    padding: 18px 0;
    animation: acMarquee 48s linear infinite;
}

.ac-strip:hover .ac-strip-track {
    animation-play-state: paused;
}

.ac-strip-cell {
    flex: none;
    width: clamp(150px, 18vw, 260px);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 3px;
    background: #e6e2d8;
}

.ac-strip-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.25);
    transition: filter 0.4s var(--ac-ease);
}

.ac-strip:hover .ac-strip-cell img {
    filter: none;
}

@keyframes acMarquee {
    to { transform: translateX(-50%); }
}

@keyframes acRise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

/* ─── INTRO ─── */
.ac-intro {
    background: #fff;
    padding: 96px 0;
}

.ac-intro-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
}

.ac-kicker {
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ac-gold);
    margin: 0 0 10px;
}

.ac-intro-grid .ac-kicker {
    padding-top: 10px;
    border-top: 2px solid var(--ac-ink);
    margin: 0;
    height: fit-content;
}

.ac-intro-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--ac-ink);
    max-width: 22ch;
    margin-bottom: 26px;
}

.ac-intro-body p {
    max-width: 68ch;
    font-size: 1.04rem;
    line-height: 1.85;
    color: var(--ac-muted);
    margin-bottom: 16px;
}

/* ─── CATEGORY INDEX ─── */
.ac-index {
    background: var(--ac-navy);
    color: #fff;
    padding: 84px 0;
}

.ac-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.ac-index .ac-section-title {
    color: #fff;
    margin-bottom: 34px;
}

.ac-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ac-index-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ac-index-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--ac-gold);
}

.ac-index-link {
    padding: 22px 0;
    border: 0;
    background: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s var(--ac-ease), transform 0.35s var(--ac-ease);
}

.ac-index-link:hover,
.ac-index-link:focus-visible {
    color: var(--ac-gold);
    transform: translateX(10px);
}

.ac-index-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ─── GALLERY ─── */
.ac-gallery-section {
    background: var(--ac-paper);
    padding: 90px 0 100px;
}

.ac-gallery-head {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
}

.ac-gallery-note {
    font-size: 0.88rem;
    color: var(--ac-muted);
    margin: 0;
}

.ac-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 30px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--ac-line);
}

.ac-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--ac-line);
    border-radius: 24px;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ac-ink);
    cursor: pointer;
    transition: background-color 0.28s var(--ac-ease), color 0.28s var(--ac-ease), border-color 0.28s var(--ac-ease);
}

.ac-filter span {
    font-size: 0.72rem;
    color: var(--ac-muted);
}

.ac-filter:hover {
    border-color: var(--ac-ink);
}

.ac-filter.is-active {
    background: var(--ac-ink);
    border-color: var(--ac-ink);
    color: #fff;
}

.ac-filter.is-active span {
    color: var(--ac-gold);
}

.ac-filter:focus-visible {
    outline: 2px solid var(--ac-gold);
    outline-offset: 2px;
}

/* masonry: photos keep their own proportions, any number of them works */
.ac-masonry {
    column-count: 3;
    column-gap: 22px;
}

.ac-tile {
    break-inside: avoid;
    margin: 0 0 22px;
}

.ac-tile-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #e6e2d8;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 2px;
}

.ac-tile-btn img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s var(--ac-ease), filter 0.4s var(--ac-ease);
}

.ac-tile-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 31, 68, 0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s var(--ac-ease);
}

.ac-tile-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ac-navy);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s var(--ac-ease), transform 0.35s var(--ac-ease);
}

.ac-tile-zoom svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

@media (hover: hover) {
    .ac-tile-btn:hover img {
        transform: scale(1.04);
    }

    .ac-tile-btn:hover::after,
    .ac-tile-btn:hover .ac-tile-zoom {
        opacity: 1;
    }

    .ac-tile-btn:hover .ac-tile-zoom {
        transform: none;
    }
}

.ac-tile-btn:focus-visible {
    outline: 3px solid var(--ac-gold);
    outline-offset: 3px;
}

.ac-tile-cap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    padding-top: 12px;
}

.ac-tile-cat {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ac-gold);
}

.ac-tile-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ac-ink);
}

.ac-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--ac-muted);
}

/* reveal */
.ac-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ac-ease), transform 0.7s var(--ac-ease);
    transition-delay: calc(var(--i, 0) * 60ms);
}

.ac-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ─── CLOSING ─── */
.ac-cta {
    background: #fff;
    padding: 86px 0;
    border-top: 1px solid var(--ac-line);
}

.ac-cta-inner {
    max-width: 640px;
}

.ac-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.6px;
    color: var(--ac-ink);
    margin-bottom: 12px;
}

.ac-cta-inner p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ac-muted);
    margin-bottom: 28px;
}

.ac-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 28px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.3s var(--ac-ease), color 0.3s var(--ac-ease), border-color 0.3s var(--ac-ease), transform 0.3s var(--ac-ease);
}

.ac-btn--solid {
    background: var(--ac-navy);
    color: #fff;
}

.ac-btn--solid:hover {
    background: #12305f;
    color: #fff;
    transform: translateY(-2px);
}

.ac-btn--line {
    border: 1px solid var(--ac-line);
    color: var(--ac-ink);
}

.ac-btn--line:hover {
    border-color: var(--ac-ink);
    color: var(--ac-ink);
}

/* ─── LIGHTBOX ─── */
.ac-no-scroll {
    overflow: hidden;
}

.ac-lightbox[hidden] {
    display: none;
}

.ac-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    padding: 24px;
    background: rgba(10, 16, 28, 0.94);
    opacity: 0;
    transition: opacity 0.25s var(--ac-ease, ease);
}

.ac-lightbox.is-open {
    opacity: 1;
}

.ac-lb-figure {
    grid-column: 2;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transform: scale(0.98);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-lightbox.is-open .ac-lb-figure {
    transform: none;
}

.ac-lb-figure img {
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.ac-lb-caption {
    max-width: 62ch;
    text-align: center;
    color: #fff;
}

.ac-lb-cat {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 6px;
}

.ac-lb-caption h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.ac-lb-caption p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 8px;
}

.ac-lb-count {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
}

.ac-lb-nav,
.ac-lb-close {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ac-lb-nav svg,
.ac-lb-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ac-lb-nav:hover,
.ac-lb-close:hover,
.ac-lb-nav:focus-visible,
.ac-lb-close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
}

.ac-lb-prev { grid-column: 1; justify-self: start; }
.ac-lb-next { grid-column: 3; justify-self: end; }

.ac-lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .ac-hero-head {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 42px;
    }

    .ac-hero-aside {
        border-left: 0;
        border-top: 2px solid var(--ac-gold);
        padding: 20px 0 0;
        max-width: 60ch;
    }

    .ac-intro,
    .ac-index { padding: 72px 0; }

    .ac-intro-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ac-intro-grid .ac-kicker { display: inline-block; }

    .ac-gallery-section { padding: 72px 0 80px; }

    .ac-masonry { column-count: 2; }
}

@media (max-width: 700px) {
    .ac-hero { padding: 34px 0 0; }
    .ac-breadcrumb { margin-bottom: 26px; }
    .ac-hero-title { letter-spacing: -1.5px; }
    .ac-hero-line--outline { -webkit-text-stroke-width: 1px; }

    .ac-strip-track { animation-duration: 32s; }

    .ac-intro,
    .ac-index,
    .ac-cta { padding: 56px 0; }

    .ac-gallery-section { padding: 56px 0 64px; }

    .ac-index-item { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
    .ac-index-link { padding: 16px 0; }

    /* one large column keeps photos big enough to read on a phone */
    .ac-masonry { column-count: 1; column-gap: 0; }
    .ac-tile { margin-bottom: 26px; }

    .ac-filters {
        gap: 8px;
        padding-bottom: 22px;
        margin-bottom: 26px;
    }

    .ac-filter { min-height: 44px; padding: 0 15px; font-size: 0.82rem; }

    .ac-btn { width: 100%; }

    .ac-lightbox {
        grid-template-columns: 1fr;
        padding: 64px 14px 20px;
        align-content: center;
    }

    .ac-lb-figure { grid-column: 1; }
    .ac-lb-figure img { max-height: 58vh; }

    .ac-lb-nav {
        position: fixed;
        bottom: 22px;
        width: 52px;
        height: 52px;
        background: rgba(255, 255, 255, 0.12);
    }

    .ac-lb-prev { left: 18%; }
    .ac-lb-next { right: 18%; }
}

@media (prefers-reduced-motion: reduce) {
    .ac-hero-line,
    .ac-hero-aside { animation: none; }

    .ac-strip-track { animation: none; }

    .ac-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ac-tile-btn img,
    .ac-lb-figure { transition: none; }
}
