
/* B01: RoboGenius Fest Hero */

.robofest-hero {
    --robofest-hero-ink: var(--color-text, #171717);
    --robofest-hero-paper: var(--color-background, #f7f8f6);
    --robofest-hero-blue: var(--color-primary, #2563eb);
    --robofest-hero-orange: #ff7139;
    --robofest-hero-green: #c7f36b;
    --robofest-hero-border: 3px solid var(--robofest-hero-ink);
    --robofest-hero-shadow: 8px 8px 0 var(--robofest-hero-ink);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(2rem, 5vw, 4.5rem);
    background: var(--robofest-hero-paper);
    color: var(--robofest-hero-ink);
}

.robofest-hero__container {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5rem, 1440px);
    margin-inline: auto;
}

.robofest-hero__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.85rem;
    border-top: var(--robofest-hero-border);
    border-bottom: var(--robofest-hero-border);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.robofest-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.robofest-hero__brand::before {
    width: 0.75rem;
    height: 0.75rem;
    flex: 0 0 auto;
    background: var(--robofest-hero-blue);
    content: "";
}

.robofest-hero__edition {
    text-align: right;
}

.robofest-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5.5rem);
    padding-block: clamp(3rem, 6vw, 5.5rem);
}

.robofest-hero__content {
    min-width: 0;
    max-width: 690px;
}

.robofest-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    padding: 0.55rem 0.8rem;
    border: 2px solid var(--robofest-hero-ink);
    background: var(--robofest-hero-green);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.robofest-hero__eyebrow::before {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    background: var(--robofest-hero-ink);
    content: "";
}

