/* ==========================================================================
   KSU AI Club — site styles
   Colors follow KSU brand: Hooty Hoo Gold #FFC629, Legacy Black #2D2926.
   ========================================================================== */

:root {
    --bg: #0e0c0b;
    --bg-2: #151210;
    --surface: #1c1916;
    --surface-2: #26211d;
    --legacy: #2d2926;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f2ed;
    --muted: #a9a29a;
    --faint: #6f6861;
    --gold: #ffc629;
    --gold-hi: #ffd866;
    --gold-soft: rgba(255, 198, 41, 0.12);
    --gold-line: rgba(255, 198, 41, 0.35);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --radius: 18px;
    --radius-sm: 10px;
    --container: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

p {
    margin: 0;
}

::selection {
    background: var(--gold);
    color: #111;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--gold);
    color: #111;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}
.skip-link:focus {
    top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
    --btn-bg: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--btn-bg);
    font: 600 16px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s, color 0.25s,
        border-color 0.25s, box-shadow 0.25s;
    white-space: nowrap;
}
.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease);
}
.btn:hover svg {
    transform: translateX(3px);
}
.btn-primary {
    --btn-bg: var(--gold);
    color: #141110;
    box-shadow: 0 8px 30px -10px rgba(255, 198, 41, 0.6);
}
.btn-primary:hover {
    --btn-bg: var(--gold-hi);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -12px rgba(255, 198, 41, 0.75);
}
.btn-ghost {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    border-color: var(--gold-line);
    color: var(--gold);
    transform: translateY(-2px);
}
.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

/* ---------- Eyebrow / section headings ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 500 12.5px/1 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
}

.section {
    position: relative;
    padding-block: clamp(72px, 11vw, 128px);
}

.section-head {
    display: grid;
    gap: 16px;
    max-width: 720px;
    margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head.center {
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}
.section-head h2 {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700;
}
.section-head p {
    color: var(--muted);
    font-size: 18px;
}

.gold {
    color: var(--gold);
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
    border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.menu-open {
    background: rgba(14, 12, 11, 0.78);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-color: var(--line);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font: 700 20px/1 var(--font-display);
    letter-spacing: -0.01em;
    margin-right: auto;
}
.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.4s var(--ease);
}
.brand:hover img {
    transform: rotate(-8deg) scale(1.08);
}
.brand b {
    color: var(--gold);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    position: relative;
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}
.nav-links a.nav-hot {
    color: var(--gold);
}
.nav-links a.nav-hot::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    vertical-align: 1px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}
.nav-links a[aria-current='page'] {
    color: var(--gold);
    background: var(--gold-soft);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) {
    top: 16px;
}
.nav-toggle span:nth-child(2) {
    top: 25px;
}
.menu-open .nav-toggle span:nth-child(1) {
    top: 20.5px;
    transform: rotate(45deg);
}
.menu-open .nav-toggle span:nth-child(2) {
    top: 20.5px;
    transform: rotate(-45deg);
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }
    .nav-cta {
        display: none;
    }
    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 16px var(--gutter) 28px;
        background: rgba(14, 12, 11, 0.96);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
    }
    .menu-open .nav-links {
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        font-size: 20px;
        padding: 14px 16px;
        border-radius: 12px;
    }
}

/* ---------- Hero (home) ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: calc(var(--header-h) + 32px) var(--gutter) 96px;
}
.hero-media {
    position: absolute;
    inset: -4%;
    z-index: -3;
    background: url('../assets/hero-background.gif') center / cover no-repeat;
    filter: brightness(0.34) saturate(1.35) hue-rotate(-14deg) blur(3px);
    transform: scale(1.04);
}
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 40%, transparent 0%, rgba(14, 12, 11, 0.55) 60%, var(--bg) 100%),
        linear-gradient(to bottom, transparent 70%, var(--bg));
}

.hero-content {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
    max-width: 920px;
}
.hero-logo {
    width: clamp(132px, 20vw, 200px);
    aspect-ratio: 1;
    margin-bottom: 18px;
    filter: drop-shadow(0 20px 50px rgba(255, 198, 41, 0.35));
    animation: float 6s ease-in-out infinite, pop-in 0.9s var(--ease) both;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    margin-bottom: 26px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: rgba(255, 198, 41, 0.08);
    font: 500 13px/1 var(--font-mono);
    color: var(--gold-hi);
    text-decoration: none;
    animation: rise 0.8s 0.15s var(--ease) both;
    transition: background 0.2s;
}
.hero-badge:hover {
    background: rgba(255, 198, 41, 0.16);
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(255, 198, 41, 0.6);
    animation: pulse 2s infinite;
}
.hero h1 {
    font-size: clamp(52px, 10vw, 112px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.95;
    animation: rise 0.9s 0.25s var(--ease) both;
}
.hero h1 .gold {
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #e0a800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.typewriter {
    min-height: 1.6em;
    margin-top: 22px;
    font: 500 clamp(18px, 2.6vw, 26px) / 1.4 var(--font-mono);
    color: var(--text);
    animation: rise 0.9s 0.4s var(--ease) both;
}
.typewriter .gold {
    color: var(--gold);
}
.typewriter .caret {
    display: inline-block;
    width: 0.55em;
    height: 1.05em;
    margin-left: 4px;
    vertical-align: -0.15em;
    background: var(--gold);
    animation: blink 1s steps(1) infinite;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
    animation: rise 0.9s 0.55s var(--ease) both;
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    translate: -50% 0;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-cue::before {
    content: '';
    width: 4px;
    height: 9px;
    border-radius: 4px;
    background: var(--gold);
    animation: scroll-dot 1.8s var(--ease) infinite;
}

@keyframes float {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -10px;
    }
}
@keyframes pop-in {
    from {
        opacity: 0;
        scale: 0.6;
    }
}
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}
@keyframes blink {
    50% {
        opacity: 0;
    }
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 198, 41, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 198, 41, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 198, 41, 0);
    }
}
@keyframes scroll-dot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    80% {
        transform: translateY(14px);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* ---------- Marquee strip ---------- */

