/* Homepage */
.hero {
    width: min(1180px, calc(100% - 48px));
    min-height: 78vh;
    margin: 0 auto;
    padding: 86px 0 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 52px;
    position: relative;
}

.hero-text {
    position: relative;
}

.hero-text::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: 10%;
    top: -34px;
    border-radius: 50%;
    background: var(--rose);
    opacity: 0.55;
    z-index: -1;
}

.hero h1 {
    max-width: 720px;
    margin: 18px 0 24px;
    font-size: clamp(54px, 8vw, 96px);
}

.hero-title-accent {
    display: inline;
    color: var(--green);
    white-space: normal;
    background-image: linear-gradient(rgba(215, 159, 144, 0.36), rgba(215, 159, 144, 0.36));
    background-repeat: no-repeat;
    background-size: 0% 0.07em;
    background-position: 0 95%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition:
        background-size 2000ms cubic-bezier(0.22, 1, 0.36, 1),
        text-shadow 2000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero h1:hover .hero-title-accent,
.hero-title-accent:hover {
    background-size: 100% 0.07em;
    text-shadow: 0 4px 14px rgba(215, 159, 144, 0.34);
}

.hero-description {
    max-width: 620px;
    margin-bottom: 30px;
    color: var(--dark-gray);
    font-size: 19px;
}

.hero-motto-line {
    max-width: 620px;
    margin: -12px 0 0;
    color: var(--navy);
    font-family: var(--font-subtitle);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.78;
    animation: slideUp var(--transition-slow) 460ms both;
}

.hero h1 {
    animation: slideUp var(--transition-slow) 180ms both;
}

.hero-description {
    animation: slideUp var(--transition-slow) 340ms both;
}

.hero-buttons {
    margin-top: 28px;
    animation: slideUp var(--transition-slow) 560ms both;
}

.hero-images {
    position: relative;
    min-height: 530px;
}

.hero-images::before,
.hero-images::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.hero-images::before {
    width: 310px;
    height: 310px;
    right: 0;
    top: 8px;
    background: var(--green);
}

.hero-images::after {
    width: 240px;
    height: 240px;
    left: 8px;
    bottom: 18px;
    background: var(--rose);
}

.hero-image-item {
    position: absolute;
    z-index: 1;
    animation: scaleIn var(--transition-slow) 420ms both;
}

.hero-image-hover {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 8px solid var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image-hover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 22px;
}

.hero-images:hover .image-large .hero-image-hover {
    transform: translate3d(0, -6px, 0) scale(1.015);
}

.hero-images:hover .image-small.top .hero-image-hover {
    transform: translate3d(2px, -5px, 0) rotate(1deg);
}

.hero-images:hover .image-small.bottom .hero-image-hover {
    transform: translate3d(-2px, 5px, 0) rotate(-1deg);
}

.image-large {
    width: 350px;
    height: 410px;
    right: 68px;
    top: 72px;
}

.image-small {
    width: 190px;
    height: 220px;
}

.image-small.top {
    right: 0;
    top: 8px;
}

.image-small.bottom {
    left: 22px;
    bottom: 34px;
}

.hero-scroll-indicator {
    position: absolute;
    right: 48px;
    bottom: 34px;
    width: 34px;
    height: 34px;
    opacity: 0;
    color: var(--navy);
    text-decoration: none;
    animation:
        heroScrollFadeIn 500ms ease-out 1.15s forwards,
        heroScrollBounce 1.6s cubic-bezier(0.45, 0, 0.55, 1) 1.65s infinite;
    transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.hero-scroll-indicator::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
    border-radius: 2px;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

@keyframes heroScrollFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.85;
    }
}

@keyframes heroScrollBounce {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 6px, 0);
    }
}

.play-block {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 72px;
    padding: 42px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: center;
    color: var(--white);
    background: var(--navy);
    border-radius: 34px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-normal);
}

.js-enabled .feature-banner-reveal {
    opacity: 0;
    transform: scale(0.7);
    transition:
        opacity 650ms ease-out,
        transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled .feature-banner-reveal.is-visible {
    opacity: 1;
    transform: scale(1);
}

.js-enabled .feature-banner-reveal.is-visible:hover {
    transform: translate3d(0, -4px, 0) scale(1);
}

.play-block:hover {
    transform: translateY(-4px);
}

.play-block::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    bottom: -80px;
    border-radius: 50%;
    background: var(--rose);
}

