/* =========================================
   LFC — DESIGN SYSTEM V2 // AWWWARDS TIER
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Colors — British Pound Sterling Palette */
    --clr-bg: #050505;
    --clr-surface: #0d0d0d;
    --clr-surface-glass: rgba(255, 255, 255, 0.03);
    --clr-text: #F0F0F0;
    --clr-text-muted: #6B6B6B;
    --clr-accent: #00897B; /* British Pound £5 Teal */
    --clr-accent-light: #26A69A;
    --clr-accent-glow: rgba(0, 137, 123, 0.15);
    --clr-border: rgba(255, 255, 255, 0.08);
    --clr-border-hover: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-display: 'Instrument Serif', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Fluid Scale */
    --text-xs: clamp(0.7rem, 0.8vw, 0.85rem);
    --text-sm: clamp(0.85rem, 1vw, 1rem);
    --text-base: clamp(1rem, 1.15vw, 1.125rem);
    --text-lg: clamp(1.25rem, 1.8vw, 1.75rem);
    --text-xl: clamp(2.5rem, 5vw, 5rem);
    --text-xxl: clamp(3.5rem, 9vw, 11rem);
    --text-massive: clamp(5rem, 15vw, 18rem);

    /* Spacing */
    --space-xs: clamp(0.5rem, 1vw, 1rem);
    --space-sm: clamp(1rem, 2vw, 2rem);
    --space-md: clamp(2rem, 4vw, 4rem);
    --space-lg: clamp(5rem, 10vw, 10rem);
    --space-xl: clamp(8rem, 15vw, 15rem);

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================
   Reset
   ========================================= */

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

html {
    scroll-behavior: auto;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: var(--clr-accent);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

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

/* =========================================
   Custom Cursor
   ========================================= */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo),
                height 0.4s var(--ease-out-expo),
                background 0.3s ease;
}

.cursor.hovered {
    width: 80px;
    height: 80px;
    background: rgba(0, 137, 123, 0.25);
    border: 1px solid rgba(38, 166, 154, 0.6);
    mix-blend-mode: normal;
    backdrop-filter: blur(8px);
}

/* =========================================
   Noise Overlay (Premium Texture)
   ========================================= */

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =========================================
   Navigation
   ========================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.5rem;
    z-index: 1000;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.scrolled, .nav-solid {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--clr-border);
}

.nav__logo {
    z-index: 1001;
    display: flex;
    align-items: center;
}

.nav__logo img {
    height: 28px;
    width: auto;
    display: block;
}

/* Hamburger Menu */
.nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: none;
    z-index: 1001;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.nav__hamburger:hover {
    background: rgba(255,255,255,0.05);
}

.nav__hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--clr-text);
    transition: all 0.4s var(--ease-out-expo);
    transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
    .nav__hamburger { display: none; }
}

/* Nav Links */
.nav__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease-out-expo);
    z-index: 999;
}

.nav__links.open {
    transform: translateX(0);
}

.nav__links a {
    position: relative;
    padding: 0.25rem 0;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-accent-light);
    transition: width 0.4s var(--ease-out-expo);
}

.nav__links a:hover::after,
.nav__links a.active::after {
    width: 100%;
}

.nav__links a.active {
    color: var(--clr-accent-light);
}

@media (min-width: 1024px) {
    .nav__links {
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        flex-direction: row;
        transform: none;
        font-size: var(--text-xs);
        letter-spacing: 1px;
        gap: 2rem;
    }
}

.nav__cta {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 2px;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--clr-border);
    border-radius: 0;
    transition: all 0.4s var(--ease-out-expo);
    z-index: 1001;
}

.nav__cta:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
}

/* =========================================
   Layout Utilities
   ========================================= */