.marquee {
    border-block: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
    padding-block: 18px;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    font: 500 15px/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.marquee-track span::after {
    content: '✦';
    color: var(--gold);
}
@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- About (home) ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.about-copy {
    display: grid;
    gap: 22px;
}
.about-copy h2 {
    font-size: clamp(34px, 5vw, 54px);
}
.about-copy p {
    color: var(--muted);
    font-size: 18px;
}
.about-copy .lede {
    color: var(--text);
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.55;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.pillar {
    position: relative;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    overflow: hidden;
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 198, 41, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}
.pillar:hover {
    border-color: var(--gold-line);
    transform: translateY(-4px);
}
.pillar:hover::before {
    opacity: 1;
}
.pillar-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
}
.pillar-icon svg {
    width: 24px;
    height: 24px;
}
.pillar h3 {
    font-size: 20px;
    margin-bottom: 6px;
}
.pillar p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

/* ---------- Featured event ---------- */

.feature-event {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border: 1px solid var(--gold-line);
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    background: radial-gradient(800px 400px at 0% 0%, rgba(255, 198, 41, 0.14), transparent 60%),
        linear-gradient(135deg, var(--surface), var(--bg-2));
}
.feature-event-body {
    display: grid;
    align-content: center;
    gap: 22px;
    padding: clamp(28px, 5vw, 56px);
}
.feature-event h2 {
    font-size: clamp(36px, 5vw, 58px);
}
.feature-event p {
    color: var(--muted);
}
.feature-event-media {
    position: relative;
    min-height: 320px;
    background: #000;
}
.feature-event-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.feature-event-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--surface) 0%, transparent 30%);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.stat {
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
}
.stat strong {
    display: block;
    font: 700 24px/1.1 var(--font-display);
    color: var(--gold);
}
.stat span {
    font: 500 12px/1.4 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ---------- Carousel ---------- */

.carousel {
    position: relative;
    aspect-ratio: 16 / 8;
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}
.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.9s var(--ease);
}
.carousel-slide.is-active {
    opacity: 1;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 6s linear;
}
.carousel-slide.is-active img {
    transform: scale(1);
}
.carousel-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px 28px 26px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    font: 500 14px/1.4 var(--font-mono);
    letter-spacing: 0.04em;
    color: #fff;
}
.carousel-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 2;
}
.icon-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(14, 12, 11, 0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}
.icon-btn svg {
    width: 20px;
    height: 20px;
}
.carousel-dots {
    display: flex;
    gap: 6px;
    margin-right: 8px;
}
.carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.3s var(--ease), background 0.3s;
}
.carousel-dots button[aria-current='true'] {
    width: 26px;
    background: var(--gold);
}

