/* AGE OF FAILON PAGE */

.aof-page section[id] {
    scroll-margin-top: 100px;
}

.aof-section-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 36px;
    padding: 24px;
    border-block: 1px solid var(--border);
    background: var(--background-light);
}

.aof-section-nav a {
    padding: 8px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.aof-section-nav a:hover {
    color: var(--cyan);
}

.aof-section {
    padding: 100px 48px;
    border-bottom: 1px solid var(--border);
}

.aof-container {
    max-width: 1200px;
    margin: 0 auto;
}

.aof-section .section-heading {
    margin-bottom: 44px;
}

.aof-section-tinted {
    background: #080c16;
}

.aof-intro {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.9;
}

.aof-feature-grid,
.aof-gallery-grid,
.aof-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.aof-feature {
    padding: 30px;
    border: 1px solid var(--border);
    background: rgba(22, 140, 255, 0.025);
}

.aof-feature-number {
    display: block;
    margin-bottom: 24px;
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 3px;
}

.aof-feature h3 {
    margin-bottom: 14px;
    font-size: 19px;
}

.aof-feature p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.aof-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.aof-gallery-item {
    display: block;
    min-width: 0;
    border: 1px solid var(--border);
    background: var(--background-light);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aof-gallery-item[hidden] {
    display: none;
}

.aof-gallery-item:hover {
    border-color: var(--cyan);
    box-shadow: 0 8px 28px rgba(22, 140, 255, 0.12);
}

.aof-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.aof-gallery-item span {
    display: block;
    padding: 16px 20px;
    font-size: 14px;
}

.aof-gallery-actions {
    margin-top: 32px;
    text-align: center;
}

.aof-gallery-actions button[hidden] {
    display: none;
}

.aof-page button {
    cursor: pointer;
    font-family: inherit;
}

.aof-page button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

html:has(.aof-lightbox[open]) {
    overflow: hidden;
}

.aof-lightbox {
    width: min(1500px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 16px;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
}

.aof-lightbox::backdrop {
    background: rgba(2, 4, 10, 0.94);
}

.aof-lightbox-toolbar,
.aof-lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aof-lightbox-toolbar {
    margin-bottom: 12px;
}

.aof-lightbox-toolbar p {
    font-size: 14px;
}

.aof-lightbox-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 210px);
    object-fit: contain;
}

.aof-lightbox-controls {
    margin-top: 12px;
}

.aof-lightbox button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--background-light);
}

.aof-lightbox button:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.aof-lightbox-count {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .aof-lightbox {
        width: calc(100% - 16px);
        padding: 10px;
    }

    .aof-lightbox button {
        padding: 8px;
    }
}

.aof-demo {
    background: radial-gradient(ellipse at center, rgba(112, 92, 255, 0.13), transparent 75%), #080c16;
}

.aof-facts > div {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.aof-facts dt {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.aof-facts dd {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .aof-feature-grid,
    .aof-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .aof-section {
        padding: 64px 20px;
    }

    .aof-feature-grid,
    .aof-gallery-grid,
    .aof-facts {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .aof-intro {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.aof-page) {
        scroll-behavior: auto;
    }
}

/* HERO */

.aof-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 82px;
    background: radial-gradient(ellipse at 50% 75%, rgba(112, 92, 255, 0.10), transparent 65%);
}

/* The artwork supplies the visible title; keep a semantic heading available. */
.aof-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.aof-hero-artwork {
    position: relative;
    display: grid;
    max-width: 1920px;
    margin: 0 auto;
}

.aof-hero-artwork img {
    grid-area: 1 / 1;
    align-self: start;
    display: block;
    width: 100%;
    height: auto;
}

.aof-hero-artwork::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 62%, rgba(5, 8, 17, 0.55) 78%, var(--background) 100%);
}

.aof-hero-content {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    align-self: end;
    padding: 40% 24px clamp(32px, 3vw, 58px);
    text-align: center;
    text-shadow: 0 2px 12px #050811, 0 0 24px #050811;
}

.aof-hero-genre {
    color: var(--cyan);
    font-size: clamp(12px, 1.2vw, 18px);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.6;
}

.aof-hero-tagline {
    max-width: 620px;
    margin: 12px auto 0;
    color: var(--text);
    font-size: clamp(15px, 1.3vw, 20px);
    line-height: 1.6;
}

.aof-countdown-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px 64px;
    text-align: center;
}

.aof-page a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 6px;
}

.aof-hero-actions {
    margin-top: 24px;
}

.aof-hero-actions a {
    background-color: rgba(5, 8, 17, 0.8);
    text-shadow: none;
}

.next-fest {
    margin-top: 0;
    padding: 30px 24px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(22, 140, 255, 0.07), rgba(112, 92, 255, 0.08));
}

.next-fest h2 {
    color: var(--cyan);
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.next-fest h2 span {
    color: var(--text);
}

.next-fest-status,
.next-fest-note {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.next-fest-countdown:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 520px;
    margin: 22px auto 0;
}

.next-fest-countdown > div {
    position: relative;
}

.next-fest-countdown > div + div::before {
    content: ":";
    position: absolute;
    left: -3px;
    top: 5px;
    color: var(--text-muted);
    font-size: 28px;
}

.next-fest-countdown [data-unit] {
    display: block;
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.countdown-label {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .next-fest {
        padding: 24px 12px;
        margin-top: 0;
    }

    .next-fest h2 span {
        display: block;
    }
}

@media (max-width: 700px) {
    .aof-hero {
        padding-top: 68px;
    }

    .aof-hero-content {
        padding: 42% 20px 32px;
    }

    .aof-hero-genre {
        max-width: 360px;
        margin: 0 auto;
        letter-spacing: 1.2px;
    }

    .aof-hero-actions {
        max-width: 360px;
        margin-inline: auto;
        gap: 12px;
    }

    .aof-countdown-section {
        padding: 0 20px 48px;
    }
}

@media (max-width: 380px) {
    .aof-page .header-content {
        padding: 0 12px;
    }

    .aof-page .header-logo img {
        width: 105px;
    }

    .aof-page .main-nav {
        gap: 12px;
    }
}