.main {
    position: relative;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--clr-accent-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--clr-accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: var(--clr-border);
    margin: var(--space-lg) 0;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Bento Grid System
   ========================================= */

.bento-grid {
    display: grid;
    gap: 1rem;
}

.bento-card {
    background: var(--clr-surface-glass);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo),
                box-shadow 0.5s var(--ease-out-expo);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top left, var(--clr-accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bento-card:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.bento-card:hover::before {
    opacity: 1;
}

.highlight-card {
    background: linear-gradient(135deg, var(--clr-accent), #004D40);
    border-color: transparent;
}

.highlight-card::before {
    display: none;
}

.highlight-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0, 137, 123, 0.3);
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    position: relative;
    overflow: hidden;
}

/* Accent gradient orb behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 137, 123, 0.2), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: floatOrb 8s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 30px) scale(1.1); }
}

.hero__badge {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--clr-accent-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.hero__badge::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--clr-accent);
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-xxl);
    line-height: 0.88;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero__title--massive {
    font-size: var(--text-massive);
    line-height: 0.82;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--clr-text-muted);
    max-width: 650px;
    font-weight: 300;
    line-height: 1.5;
}

.hero__stats {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    min-height: 140px;
}

.pricing-card {
    grid-column: auto;
}

.hero__stats {
    margin-top: var(--space-md);
}

/* =========================================
   Stats
   ========================================= */

.stat-num {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3vw, 3rem);
    color: var(--clr-accent-light);
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   About / Two Column
   ========================================= */

.about {
    padding: var(--space-lg) var(--space-md);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.about__text p {
    font-size: var(--text-lg);
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.about__text .highlight {
    color: var(--clr-text);
    font-weight: 500;
}

/* =========================================
   Format Bento
   ========================================= */

.format__bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .format__bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

.format-card {
    min-height: 250px;
    padding: 3rem;
}

.format-card h3 {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text);
}

.format-card p {
    font-size: var(--text-base);
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* =========================================
   Prizes
   ========================================= */

.prizes__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .prizes__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.prize-val {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    line-height: 1;
    margin-bottom: 1.5rem;
}

/* =========================================
   Image Hero (Sub Pages)
   ========================================= */

.img-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin: 10vh var(--space-md) 0;
}

.img-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--clr-bg) 0%, rgba(5,5,5,0.5) 40%, rgba(5,5,5,0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.img-hero .hero__title {
    position: relative;
    z-index: 2;
}

/* =========================================
   Page Headers
   ========================================= */

.page-header {
    padding: 15vh var(--space-md) 5vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   Register Form
   ========================================= */

.register {
    padding: var(--space-lg) var(--space-md);
    display: flex;
    justify-content: center;
}

.register__wrapper {
    background: var(--clr-surface);
    padding: var(--space-md);
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    border: 1px solid var(--clr-border);
    position: relative;
    overflow: hidden;
}

.register__wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, var(--clr-accent-glow), transparent 50%);
    pointer-events: none;
}

.register-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input, textarea, select {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--clr-border);
    padding: 1.2rem 0;
    color: var(--clr-text);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color 0.4s var(--ease-out-expo);
    width: 100%;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: none;
}

select option {
    background: var(--clr-surface);
    color: var(--clr-text);
}

input::placeholder, textarea::placeholder {
    color: var(--clr-text-muted);
}

input:focus, textarea:focus, select:focus {
    border-bottom-color: var(--clr-accent-light);
}

.submit-btn {
    margin-top: 1rem;
    background: var(--clr-text);
    color: var(--clr-bg);
    border: none;
    padding: 1.5rem;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.submit-btn:hover {
    background: var(--clr-accent);
    color: #fff;
    letter-spacing: 5px;
}

.footer-note {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* =========================================
   Footer
   ========================================= */

.footer {
    padding: 2rem var(--space-md);
    border-top: 1px solid var(--clr-border);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
    letter-spacing: 1px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__links a {
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--clr-text);
}

/* =========================================
   Marquee (Text) — Seamless Loop
   ========================================= */

.marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
}

.marquee__inner {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    animation: marqueeScroll 30s linear infinite;
    will-change: transform;
}

.marquee__inner span {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    padding: 0 2rem;
    color: var(--clr-text-muted);
    opacity: 0.4;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   Sponsors Marquee (Logos) — Seamless Loop
   ========================================= */

.sponsors {
    padding: var(--space-lg) 0;
}

.sponsors__label {
    text-align: center;
    margin-bottom: var(--space-md);
}

.sponsors__track {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    display: flex;
}

.sponsors__track::before,
.sponsors__track::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.sponsors__track::before {
    left: 0;
    background: linear-gradient(to right, var(--clr-bg), transparent);
}

.sponsors__track::after {
    right: 0;
    background: linear-gradient(to left, var(--clr-bg), transparent);
}

.sponsors__scroll {
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-shrink: 0;
    animation: sponsorScroll 25s linear infinite;
    will-change: transform;
}

.sponsors__scroll img {
    height: 30px;
    width: auto;
    opacity: 0.35;
    filter: brightness(0) invert(1);
    transition: opacity 0.4s ease;
    flex-shrink: 0;
}

.sponsors__scroll img:hover {
    opacity: 0.8;
}

@keyframes sponsorScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   Image Integrations
   ========================================= */

.img-reveal-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* clip-path will be animated by GSAP from inset(0 0 100% 0) to inset(0 0 0 0) */
    clip-path: inset(0 0 100% 0);
    will-change: clip-path;
}

/* Custom Animation Wrappers */
.anim-blur-focus {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.anim-blur-focus img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: blur(20px) grayscale(100%);
    transform: scale(1.15);
    will-change: filter, transform;
}

.anim-3d-float {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.anim-3d-float img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transform: rotateX(15deg) rotateY(-10deg) translateZ(50px) scale(0.9);
    opacity: 0;
    box-shadow: 0 40px 60px rgba(0,0,0,0.8);
    will-change: transform, opacity;
}

.anim-slit-expand {
    position: relative;
    width: 100%;
    /* clip-path starts as a horizontal slit */
    clip-path: inset(48% 0 48% 0);
    will-change: clip-path;
}
.anim-slit-expand img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
}