/* ---------- Photo grid + lightbox ---------- */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(140px, 16vw, 210px);
    grid-auto-flow: dense;
    gap: 12px;
}
.photo-grid button {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--surface);
}
.photo-grid button:nth-child(1),
.photo-grid button:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
}
/* 2x2 + 2x2 + four 2x1 + four 1x1 = exactly 5 full rows of 4 */
.photo-grid button:nth-child(4),
.photo-grid button:nth-child(5),
.photo-grid button:nth-child(9),
.photo-grid button:nth-child(10) {
    grid-column: span 2;
}
.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease), filter 0.4s;
    filter: saturate(0.9);
}
.photo-grid button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.3s;
}
.photo-grid button:hover img {
    transform: scale(1.06);
    filter: saturate(1.1);
}
.photo-grid button:hover::after {
    box-shadow: inset 0 0 0 2px var(--gold);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 64px 16px;
    background: rgba(6, 5, 4, 0.92);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: min(1400px, 100%);
    max-height: calc(100svh - 128px);
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.4s var(--ease);
}
.lightbox.is-open img {
    transform: none;
}
.lightbox .icon-btn {
    position: absolute;
}
.lightbox-close {
    top: 16px;
    right: 16px;
}
.lightbox-prev {
    left: 16px;
    top: 50%;
    translate: 0 -50%;
}
.lightbox-next {
    right: 16px;
    top: 50%;
    translate: 0 -50%;
}
.lightbox-count {
    position: absolute;
    top: 28px;
    left: 50%;
    translate: -50% 0;
    font: 500 13px/1 var(--font-mono);
    color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 20px;
    padding: clamp(48px, 8vw, 88px) var(--gutter);
    border-radius: calc(var(--radius) + 10px);
    background: var(--gold);
    color: #16120f;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, transparent 30%, #000 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 85%);
}
.cta-band > * {
    position: relative;
}
.cta-band h2 {
    font-size: clamp(34px, 5.5vw, 64px);
    max-width: 14ch;
}
.cta-band p {
    max-width: 52ch;
    font-size: 18px;
    color: rgba(22, 18, 15, 0.78);
}
.cta-band .eyebrow {
    color: #16120f;
}
.cta-band .btn-dark {
    background: #16120f;
    color: var(--gold);
}
.cta-band .btn-dark:hover {
    transform: translateY(-2px);
    background: #000;
}
.cta-band .btn-outline-dark {
    border-color: rgba(22, 18, 15, 0.35);
    color: #16120f;
}
.cta-band .btn-outline-dark:hover {
    border-color: #16120f;
    transform: translateY(-2px);
}
.cta-band .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

/* ---------- Inner page hero ---------- */

.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 7vw, 80px);
    overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 10%, transparent 70%);
}
.page-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -260px;
    left: 50%;
    translate: -50% 0;
    width: 900px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 198, 41, 0.22), transparent);
    filter: blur(20px);
}
.page-hero .container {
    display: grid;
    gap: 20px;
    justify-items: center;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(44px, 8vw, 88px);
    letter-spacing: -0.04em;
    max-width: 16ch;
}
.page-hero p {
    max-width: 60ch;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
}

/* ---------- About page ---------- */

.flip-line {
    font: 500 clamp(20px, 2.8vw, 28px) / 1.5 var(--font-display);
    color: var(--muted);
}
.flip-word {
    display: inline-block;
    min-width: 6ch;
    color: var(--gold);
    transition: opacity 0.35s, filter 0.35s, transform 0.35s var(--ease);
}
.flip-word.is-out {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(-8px);
}

.leaders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.leader {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 24px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.leader:hover {
    border-color: var(--gold-line);
    transform: translateY(-4px);
}
.leader-photo {
    width: 132px;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2);
    position: relative;
}
.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s var(--ease);
}
.leader:hover .leader-photo img {
    transform: scale(1.05);
}
.leader-role {
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.leader h3 {
    font-size: 26px;
    margin: 10px 0 12px;
}
.leader p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
.leader-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip svg {
    width: 15px;
    height: 15px;
}
.chip:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-soft);
}

/* ---------- Events page ---------- */