.robofest-hero__title {
    max-width: 13ch;
    margin: 0 0 1.5rem;
    font-size: clamp(2.75rem, 5.1vw, 5.5rem);
    font-weight: 950;
    line-height: 0.94;
    letter-spacing: -0.075em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.robofest-hero__title-highlight {
    position: relative;
    display: inline;
    color: var(--robofest-hero-blue);
    text-decoration: underline;
    text-decoration-thickness: 0.075em;
    text-underline-offset: 0.09em;
    text-decoration-skip-ink: none;
}

.robofest-hero__description {
    max-width: 55ch;
    margin: 0 0 2rem;
    color: var(--color-text-secondary, #454545);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    font-weight: 500;
    line-height: 1.8;
    text-wrap: pretty;
}

.robofest-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.robofest-hero__cta {
    display: inline-flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.85rem 1.2rem;
    border: var(--robofest-hero-border);
    background: var(--robofest-hero-blue);
    box-shadow: 5px 5px 0 var(--robofest-hero-ink);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.robofest-hero__cta:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--robofest-hero-ink);
    background: var(--robofest-hero-orange);
    color: var(--robofest-hero-ink);
}

.robofest-hero__cta:focus-visible {
    outline: 3px solid var(--robofest-hero-blue);
    outline-offset: 5px;
}

.robofest-hero__cta-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.robofest-hero__cta:hover .robofest-hero__cta-icon {
    transform: translateX(3px);
}

.robofest-hero__since {
    padding-block: 0.45rem;
    border-bottom: 2px solid var(--robofest-hero-ink);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.robofest-hero__media {
    min-width: 0;
    margin: 0;
}

.robofest-hero__image-frame {
    position: relative;
    padding: 0.65rem;
    border: var(--robofest-hero-border);
    background: var(--robofest-hero-green);
    box-shadow: var(--robofest-hero-shadow);
    transform: rotate(1deg);
}


.robofest-hero__image {
    overflow: hidden;
    border: 2px solid var(--robofest-hero-ink);
    background: #e5e7eb;
    aspect-ratio: 3281 / 2294;
}

.robofest-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


.robofest-hero__image-index {
    position: absolute;
    top: 1.2rem;
    left: -1rem;
    padding: 0.65rem 0.8rem;
    border: 2px solid var(--robofest-hero-ink);
    background: var(--robofest-hero-blue);
    box-shadow: 3px 3px 0 var(--robofest-hero-ink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    transform: rotate(-4deg);
}

.robofest-hero__caption {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: var(--robofest-hero-border);
}

.robofest-hero__caption-marker {
    width: 0.85rem;
    height: 0.85rem;
    grid-row: 1 / 3;
    align-self: center;
    background: var(--robofest-hero-orange);
    border: 2px solid var(--robofest-hero-ink);
}

.robofest-hero__caption-text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.robofest-hero__caption-year {
    color: var(--color-text-secondary, #454545);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.robofest-hero__bottomline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    border-top: var(--robofest-hero-border);
    border-bottom: var(--robofest-hero-border);
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.robofest-hero__bottomline-symbol {
    color: var(--robofest-hero-blue);
    font-size: 1.3rem;
    font-weight: 950;
}

.robofest-hero__decoration {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.robofest-hero__shape {
    position: absolute;
    display: block;
    width: clamp(2.5rem, 5vw, 5rem);
    height: auto;
    color: var(--robofest-hero-blue);
}

.robofest-hero__shape--square {
    top: 15%;
    right: 2%;
    width: clamp(2rem, 4vw, 3.5rem);
    color: var(--robofest-hero-orange);
    transform: rotate(12deg);
}

.robofest-hero__shape--double {
    bottom: 18%;
    left: .5rem;
    color: var(--robofest-hero-blue);
    transform: rotate(-8deg) translateY(3.5rem);
}

.robofest-hero__shape--grid {
    right: 4%;
    bottom: 1%;
    width: clamp(2.5rem, 4vw, 4rem);
    color: var(--robofest-hero-ink);
    opacity: 0.45;
    transform: rotate(4deg)
}

@media (min-width: 1600px) {
    .robofest-hero__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .robofest-hero__title {
        font-size: clamp(5rem, 5vw, 6.25rem);
    }
}

@media (max-width: 1000px) {
    .robofest-hero__container {
        width: min(100% - 2rem, 760px);
    }

    .robofest-hero__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
        padding-block: 3rem;
    }

    .robofest-hero__content {
        max-width: 760px;
    }

    .robofest-hero__title {
        max-width: 15ch;
        font-size: clamp(3rem, 7.5vw, 5rem);
    }

    .robofest-hero__description {
        max-width: 65ch;
    }

    .robofest-hero__media {
        width: min(100% - 0.5rem, 680px);
        margin-inline: auto;
    }

    .robofest-hero__shape--square {
        top: 8%;
        right: 3%;
    }

    .robofest-hero__shape--double {
        bottom: 12%;
    }
}

@media (max-width: 600px) {
    .robofest-hero {
        padding-block: 1.25rem;
    }

    .robofest-hero__container {
        width: calc(100% - 2rem);
    }

    .robofest-hero__topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
        font-size: 0.65rem;
    }

    .robofest-hero__edition {
        text-align: left;
    }

    .robofest-hero__layout {
        gap: 2.5rem;
        padding-block: 2.5rem;
    }

    .robofest-hero__eyebrow {
        margin-bottom: 1.25rem;
        font-size: 0.68rem;
    }

    .robofest-hero__title {
        max-width: 100%;
        margin-bottom: 1.25rem;
        font-size: clamp(2.65rem, 11vw, 4rem);
        line-height: 0.98;
        letter-spacing: -0.065em;
    }

    .robofest-hero__description {
        margin-bottom: 1.5rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .robofest-hero__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .robofest-hero__cta {
        width: 100%;
        justify-content: space-between;
    }

    .robofest-hero__image-frame {
        padding: 0.4rem;
        box-shadow: 5px 5px 0 var(--robofest-hero-ink);
        transform: rotate(0.5deg);
    }

    .robofest-hero__image-index {
        top: 0.75rem;
        left: -0.5rem;
        padding: 0.5rem 0.6rem;
        font-size: 0.6rem;
    }

    .robofest-hero__caption {
        margin-top: 1.1rem;
    }

    .robofest-hero__caption-text {
        font-size: 1rem;
    }

    .robofest-hero__caption-year {
        font-size: 0.6rem;
    }

    .robofest-hero__bottomline {
        gap: 0.5rem;
        font-size: 0.65rem;
        letter-spacing: 0.04em;
    }

    .robofest-hero__bottomline-symbol {
        font-size: 1rem;
    }

    .robofest-hero__shape--square {
        top: 12%;
        right: -0.75rem;
        width: 2.25rem;
    }

    .robofest-hero__shape--double {
        bottom: 12%;
        left: -1.75rem;
        width: 3rem;
    }

    .robofest-hero__shape--grid {
        right: -0.5rem;
        bottom: 3%;
        width: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .robofest-hero__cta,
    .robofest-hero__cta-icon {
        transition: none;
    }
}