.anim-glitch-snap {
    position: relative;
    width: 100%;
    overflow: hidden;
    opacity: 0;
}
.anim-glitch-snap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transform: scale(1.2);
    filter: contrast(120%) brightness(80%);
}

.anim-extreme-zoom {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.anim-extreme-zoom img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transform: scale(2);
    will-change: transform;
}

.img-parallax {
    width: 100%;
    height: 120%; /* Extra height for parallax travel */
    object-fit: cover;
    display: block;
    will-change: transform;
    transform: scale(1.1); /* initial slight scale for parallax */
}

.img-standard {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Modifier to pair text alongside the image cleanly */
.about__grid.has-image {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

/* =========================================
   Contact Page — Info Grid
   ========================================= */

.contact-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
}

.contact-info-card {
    padding: 3rem;
}

/* Email link — prevent overflow on narrow screens */
.contact-info-card a[href^="mailto"] {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* =========================================
   Selection Page — Bento Grid
   ========================================= */

.selection-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
}

.selection-card {
    padding: 3rem;
}

.selection-banner {
    margin-top: 2rem;
    max-width: 1000px;
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.selection-why {
    margin-top: 2rem;
    max-width: 1000px;
    padding: 2.5rem 3rem;
}

/* =========================================
   Responsive — Mobile-First Comprehensive
   ========================================= */

/* ---- MOBILE ( ≤ 767px ) ---- */
@media (max-width: 767px) {

    /* Typography scale-down */
    :root {
        --text-xxl: clamp(2.8rem, 13vw, 5rem);
        --text-massive: clamp(3.5rem, 17vw, 7rem);
        --text-xl: clamp(2rem, 8vw, 3rem);
        --text-lg: clamp(1rem, 4vw, 1.25rem);
        --space-lg: clamp(3rem, 8vw, 6rem);
        --space-xl: clamp(4rem, 10vw, 8rem);
    }

    /* Prevent horizontal overflow globally */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* --- Nav --- */
    .nav {
        padding: 1.1rem 1.25rem;
        width: 100%;
        max-width: 100vw;
    }
    .nav__cta {
        display: none; /* hide CTA in nav on mobile, hamburger takes over */
    }

    /* --- Hero --- */
    .hero {
        padding: 10vh 1.25rem 4rem;
        min-height: 100svh;
    }
    .hero__title {
        font-size: clamp(2.5rem, 11vw, 4.5rem);
        margin-bottom: 1.25rem;
        word-break: break-word;
    }
    .hero__subtitle {
        font-size: var(--text-base);
        max-width: 100%;
    }

    /* Stat cards: 3 equal cols, but clamp font to fit */
    .hero__stats {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 0.5rem;
        margin-top: 2rem !important;
    }
    .stat-card {
        padding: 1rem 0.6rem !important;
        border-radius: 12px !important;
        min-height: unset !important;
    }
    .stat-card .stat-num {
        font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
        margin-bottom: 0.4rem;
        white-space: normal;
    }
    .stat-card .stat-label {
        font-size: clamp(7px, 2vw, 9px) !important;
        letter-spacing: 0.3px;
        line-height: 1.3;
    }
    /* Pricing card: stays full width row */
    .pricing-card {
        grid-column: 1 / -1 !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 1.25rem 1.5rem !important;
        border-radius: 12px !important;
    }
    .pricing-card .stat-num {
        font-size: clamp(1.4rem, 6vw, 2rem) !important;
        white-space: normal;
    }
    .pricing-card .stat-label {
        font-size: 8px !important;
        letter-spacing: 1px;
    }

    /* --- About grid --- */
    .about {
        padding: var(--space-lg) 1.25rem;
    }
    .about__grid,
    .about__grid.has-image {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }
    .about__text p {
        font-size: var(--text-base);
    }

    /* --- Section titles --- */
    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        line-height: 1.1;
        word-break: break-word;
    }

    /* --- Format bento --- */
    .format__bento {
        grid-template-columns: 1fr !important;
        padding: 0 1.25rem;
    }
    .format-card {
        min-height: 180px;
        padding: 2rem 1.5rem;
    }

    /* --- Prizes grid --- */
    .prizes__grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Contact info grid (overrides 1fr 1fr desktop layout) --- */
    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }
    /* Contact bento card padding fix on mobile */
    .contact-info-card {
        padding: 1.75rem 1.5rem !important;
    }

    /* --- Selection page grid (overrides 1fr 1fr desktop layout) --- */
    .selection-grid {
        grid-template-columns: 1fr !important;
    }
    .selection-card {
        padding: 1.75rem 1.5rem !important;
    }
    .selection-banner,
    .selection-why {
        padding: 1.75rem 1.5rem !important;
        margin-top: 1rem !important;
    }

    /* --- Calendar timeline cards (overrides inline grid-template-columns: 140px 1fr) --- */
    .timeline-card {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        padding: 1.75rem 1.5rem !important;
    }
    .timeline-card .stat-num {
        text-align: left !important;
        font-size: 1.5rem !important;
        border-bottom: 1px solid var(--clr-border);
        padding-bottom: 1rem;
    }

    /* --- Page headers --- */
    .page-header {
        padding: 12vh 1.25rem 3vh;
    }

    /* --- Img hero --- */
    .img-hero {
        margin: 8vh 1.25rem 0;
        border-radius: 14px;
    }

    /* --- Register form / wrapper --- */
    .register {
        padding: var(--space-lg) 1.25rem;
    }
    .register__wrapper {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
        max-width: 100% !important;
        width: 100%;
    }
    .input-group {
        grid-template-columns: 1fr;
    }

    /* --- Interest toggle buttons --- */
    .interest-options {
        flex-direction: row !important;
        gap: 0.75rem !important;
    }
    .interest-btn span {
        min-height: 48px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 11px !important;
    }

    /* --- Submit button --- */
    .submit-btn {
        padding: 1.2rem;
        letter-spacing: 2px;
        font-size: 10px;
        width: 100%;
    }

    /* --- Footer --- */
    .footer {
        padding: 1.75rem 1.25rem;
    }
    .footer__content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
        align-items: flex-start;
    }
    .footer__links {
        flex-wrap: wrap;
        gap: 0.8rem 1.5rem;
    }
    .footer__brand {
        align-items: flex-start !important;
    }

    /* --- Marquee --- */
    .marquee__inner span {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        padding: 0 1rem;
    }

    /* --- Registration modal --- */
    .reg-modal-overlay {
        align-items: center;
        padding: 1.25rem;
    }
    .reg-modal {
        padding: 2.5rem 1.5rem;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        margin: auto;
    }
    .reg-modal .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    /* --- Sponsors --- */
    .sponsors__track::before,
    .sponsors__track::after {
        width: 60px;
    }

    /* --- Cursor off on touch --- */
    .cursor { display: none; }
    body, a, button, select { cursor: auto; }
}