.event {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: start;
}
.event-poster {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    cursor: zoom-in;
    box-shadow: 0 40px 80px -40px rgba(255, 198, 41, 0.35);
}
.event-poster img {
    width: 100%;
    transition: transform 0.6s var(--ease);
}
.event-poster:hover img {
    transform: scale(1.03);
}
.event-body {
    display: grid;
    gap: 28px;
}
.event-body h2 {
    font-size: clamp(36px, 5vw, 56px);
}
.event-body > p {
    color: var(--muted);
    font-size: 18px;
}

.prize {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 28px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(255, 198, 41, 0.2), rgba(255, 198, 41, 0.04));
    border: 1px solid var(--gold-line);
}
.prize span {
    font: 500 13px/1 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-hi);
}
.prize strong {
    font: 700 clamp(40px, 6vw, 60px) / 1 var(--font-display);
    letter-spacing: -0.03em;
    color: var(--gold);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.when {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.when-label {
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.when-date {
    margin-top: 12px;
    font: 700 28px/1.1 var(--font-display);
}
.when-time,
.when-place {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
}
.when svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--faint);
}

.info-block h3 {
    font-size: 20px;
    margin-bottom: 14px;
}
.rules {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.rules li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-2);
}
.rules li::before {
    content: counter(rule, decimal-leading-zero);
    counter-increment: rule;
    font: 500 13px/1.7 var(--font-mono);
    color: var(--gold);
}
.rules {
    counter-reset: rule;
}

.sponsor-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sponsor-pill {
    padding: 12px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    font: 600 16px/1 var(--font-display);
    letter-spacing: 0.01em;
    background: var(--surface);
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.more-events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ---------- Sponsors page ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.contact-card {
    display: grid;
    gap: 18px;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--gold-line);
    border-radius: calc(var(--radius) + 4px);
    background: radial-gradient(600px 300px at 100% 0%, rgba(255, 198, 41, 0.14), transparent 60%),
        var(--surface);
}
.contact-card h2 {
    font-size: clamp(28px, 4vw, 40px);
}
.contact-card p {
    color: var(--muted);
}
.contact-person {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
}
.contact-person img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
}
.contact-person strong {
    display: block;
    font-family: var(--font-display);
}
.contact-person span {
    font-size: 14px;
    color: var(--muted);
}
.logo-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.logo-tile {
    display: grid;
    place-items: center;
    gap: 6px;
    aspect-ratio: 4 / 3;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.logo-tile:hover {
    border-color: var(--gold-line);
    transform: translateY(-3px);
}
.logo-tile strong {
    font: 700 clamp(18px, 2.2vw, 24px) / 1 var(--font-display);
}
.logo-tile span {
    font: 500 11px/1.3 var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: clamp(48px, 8vw, 96px);
    border-top: 1px solid var(--line);
    background: var(--bg-2);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-block: 56px 40px;
}
.footer-brand p {
    margin-top: 16px;
    max-width: 34ch;
    color: var(--muted);
    font-size: 15px;
}
.footer-col h4 {
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 18px;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--gold);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--faint);
}
.footer-bottom a {
    color: var(--muted);
    text-decoration: none;
}
.footer-bottom a:hover {
    color: var(--gold);
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .about-grid,
    .feature-event,
    .event,
    .split {
        grid-template-columns: 1fr;
    }
    .feature-event-media {
        order: -1;
        min-height: 260px;
    }
    .feature-event-media::after {
        background: linear-gradient(0deg, var(--surface) 0%, transparent 40%);
    }
    .event-poster {
        position: relative;
        top: 0;
        max-width: 520px;
        margin-inline: auto;
    }
    .leaders {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .more-events {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-actions {
        width: 100%;
        max-width: 360px;
    }
    .pillars,
    .timeline {
        grid-template-columns: 1fr;
    }
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }
    .photo-grid button:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .photo-grid button:nth-child(1),
    .photo-grid button:nth-child(6) {
        grid-column: span 2;
        grid-row: span 2;
    }
    .carousel {
        aspect-ratio: 4 / 3;
    }
    .carousel-controls {
        right: 12px;
        bottom: 12px;
    }
    .carousel-slide figcaption {
        padding: 60px 18px 72px;
    }
    .leader {
        grid-template-columns: 1fr;
    }
    .leader-photo {
        width: 100%;
        height: 260px;
    }
    .logo-wall {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 16px;
        translate: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

.btn-wrap {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.3;
}
