/* Activities: Figma 218:75, with editable photos inside the supplied SVG frames. */
.features {
    min-height: 969px;
    padding: 114px 0 64px;
}
.features-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(15 62 193 / .1);
    mix-blend-mode: saturation;
}
.features-banner {
    position: absolute;
    inset: 0 0 auto;
    height: 335px;
    overflow: hidden;
    background: var(--blue);
    pointer-events: none;
}
.features-banner img {
    position: absolute;
    top: -48.96%;
    left: -12.15%;
    width: 156.17%;
    height: 377.62%;
    max-width: none;
    mix-blend-mode: lighten;
}
.features h2 {
    font-size: 64px;
    line-height: 1.05;
    white-space: nowrap; /* one line on desktop */
    text-align: left;
    color: var(--yellow);
}
/* English line is longer: scale it so it still fits on one line. */
@media (min-width: 1101px) { html[lang^="en"] .features h2 { font-size: min(52px, 3.9vw); } }
.features .feature-grid {
    width: calc(100% - 20px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 31px 18px;
    margin-top: 48px;
}
.features .feature-grid figure:nth-child(-n+4) { transform: translateX(19px); }
.features .feature-grid figure:nth-child(even) { margin-top: 44px; }
.features .feature-grid figure:nth-child(6) { margin-top: 52px; }
.features .feature-grid figure:nth-child(8) { margin-top: 46px; }
.features .feature-image {
    aspect-ratio: 230 / 212;
    background: url('../images/feature-frame-premieres.svg') center / 100% 100% no-repeat;
}
.features .feature-frame-cosplay { aspect-ratio: 229 / 212; background-image: url('../images/feature-frame-cosplay.svg'); }
.features .feature-frame-card { aspect-ratio: 231 / 213; background-image: url('../images/feature-frame-card.svg'); }
.features .feature-frame-food { aspect-ratio: 229 / 211; background-image: url('../images/feature-frame-food.svg'); }
.features .feature-frame-fanmeet { aspect-ratio: 230 / 211; background-image: url('../images/feature-frame-fanmeet.svg'); }
.feature-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    /* Leave the original yellow frame visible; photos retain their proportions. */
    clip-path: polygon(calc(8.26% + 2px) 3px, calc(100% - 3px) 3px, calc(91.74% - 2px) calc(100% - 3px), 3px calc(100% - 3px));
}
.features .feature-grid figcaption { margin-top: 20px; font-size: 24px; line-height: 32px; white-space: nowrap; }
.features .feature-grid figure:nth-child(2) figcaption,
.features .feature-grid figure:nth-child(6) figcaption { margin-top: 31px; }
.features .feature-grid figure:nth-child(3) figcaption { margin-top: 10px; }
.features .feature-grid figure:nth-child(4) figcaption { margin-top: 16px; }
.features .feature-grid figure:nth-child(5) figcaption { margin-top: 13px; }
.features .feature-grid figure:nth-child(7) figcaption { margin-top: 19px; }
.features .feature-grid figure:nth-child(8) figcaption { margin-top: 21px; }
@media (max-width: 1100px) {
    .features { min-height: 0; padding: 72px 0 56px; }
    .features-banner { height: 280px; }
    .features-banner img { height: auto; min-height: 100%; }
    .features h2 { font-size: 48px; line-height: 1.15; white-space: normal; }
    .features .feature-grid { margin-top: 36px; gap: 32px 18px; }
    .features .feature-grid figcaption { font-size: 20px; line-height: 28px; white-space: normal; }
}
@media (max-width: 800px) {
    .features .feature-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
    .features .feature-grid figure:nth-child(-n+4) { transform: none; }
    .features .feature-grid figure:nth-child(even) { margin-top: 28px; }
    .features .feature-grid figure:nth-child(n) figcaption { margin-top: 12px; }
}
@media (max-width: 600px) {
    .features { padding: 48px 0 44px; }
    .features-banner { height: 248px; }
    .features h2 { font-size: 36px; text-align: center; text-wrap: balance; }
    .features .feature-grid { margin-top: 32px; gap: 28px 14px; }
    .features .feature-grid figcaption { font-size: 19px; line-height: 25px; }
}
@media (max-width: 360px) {
    .features h2 { font-size: 32px; }
    .features .feature-grid { gap: 24px 12px; }
    .features .feature-grid figcaption { font-size: 17px; line-height: 23px; }
}