.js-enabled .feature-banner-reveal::after {
    transform: translate3d(12px, 12px, 0) scale(0);
    transition:
        transform 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled .feature-banner-reveal.is-visible::after {
    transform: translate3d(0, 0, 0) scale(1);
}

.feature-banner-reveal.is-visible:hover::after {
    transform: translate3d(-4px, -4px, 0) scale(1.08);
}

.js-enabled .feature-banner-reveal.is-visible:hover::after {
    transform: translate3d(-4px, -4px, 0) scale(1.08);
}

.js-enabled .feature-kicker,
.js-enabled .feature-title,
.js-enabled .feature-copy {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
}

.js-enabled .feature-kicker {
    transition:
        opacity 900ms ease-out 150ms,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms;
}

.js-enabled .feature-title {
    transition:
        opacity 1000ms ease-out 300ms,
        transform 1000ms cubic-bezier(0.22, 1, 0.36, 1) 300ms;
}

.js-enabled .feature-copy {
    transition:
        opacity 900ms ease-out 600ms,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 600ms;
}

.js-enabled .feature-banner-reveal.is-visible .feature-kicker,
.js-enabled .feature-banner-reveal.is-visible .feature-title,
.js-enabled .feature-banner-reveal.is-visible .feature-copy {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.play-block .small-title,
.play-block h2,
.play-block p {
    position: relative;
    z-index: 1;
}

.play-block .small-title {
    color: var(--rose);
}

.play-block h2 {
    color: var(--white);
    font-size: clamp(34px, 5vw, 54px);
}

.play-block p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.about-description {
    max-width: 760px;
    margin: 0 auto 44px;
    color: var(--dark-gray);
    font-size: 18px;
}

.about-section {
    padding-bottom: 38px;
}

.about-section .section-title {
    margin-bottom: 16px;
}

.memory-band {
    padding-top: 38px;
}

.js-enabled .memory-band .info-card.reveal-card {
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 460ms ease-out,
        transform 460ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.js-enabled .memory-band .info-card.reveal-card.is-visible {
    opacity: 1;
    transform: scale(1);
}

.feature {
    min-height: 220px;
    background:
        linear-gradient(135deg, var(--white) 0%, var(--white) 68%, var(--cream) 68%),
        var(--white);
}

.feature:nth-child(2n) {
    background:
        linear-gradient(135deg, var(--white) 0%, var(--white) 68%, var(--green-soft) 68%),
        var(--white);
}

/* Events */
.filters-section {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto 54px;
    padding: 14px;
    display: grid;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

.events-page-entrance {
    animation: eventsPageEnter 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.events-filter-entrance {
    animation: eventsPageEnter 760ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}

.departments-page-entrance .small-title,
.departments-page-entrance h1,
.departments-page-entrance > p:not(.small-title),
.albums-page-entrance .small-title,
.albums-page-entrance h1,
.albums-page-entrance > p:not(.small-title) {
    animation: departmentsIntroEnter 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.departments-page-entrance h1,
.albums-page-entrance h1 {
    animation-delay: 110ms;
}

.departments-page-entrance > p:not(.small-title),
.albums-page-entrance > p:not(.small-title) {
    animation-delay: 210ms;
}

@keyframes eventsPageEnter {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes departmentsIntroEnter {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.filters-main-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(155px, 190px) minmax(155px, 190px) auto;
    gap: 12px;
    align-items: center;
}

.filters-custom-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(145px, 180px));
    gap: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 1px solid transparent;
    transform: translate3d(0, -6px, 0);
    transition:
        max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 260ms ease-out,
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.filters-custom-row.is-open {
    max-height: 120px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 12px;
    padding-top: 10px;
    border-top-color: var(--border);
    transform: translate3d(0, 0, 0);
}

.filter-clear-button {
    min-height: auto;
    padding: 10px 14px;
    white-space: nowrap;
}

.filter-date-field {
    display: grid;
    gap: 4px;
}

.filter-date-field label {
    margin: 0;
    color: var(--dark-gray);
    font-size: 11px;
}

.filter-date-field input {
    height: 100%;
}

.filters-section input,
.filters-section select {
    padding: 10px 12px;
    border-radius: 14px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.event-card-wrapper,
.poster-link {
    color: inherit;
    text-decoration: none;
}

.poster-card {
    --poster-card-accent-soft: var(--category-soft, var(--category-default-soft));
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        linear-gradient(145deg, var(--white) 0%, var(--white) 84%, var(--poster-card-accent-soft) 84%),
        var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: var(--soft-shadow);
    transition: transform 200ms ease-out;
}

.poster-card:hover {
    transform: translateY(-4px);
}

.events-list-section .poster-card:hover {
    transform: translateY(-3px);
}

.events-grid.is-filtering .poster-card {
    transition:
        opacity 220ms ease-out,
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.events-grid.is-filtering .poster-card.filter-result-visible {
    animation: filterResultIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.event-card-wrapper.is-filter-hidden,
.poster-card.is-filter-hidden {
    display: none !important;
}

@keyframes filterResultIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.js-enabled .events-list-section .poster-card.reveal-card {
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 420ms ease-out,
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.js-enabled .events-list-section .poster-card.reveal-card.is-visible {
    opacity: 1;
    transform: scale(1);
}

.poster-card img {
    width: 100%;
    aspect-ratio: 1 / 1.18;
    height: auto;
    object-fit: cover;
    background: var(--cream);
}

.poster-info {
    flex: 1;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.poster-info h3 {
    margin: 8px 0 12px;
    font-size: 30px;
}

.poster-badges {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.poster-info .state-badge {
    align-self: flex-start;
}

.event-card-meta {
    margin-bottom: 6px;
    color: var(--dark-gray);
    font-size: 14px;
}

.empty-filter-message {
    display: none;
    width: min(760px, 100%);
    margin: 34px auto 0;
}

.empty-filter-message.is-visible {
    display: block;
}

/* Event Detail */
.detail-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 92px 0;
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.detail-image {
    position: relative;
}

.detail-image::before {
    content: "";
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    left: -28px;
    bottom: -28px;
    border-radius: 50%;
    background: var(--category-color, var(--green));
    opacity: 0.72;
    z-index: -1;
}

.detail-image img {
    width: 100%;
    border: 10px solid var(--white);
    border-radius: 34px;
    box-shadow: var(--shadow);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-image:hover img {
    transform: translateY(-4px) scale(1.01);
}

.event-detail-poster-entrance {
    animation: eventDetailPosterIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-content {
    max-width: 760px;
}

.event-detail-content-entrance {
    animation: eventDetailTextIn 380ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.detail-content h1 {
    margin: 12px 0 22px;
    font-size: clamp(46px, 7vw, 84px);
}

.event-description {
    margin-bottom: 34px;
    color: var(--dark-gray);
    font-size: 18px;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.detail-box {
    padding: 20px;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.event-detail-card-entrance {
    animation: eventDetailTextIn 360ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.detail-box:hover {
    transform: translateY(-3px);
}

.event-detail-action-entrance {
    animation: eventDetailTextIn 360ms cubic-bezier(0.22, 1, 0.36, 1) 150ms both;
}

.detail-box h3 {
    margin-bottom: 8px;
}

.detail-box p {
    color: var(--navy);
    font-family: var(--font-secondary);
    font-weight: 500;
}

.event-discovery-section {
    width: min(1120px, calc(100% - 48px));
    margin: -18px auto 88px;
}

.event-neighbor-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 62px;
}

.event-neighbor-card {
    min-height: 132px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--soft-shadow);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.event-neighbor-card:hover,
.event-neighbor-card:focus-visible,
.related-event-card:hover,
.related-event-card:focus-visible {
    transform: translateY(-3px);
}

.event-neighbor-card span {
    color: var(--green);
    font-family: var(--font-subtitle);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.event-neighbor-card strong {
    color: var(--navy);
    font-family: var(--font-title);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
}

.event-neighbor-card small {
    color: var(--dark-gray);
    font-family: var(--font-secondary);
}

.event-neighbor-card em {
    width: fit-content;
    font-style: normal;
}

.event-neighbor-card-next {
    text-align: right;
    align-items: flex-end;
}

.event-neighbor-card-empty {
    visibility: hidden;
}

.event-related-title {
    margin-bottom: 26px;
}

.related-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-event-card {
    --related-card-accent-soft: var(--category-soft, var(--category-default-soft));
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(145deg, var(--white) 0%, var(--white) 82%, var(--related-card-accent-soft) 82%),
        var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--soft-shadow);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.related-event-card h3 {
    margin: 8px 0 12px;
    color: var(--navy);
    font-size: 28px;
}

@keyframes eventDetailPosterIn {
    from {
        opacity: 0;
        transform: scale(0.985);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes eventDetailTextIn {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Departments */
.department-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.department-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 22px;
    align-items: start;
}

.department-card img {
    width: 170px;
    height: 170px;
    margin: 0;
}

.feature:hover,
.info-card:hover,
.department-card:hover {
    transform: translateY(-3px);
}

.department-number {
    color: var(--rose);
    font-family: var(--font-title);
    font-size: 36px;
    line-height: 1;
}

.related-events {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.related-events a {
    display: block;
    margin-top: 8px;
    color: var(--navy);
    font-family: var(--font-subtitle);
    text-decoration: none;
}

.related-events a:hover {
    color: var(--green);
}

/* Albums */
.album-grid .info-card {
    display: flex;
    flex-direction: column;
}

.album-grid .page-actions {
    margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
    .hero-images:hover .image-large .hero-image-hover,
    .hero-images:hover .image-small.top .hero-image-hover,
    .hero-images:hover .image-small.bottom .hero-image-hover,
    .hero-scroll-indicator,
    .events-page-entrance,
    .events-filter-entrance,
    .departments-page-entrance .small-title,
    .departments-page-entrance h1,
    .departments-page-entrance > p:not(.small-title),
    .albums-page-entrance .small-title,
    .albums-page-entrance h1,
    .albums-page-entrance > p:not(.small-title),
    .events-grid.is-filtering .poster-card.filter-result-visible,
    .detail-image:hover img,
    .detail-box:hover,
    .event-neighbor-card:hover,
    .event-neighbor-card:focus-visible,
    .related-event-card:hover,
    .related-event-card:focus-visible,
    .play-block:hover,
    .js-enabled .feature-banner-reveal.is-visible:hover {
        transform: none !important;
        animation: none !important;
    }

    .filters-custom-row {
        max-height: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .filters-custom-row:not(.is-open) {
        display: none;
    }

    .feature-banner-reveal.is-visible:hover::after,
    .js-enabled .feature-banner-reveal.is-visible:hover::after {
        transform: none !important;
    }

    .hero-title-accent {
        transition: none;
    }
}