/* ---- TABLET ( 768px – 1023px ) ---- */
@media (min-width: 768px) and (max-width: 1023px) {

    :root {
        --text-xxl: clamp(4rem, 9vw, 7rem);
        --text-massive: clamp(5rem, 12vw, 9rem);
    }

    /* --- Nav --- */
    .nav {
        padding: 1.4rem var(--space-sm);
    }
    .nav__cta {
        font-size: 9px;
        padding: 0.5rem 1rem;
    }

    /* --- Hero --- */
    .hero {
        padding: 14vh var(--space-sm) 6rem;
    }
    .hero__stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* --- About grid --- */
    .about__grid.has-image {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    /* --- Format bento --- */
    .format__bento {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 var(--space-sm);
    }

    /* --- Input group --- */
    .input-group {
        grid-template-columns: 1fr 1fr;
    }

    /* --- Register form --- */
    .register {
        padding: var(--space-lg) var(--space-sm);
    }
    .register__wrapper {
        padding: 2.5rem 2rem;
    }

    /* --- Footer --- */
    .footer__links {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }

    /* --- Page headers --- */
    .page-header {
        padding: 14vh var(--space-sm) 4vh;
    }

    /* --- Img hero --- */
    .img-hero {
        margin: 9vh var(--space-sm) 0;
    }

    /* --- Bento cards --- */
    .bento-card {
        padding: 2rem 1.75rem;
    }

    /* --- Contact bento on tablet: keep 2 cols but fix padding --- */
    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-info-card {
        padding: 2rem 1.75rem;
    }

    /* --- Calendar timeline cards on tablet --- */
    .timeline-card {
        grid-template-columns: 120px 1fr !important;
        gap: 2rem !important;
        padding: 2rem 1.75rem !important;
    }

    /* --- Cursor off on touch --- */
    .cursor { display: none; }
    body, a, button, select { cursor: auto; }
}

/* ---- SMALL DESKTOP ( 1024px – 1279px ) ---- */
@media (min-width: 1024px) and (max-width: 1279px) {
    .hero__stats {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .pricing-card {
        grid-column: 1 / -1 !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
    }
    .pricing-card > div:nth-child(2) { display: flex !important; }
    .format__bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .prizes__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- LARGE DESKTOP ( ≥ 1280px ) ---- */
@media (min-width: 1280px) {
    .hero__stats {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .pricing-card {
        grid-column: 1 / -1 !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
    }
    .pricing-card > div:nth-child(2) { display: flex !important; }
    .format__bento {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================
   Registration Modal
   ========================================= */

.reg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.reg-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.reg-modal {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 4rem 3rem;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    overflow: hidden;
}

.reg-modal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 200%;
    background: radial-gradient(circle at center, var(--clr-accent-glow), transparent 60%);
    pointer-events: none;
}

.reg-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    cursor: none;
    z-index: 10;
    transition: color 0.3s ease;
}

.reg-modal-close:hover {
    color: var(--clr-text);
}


/* Interest Toggle Buttons */
.interest-btn input:checked + span {
    background: var(--clr-accent);
    color: var(--clr-bg) !important;
    border-color: var(--clr-accent) !important;
}


/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(10, 10, 10, 0.98);
    min-width: 220px;
    backdrop-filter: blur(25px);
    z-index: 1002;
    border: 1px solid rgba(255, 255, 255, 0.08);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1.2rem 0 0.8rem;
    margin-top: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 0.7rem 1.8rem !important;
    text-decoration: none;
    display: block;
    font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    color: var(--clr-accent) !important;
    background: rgba(255, 255, 255, 0.03);
    padding-left: 2.1rem !important;
}

@media (min-width: 1024px) {
    .nav-dropdown:hover .dropdown-content,
    .dropdown-content:hover {
        display: block;
        animation: navFadeIn 0.3s ease forwards;
    }
    
    .nav-dropdown > a::after {
        content: ' ▾';
        font-size: 9px;
        margin-left: 6px;
        opacity: 0.5;
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown:hover > a::after {
        transform: rotate(180deg);
        display: inline-block;
    }
}

@keyframes navFadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Hide dropdown in mobile hamburger, show links normally */
@media (max-width: 1023px) {
    .nav-dropdown > a { display: none; }
    .dropdown-content {
        display: contents;
        position: static;
        background: none;
        border: none;
    }
    .dropdown-content a {
        text-align: center;
        padding: 0.25rem 0 !important;
        font-size: var(--text-lg) !important;
        color: var(--clr-text) !important;
    }
    .dropdown-content a.active {
        color: var(--clr-accent-light) !important;
        padding-left: 0 !important;
    }
}
