/* ============================================================
   HOMEPAGE / HERO
   Úvodná obrazovka, orby, gradient, loop a jej responzívne pravidlá.
   ============================================================ */

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    position: relative;
    overflow: hidden;
    background: var(--black);
    padding: 90px 4% 1.5rem;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(30, 136, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(30, 136, 229, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    grid-row: 1;
    align-self: center;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: 1.5px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta-group {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Finger swipe indicator (shown on mobile instead of the mouse icon) */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: 20%;
    right: -3%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    top: 50%;
    right: 15%;
    animation-delay: 4s;
}

/* Legacy responsive hero rules kept together with the base hero styles. */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-cta-group {
        gap: 0.8rem;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: auto !important;
    }

    .hero-content {
        padding-top: 5rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 380px) {
    .hero-content {
        padding-top: 4.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

#home.hero {
    display: flex;
    align-items: stretch;
    --hero-title-size: clamp(48px, 6.65vw, 112px);
    --hero-content-top: clamp(48px, 8svh, 112px);
    --hero-content-bottom: clamp(44px, 7svh, 96px);
    --hero-nav-space: clamp(88px, 7.4vw, 118px);
    min-height: 0 !important;
    padding: 0 !important;
    isolation: isolate;
}

/* Fade the hero artwork into services without fading the marquee text. */
#home.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: clamp(100px, 18vh, 200px);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--black));
}

#home .hero-shell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 81.5%;
    max-width: 1560px;
    min-width: 0;
    margin-inline: auto;
}

#home .hero-first-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--hero-nav-space);
}

/* Service heroes end around 72% of the screen; short screens grow with content. */
:is(.av-web, .av-brand, .av-photo, .av-bundle, .av-portfolio-page, .av-contact-page) #home .hero-first-screen {
    min-height: 72vh;
    min-height: 72svh;
}

@media (min-width: 768px) {
    :is(.av-web, .av-brand, .av-photo, .av-bundle, .av-portfolio-page, .av-contact-page) #home.hero {
        --hero-title-size: clamp(48px, min(6.65vw, 9svh), 96px);
        --hero-content-top: clamp(20px, 3svh, 40px);
        --hero-content-bottom: clamp(24px, 4svh, 48px);
        --hero-nav-space: clamp(86px, 10svh, 104px);
    }
}

#home .hero-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: var(--hero-content-top) 0 var(--hero-content-bottom) !important;
    text-align: left;
}

#home .hero-title {
    margin: 0 0 clamp(20px, 2.5vw, 36px);
    font-size: var(--hero-title-size);
    font-weight: 800;
    line-height: .88;
    letter-spacing: -.025em;
    animation: none;
}

#home .hero-title-last {
    white-space: nowrap;
}

#home .hero-title .highlight {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    /* Match the narrower outline face without changing the main headline. */
    font-size: .60em;
    font-weight: 800;
    font-style: normal;
    font-synthesis: none;
    letter-spacing: -.04em;
    line-height: 1.15;
    vertical-align: baseline;
    color: transparent;
    background: none;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: clamp(.55px, .021em, 1.5px) var(--white);
    animation: none;
}

#home .hero-intro-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    gap: clamp(20px, 4.1vw, 68px);
}

#home .hero-subtitle {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 370px;
    margin: 0;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255, 255, 255, .78);
    animation: none;
}

#home .hero-subtitle strong {
    color: var(--white);
    font-weight: 650;
}

#home .hero-cta-group {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    min-width: 0;
    gap: clamp(14px, 1.8vw, 28px);
    animation: none;
}

#home .hero-cta-group a {
    width: auto;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: center;
    padding: .75em 1em;
    font-size: clamp(13px, 1.05vw, 16px);
    line-height: 1.25;
    white-space: nowrap;
}

#home .hero-cta-group a svg {
    width: 1.35em;
    height: 1.35em;
    flex: 0 0 auto;
}

#home .hero-cta-group a>span {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 767px) {
    #home .hero-cta-group a {
        min-height: 46px;
        padding: .8em 1em;
        font-size: 14px;
        gap: 7px;
    }

    #home .hero-cta-group a svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 359px) {
    #home .hero-cta-group a {
        width: 100%;
        flex: initial;
    }
}

#home .hero-bottom-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-shrink: 0;
    padding-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
}

#home .hero-bottom-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, .2);
    transform: translateX(-50%);
    pointer-events: none;
}

#home .hero-bottom-row strong {
    font-weight: 400;
    color: var(--white);
}

#home .hero-about-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: inherit;
}

#home .hero-about-link>span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    transition: border-color .2s, color .2s;
}

#home .hero-about-link:hover {
    color: var(--accent);
}

#home .hero-about-link:hover>span {
    border-color: var(--accent);
}

#home .hero-marquee {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
    padding-block: 21px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

#home .hero-marquee-track {
    display: flex;
    width: max-content;
    animation: hero-banner-loop var(--hero-loop-duration, 55s) linear infinite;
    animation-play-state: paused;
    will-change: transform;
}

#home .hero-marquee.is-ready .hero-marquee-track {
    animation-play-state: running;
}

#home .hero-marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: clamp(24px, 2.5vw, 40px);
    padding-right: clamp(24px, 2.5vw, 40px);
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 300;
    line-height: 1.4;
    color: rgba(255, 255, 255, .85);
}

@keyframes hero-banner-loop {
    to {
        transform: translate3d(calc(-1 * var(--hero-loop-distance, 0px)), 0, 0);
    }
}

/* Farby, kruhový tvar a priehľadnosť orbov ostávajú z pôvodného CSS. */
#home .floating-shape {
    z-index: 1;
    pointer-events: none;
    animation: hero-orb-drift 14s ease-in-out infinite alternate;
    will-change: transform;
}

#home .shape-1 {
    width: 15.7vw;
    height: 15.7vw;
    top: 15.5%;
    left: -5.3%;
}

#home .shape-2 {
    width: 10.5vw;
    height: 10.5vw;
    top: 44.5%;
    bottom: auto;
    right: -2.3%;
    animation-duration: 18s;
}

#home .shape-3 {
    width: 7.9vw;
    height: 7.9vw;
    top: 42.8%;
    right: 23%;
    animation-duration: 16s;
}

#home .hero-orb-top {
    top: 21.8%;
    right: 8.8%;
    animation-delay: -7s;
}

#home .hero-orb-small {
    width: 3.6vw;
    height: 3.6vw;
    top: 17.3%;
    left: 11.6%;
    right: auto;
    animation-delay: -4s;
}

#home .hero-orb-middle {
    width: 5.5vw;
    height: 5.5vw;
    top: 36.8%;
    right: 37%;
    animation-delay: -9s;
}

#home .hero-orb-bottom {
    top: 57%;
    left: auto;
    right: 10.5%;
    animation-duration: 20s;
    animation-delay: -5s;
}

@keyframes hero-orb-drift {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(14px, -24px, 0);
    }
}

/* Široké monitory: zachované pomery a maximálne rozmery orbov. */
@media (min-width: 1800px) {
    #home .shape-1 {
        width: 282px;
        height: 282px;
    }

    #home .shape-2 {
        width: 189px;
        height: 189px;
    }

    #home .shape-3 {
        width: 142px;
        height: 142px;
    }

    #home .hero-orb-small {
        width: 65px;
        height: 65px;
    }

    #home .hero-orb-middle {
        width: 99px;
        height: 99px;
    }
}

/* Notebooky: rovnaký nadpis, popis a obe CTA vedľa seba. */
@media (min-width: 1024px) and (max-width: 1279px) {
    #home .hero-intro-row {
        gap: 3.3vw;
    }

    #home .hero-cta-group {
        gap: 1.5vw;
    }

    #home .hero-subtitle {
        font-size: clamp(14px, 1.2vw, 16px);
    }
}

/* Menšie obrazovky na šírku: desktopová kompozícia bez zalomenia CTA. */
@media (min-width: 768px) and (max-width: 1023px) {
    #home.hero {
        --hero-nav-space: 90px;
    }

    #home .hero-intro-row {
        gap: 22px;
    }

    #home .hero-subtitle {
        font-size: 14px;
    }

    #home .hero-cta-group {
        gap: 12px;
    }

    #home .hero-bottom-row {
        font-size: 12px;
        padding-bottom: 14px;
    }

    #home .hero-about-link {
        gap: 12px;
    }

    #home .hero-about-link>span {
        width: 30px;
        height: 30px;
    }

    #home .hero-marquee {
        padding-block: 17px;
    }

    #home .hero-marquee-group {
        font-size: 14px;
        gap: 24px;
        padding-right: 24px;
    }
}

/* Výška displeja je rovnako dôležitá ako šírka – vrátane širokých notebookov. */
@media (min-width: 768px) and (max-height: 820px) and (orientation: landscape) {
    #home.hero {
        --hero-title-size: clamp(48px, min(6.65vw, 12svh), 104px);
        --hero-content-top: clamp(32px, 6svh, 50px);
        --hero-content-bottom: clamp(32px, 5svh, 42px);
        --hero-nav-space: clamp(88px, 11svh, 104px);
    }

    #home .hero-title {
        margin-bottom: 24px;
    }

    #home .hero-subtitle {
        font-size: clamp(14px, 1.2vw, 16px);
    }

    #home .hero-marquee {
        padding-block: 18px;
    }

    #home .shape-1 {
        width: min(15.7vw, 25svh);
        height: min(15.7vw, 25svh);
    }

    #home .shape-2 {
        width: min(10.5vw, 17svh);
        height: min(10.5vw, 17svh);
    }

    #home .shape-3 {
        width: min(7.9vw, 13svh);
        height: min(7.9vw, 13svh);
    }

    #home .hero-orb-small {
        width: min(3.6vw, 6svh);
        height: min(3.6vw, 6svh);
    }

    #home .hero-orb-middle {
        width: min(5.5vw, 9svh);
        height: min(5.5vw, 9svh);
    }
}

@media (min-width: 768px) and (max-height: 650px) and (orientation: landscape) {
    #home.hero {
        --hero-title-size: clamp(44px, min(6.65vw, 10.5svh), 68px);
        --hero-content-top: 20px;
        --hero-content-bottom: 20px;
        --hero-nav-space: 86px;
    }

    #home .hero-title {
        margin-bottom: 20px;
    }

    #home .hero-subtitle {
        font-size: 14px;
    }

    #home .hero-bottom-row {
        padding-bottom: 12px;
    }

    #home .hero-marquee {
        padding-block: 14px;
    }
}

/* Tablety na výšku: väčší nadpis, CTA pod popisom, stále v jednom riadku. */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    #home.hero {
        --hero-title-size: clamp(64px, 8.4vw, 82px);
        --hero-content-top: 64px;
        --hero-content-bottom: 64px;
    }

    #home .hero-intro-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    #home .hero-subtitle {
        font-size: 17px;
    }
}

/* Mobil: vlastná kompozícia a čitateľné texty namiesto zmenšeného desktopu. */
@media (max-width: 767px) {
    #home.hero {
        --hero-title-size: clamp(50px, 14.5vw, 68px);
        --hero-content-top: clamp(38px, 6svh, 60px);
        --hero-content-bottom: clamp(36px, 5svh, 52px);
        --hero-nav-space: 96px;
    }

    #home .hero-shell {
        width: calc(100% - 40px);
        max-width: 620px;
    }

    #home .hero-content {
        align-items: flex-start;
    }

    :is(.av-web, .av-brand, .av-photo, .av-bundle, .av-portfolio-page, .av-contact-page) #home.hero {
        --hero-title-size: clamp(40px, 12.8vw, 64px);
        --hero-content-top: 24px;
        --hero-content-bottom: 28px;
    }

    #home .hero-title {
        width: 100%;
        margin-bottom: 24px;
        line-height: .96;
        letter-spacing: -.03em;
    }

    #home .hero-title-last {
        display: flex;
        align-items: baseline;
        gap: .12em;
        white-space: nowrap;
    }

    #home .hero-title .highlight {
        display: inline-block;
        flex: 0 0 auto;
        max-width: 100%;
        margin-top: 0;
        font-size: .44em;
        line-height: 1.2;
        letter-spacing: -.04em;
        white-space: nowrap;
    }

    #home .hero-intro-row {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    #home .hero-subtitle {
        flex: initial;
        max-width: 360px;
        font-size: 16px;
        line-height: 1.6;
    }

    #home .hero-desktop-break {
        display: none;
    }

    #home .hero-cta-group {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: stretch;
    }

    #home .hero-bottom-row {
        gap: 14px;
        padding-bottom: 15px;
        font-size: 12px;
    }

    #home .hero-about-link {
        flex-shrink: 0;
        gap: 10px;
    }

    #home .hero-about-link>span {
        width: 32px;
        height: 32px;
    }

    #home .hero-marquee {
        padding-block: 18px;
    }

    #home .hero-marquee-group {
        font-size: 14px;
        gap: 24px;
        padding-right: 24px;
    }

    #home .shape-1 {
        width: 150px;
        height: 150px;
        top: 17%;
        left: -95px;
    }

    #home .shape-2 {
        width: 90px;
        height: 90px;
        top: 46%;
        right: -58px;
    }

    #home .shape-3 {
        width: 64px;
        height: 64px;
        top: 47%;
        right: 7%;
    }

    #home .hero-orb-top {
        width: 110px;
        height: 110px;
        top: 23%;
        right: -32px;
    }

    #home .hero-orb-small {
        width: 28px;
        height: 28px;
        top: 17%;
        left: 22%;
        right: auto;
    }

    #home .hero-orb-middle {
        width: 42px;
        height: 42px;
        top: 37%;
        right: 15%;
    }

    #home .hero-orb-bottom {
        width: 148px;
        height: 148px;
        top: auto;
        bottom: 13%;
        left: auto;
        right: -45px;
    }
}

/* Väčší mobil / malý tablet. */
@media (min-width: 480px) and (max-width: 767px) {
    #home.hero {
        --hero-title-size: clamp(68px, 12vw, 86px);
    }

    #home .hero-shell {
        width: calc(100% - 64px);
    }

    #home .hero-orb-top {
        right: 1%;
        width: 130px;
        height: 130px;
    }

    #home .hero-orb-bottom {
        right: -15px;
        width: 180px;
        height: 180px;
    }
}

/* Užšie telefóny: tlačidlá sa zmestia bez zdedených šírok 280 px. */
@media (min-width: 360px) and (max-width: 389px) {
    #home .hero-cta-group {
        gap: 8px;
    }
}

@media (max-width: 359px) {
    #home.hero {
        --hero-title-size: clamp(40px, 14.5vw, 50px);
        --hero-nav-space: 90px;
    }

    #home .hero-shell {
        width: calc(100% - 32px);
    }

    #home .hero-subtitle {
        font-size: 15px;
    }

    #home .hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }

    #home .hero-bottom-row {
        gap: 10px;
    }

    #home .hero-about-link {
        gap: 8px;
    }
}

/* Krátke mobilné displeje: prirodzená výška obsahu, menšie prázdne medzery. */
@media (max-width: 767px) and (max-height: 740px) and (orientation: portrait) {
    #home.hero {
        --hero-content-top: 30px;
        --hero-content-bottom: 32px;
    }

    #home .hero-title {
        margin-bottom: 20px;
    }

    #home .hero-intro-row {
        gap: 20px;
    }

    #home .hero-marquee {
        padding-block: 15px;
    }
}

/* Telefón otočený na šírku: nadpis vľavo, popis a CTA vpravo. */
@media (min-width: 480px) and (max-width: 960px) and (max-height: 600px) and (orientation: landscape) and (pointer: coarse) {
    #home.hero {
        --hero-title-size: clamp(30px, 5.1vw, 48px);
        --hero-content-top: 28px;
        --hero-content-bottom: 28px;
        --hero-nav-space: 86px;
    }

    #home .hero-shell {
        width: 90%;
        max-width: none;
    }

    #home .hero-content {
        display: grid;
        grid-template-columns: .95fr 1fr;
        align-items: center;
        gap: 24px;
    }

    :is(.av-web, .av-brand, .av-photo, .av-bundle, .av-portfolio-page, .av-contact-page) #home.hero {
        --hero-title-size: clamp(30px, 5.1vw, 48px);
    }

    #home .hero-title {
        margin: 0;
        line-height: .96;
    }

    #home .hero-title-last {
        display: flex;
        align-items: baseline;
        gap: .12em;
        white-space: nowrap;
    }

    #home .hero-title .highlight {
        display: inline-block;
        flex: 0 0 auto;
        font-size: .44em;
        line-height: 1.2;
        margin-top: 0;
        white-space: nowrap;
    }

    #home .hero-intro-row {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    #home .hero-subtitle {
        max-width: 100%;
        flex: initial;
        font-size: 14px;
    }

    #home .hero-desktop-break {
        display: none;
    }

    #home .hero-cta-group {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    #home .hero-bottom-row {
        padding-bottom: 10px;
    }

    #home .hero-marquee {
        padding-block: 12px;
    }

    #home .hero-orb-top {
        width: 90px;
        height: 90px;
        top: 20%;
        right: 6%;
    }

    #home .hero-orb-bottom {
        width: 130px;
        height: 130px;
        top: auto;
        bottom: 13%;
        right: 7%;
        left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {

    #home .floating-shape,
    #home .hero-marquee.is-ready .hero-marquee-track {
        animation: none;
        will-change: auto;
    }

    #home .hero-marquee {
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

/* ============================================================
   HOMEPAGE / PORTFÓLIO
   Vybrané projekty a fotografie. Spoločný CTA je v base.css.
   ============================================================ */

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    background: var(--dark);
    padding: 6rem 4%;
}

/* ===== HOME PORTFOLIO: SELECTED WORK ===== */
#portfolio.av-portfolio {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--off-white);
    color: var(--black);
    padding: clamp(4.5rem, 8vw, 9rem) 0 !important;
    scroll-margin-top: 90px;
}

#portfolio .av-work-intro-group {
    position: relative;
    justify-self: end;
    max-width: 25rem;
}

#portfolio .av-work-copy,
#portfolio .av-photo-copy {
    position: relative;
}

#portfolio .av-orb-cluster {
    position: absolute;
    width: 96px;
    height: 52px;
    margin: 0;
    pointer-events: none;
    animation: av-portfolio-orb-drift 22s ease-in-out infinite alternate;
}

#portfolio .av-work-intro-group .av-orb-cluster {
    top: -68px;
    right: 8%;
    width: 108px;
}

#portfolio .av-work:nth-child(1) .av-orb-cluster {
    top: -72px;
    left: 12%;
    width: 86px;
    animation-delay: -3s;
}

#portfolio .av-work:nth-child(2) .av-orb-cluster {
    top: -82px;
    right: 12%;
    width: 138px;
    animation-delay: -8s;
}

#portfolio .av-work:nth-child(3) .av-orb-cluster {
    bottom: -78px;
    right: 4%;
    width: 110px;
    animation-delay: -13s;
}

#portfolio .av-photo-copy .av-orb-cluster {
    top: -64px;
    right: 20%;
    width: 72px;
    animation-delay: -5s;
}

#portfolio .av-orb-cluster span {
    position: absolute;
    width: 24%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--primary);
    opacity: .22;
}

#portfolio .av-orb-cluster span:nth-child(1) {
    left: 0;
    top: 16px;
}

#portfolio .av-orb-cluster span:nth-child(2) {
    left: 38%;
    top: 2px;
    width: 12%;
    background: var(--accent);
}

#portfolio .av-orb-cluster span:nth-child(3) {
    right: 0;
    top: 24px;
    width: 18%;
    background: var(--primary-light);
}

#portfolio .av-work:nth-child(1) .av-orb-cluster span:nth-child(1) {
    width: 15%;
    top: 0;
}

#portfolio .av-work:nth-child(1) .av-orb-cluster span:nth-child(2) {
    width: 36%;
    left: 32%;
    top: 14px;
}

#portfolio .av-work:nth-child(1) .av-orb-cluster span:nth-child(3) {
    width: 10%;
    top: 5px;
}

#portfolio .av-work:nth-child(2) .av-orb-cluster span:nth-child(1) {
    width: 32%;
    top: 0;
}

#portfolio .av-work:nth-child(2) .av-orb-cluster span:nth-child(2) {
    left: 48%;
    top: 34px;
}

#portfolio .av-work:nth-child(3) .av-orb-cluster span:nth-child(1) {
    width: 10%;
    top: 20px;
}

#portfolio .av-work:nth-child(3) .av-orb-cluster span:nth-child(3) {
    width: 35%;
    top: 0;
}

@media (max-width: 1023px) {
    #portfolio .av-work-intro-group {
        justify-self: start;
        padding-top: 3.5rem;
    }

    #portfolio .av-work-intro-group .av-orb-cluster {
        top: 0;
        right: 0;
    }

    #portfolio .av-work:nth-child(1) .av-work-copy,
    #portfolio .av-work:nth-child(2) .av-work-copy {
        padding-top: 4rem;
    }

    #portfolio .av-work:nth-child(1) .av-orb-cluster,
    #portfolio .av-work:nth-child(2) .av-orb-cluster {
        top: 0;
    }

    #portfolio .av-work:nth-child(3) .av-work-copy {
        padding-bottom: 0;
    }

    #portfolio .av-work:nth-child(3) .av-orb-cluster {
        display: none;
    }

    #portfolio .av-photo-copy {
        padding-top: 3.5rem;
    }

    #portfolio .av-photo-copy .av-orb-cluster {
        top: 0;
        right: 10%;
    }
}

@keyframes av-portfolio-orb-drift {
    from {
        transform: translateY(-7px);
    }

    to {
        transform: translateY(7px);
    }
}

#portfolio .av-portfolio-shell {
    width: 81.5%;
    max-width: 1560px;
    margin-inline: auto;
}

#portfolio .av-portfolio-heading {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

#portfolio .av-work-label,
#portfolio .av-work-meta,
#portfolio .av-work-discipline {
    font-family: 'Outfit', sans-serif;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .1em;
}

#portfolio .av-work-label {
    color: var(--primary-dark);
    margin: 0 0 1.5rem;
}

#portfolio #av-portfolio-title,
#portfolio .av-photo-copy h3 {
    margin: 0;
    color: var(--black);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.75rem, 4.5vw, 5.25rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.045em;
}

#portfolio .av-work-intro,
#portfolio .av-work-description,
#portfolio .av-work-footer>p {
    color: #5E5E5E;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

#portfolio .av-work-intro {
    justify-self: end;
    max-width: 25rem;
}

#portfolio .av-work-list {
    display: grid;
    gap: clamp(3.75rem, 7.5vw, 7.5rem);
}

#portfolio .av-work {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
    min-width: 0;
}

#portfolio .av-work--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
}

#portfolio .av-work--reverse .av-work-image {
    grid-column: 2;
    grid-row: 1;
}

#portfolio .av-work--reverse .av-work-copy {
    grid-column: 1;
    grid-row: 1;
}

#portfolio .av-work-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: transparent;
    color: var(--white);
}

#portfolio .av-work-image>img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

#portfolio .av-work-image-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

#portfolio .av-work-image-arrow {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: var(--primary);
    color: var(--white);
}

#portfolio .av-work-image-arrow svg {
    transition: transform .35s ease;
}

#portfolio .av-work-meta {
    color: #626262;
    margin: 0 0 1rem;
    font-size: .75rem;
}

#portfolio .av-work-copy h3 {
    margin: 0 0 1.5rem;
    color: var(--black);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.25rem, 4vw, 4.75rem);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -.04em;
}

#portfolio .av-work-description {
    max-width: 28rem;
}

#portfolio .av-work-discipline {
    display: inline-block;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #CFCFCF;
    letter-spacing: .02em;
    color: #505050;
}

#portfolio .av-photo-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5.5rem);
    margin-top: clamp(5rem, 9vw, 9rem);
    padding-top: clamp(4rem, 7vw, 7rem);
    border-top: 1px solid #D0D0D0;
}

#portfolio .av-photo-copy h3 {
    font-size: clamp(2.25rem, 3.7vw, 4.4rem);
    margin-bottom: 1.5rem;
}

#portfolio .av-photo-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    isolation: isolate;
    padding: 2.5rem 1.5rem;
}

#portfolio .av-photo-card {
    position: relative;
    grid-row: 1;
    display: block;
    aspect-ratio: 4 / 5;
    color: var(--white);
    text-decoration: none;
}

/* Stabilné plochy odkazov: animuje sa iba vnútorný obrázok. */
#portfolio .av-photo-surface {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
    background: var(--black);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
    transform: translateY(var(--photo-y)) rotate(var(--photo-angle)) scale(1.12);
    transition: transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s ease;
}

#portfolio .av-photo-card--1 {
    grid-column: 1;
    --photo-angle: -9deg;
    --photo-y: 12px;
    z-index: 1;
}

#portfolio .av-photo-card--2 {
    grid-column: 2;
    --photo-angle: 0deg;
    --photo-y: -12px;
    z-index: 3;
}

#portfolio .av-photo-card--3 {
    grid-column: 3;
    --photo-angle: 9deg;
    --photo-y: 12px;
    z-index: 2;
}

#portfolio .av-photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

#portfolio .av-photo-caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .5rem;
    padding: 2.5rem .8rem .8rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    font-family: 'Outfit', sans-serif;
    font-size: clamp(.65rem, 1vw, .95rem);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}

#portfolio .av-photo-card:focus-visible .av-photo-caption {
    opacity: 1;
    transform: translateY(0);
}

#portfolio .av-work-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: clamp(4rem, 7vw, 7rem);
    padding-top: 2rem;
    border-top: 1px solid #D0D0D0;
}





#portfolio a:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 6px;
}

#portfolio .av-photo-stack:focus-within .av-photo-surface {
    transform: translateY(0) rotate(0deg) scale(.94);
}

#portfolio .av-photo-card:focus-visible .av-photo-surface {
    transform: translateY(-18px) rotate(0deg) scale(1.02);
    box-shadow: 0 24px 45px rgba(0, 0, 0, .22);
}

@media (hover: hover) and (pointer: fine) {
    #portfolio .av-photo-card:hover .av-photo-caption {
        opacity: 1;
        transform: translateY(0);
    }

    #portfolio .av-work-image:hover>img {
        transform: scale(1.055);
    }

    #portfolio .av-work-image:hover .av-work-image-arrow svg {
        transform: rotate(-45deg);
    }



    #portfolio .av-photo-stack:hover .av-photo-surface {
        transform: translateY(0) rotate(0deg) scale(.94);
    }

    #portfolio .av-photo-stack .av-photo-card:hover .av-photo-surface {
        transform: translateY(-18px) rotate(0deg) scale(1.02);
        box-shadow: 0 24px 45px rgba(0, 0, 0, .22);
    }
}

@keyframes av-work-enter {
    from {
        opacity: 0;
        transform: translateY(56px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    #portfolio .av-work-pending {
        opacity: 0;
    }

    #portfolio .av-work-enter {
        animation: av-work-enter 1s cubic-bezier(.22, .61, .36, 1) var(--av-work-delay, 0ms) backwards;
    }

    #portfolio .av-work-pending:focus-within,
    #portfolio .av-work-enter:focus-within {
        opacity: 1;
        animation: none;
    }
}

@media (max-width: 1023px) {
    #portfolio .av-portfolio-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #portfolio .av-work-intro {
        justify-self: start;
        max-width: 35rem;
    }

    #portfolio .av-work,
    #portfolio .av-work--reverse {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 2rem;
    }

    #portfolio .av-photo-feature {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
        padding-top: 2.5rem;
    }

    #portfolio .av-photo-stack {
        width: 100%;
        max-width: 760px;
        margin-inline: auto;
    }
}

@media (max-width: 767px) {
    #portfolio.av-portfolio {
        padding-block: 4rem !important;
    }

    #portfolio .av-portfolio-shell {
        width: calc(100% - 40px);
        max-width: 620px;
    }

    #portfolio .av-work,
    #portfolio .av-work--reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #portfolio .av-work--reverse .av-work-image,
    #portfolio .av-work--reverse .av-work-copy {
        grid-column: auto;
        grid-row: auto;
    }

    #portfolio .av-work-copy h3 {
        margin-bottom: 1rem;
    }

    #portfolio .av-work-discipline {
        margin-top: 1.25rem;
    }

    #portfolio .av-work-meta {
        font-size: .7rem;
    }

    #portfolio .av-work-image-arrow {
        width: 2.5rem;
        height: 2.5rem;
        bottom: 1rem;
        right: 1rem;
    }

    #portfolio .av-photo-stack {
        padding: 1.5rem .5rem;
    }

    #portfolio .av-photo-card--1 {
        --photo-angle: -6deg;
        --photo-y: 6px;
    }

    #portfolio .av-photo-card--2 {
        --photo-y: -6px;
    }

    #portfolio .av-photo-card--3 {
        --photo-angle: 6deg;
        --photo-y: 6px;
    }

    #portfolio .av-photo-caption {
        font-size: .6rem;
        padding: 1.5rem .4rem .5rem;
    }

    #portfolio .av-work-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    #portfolio .av-portfolio-shell {
        width: calc(100% - 64px);
    }
}

@media (max-width: 359px) {
    #portfolio .av-portfolio-shell {
        width: calc(100% - 32px);
    }

    #portfolio #av-portfolio-title {
        font-size: 2.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #portfolio.av-portfolio * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   HOMEPAGE / OBSAH
   Prečo Aion, proces a blog vrátane responzívnych pravidiel.
   ============================================================ */

/* ===== HOME: WHY AION ===== */
#why-aion.av-why {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 9rem) 0 !important;
    background: var(--black);
    color: var(--white);
    scroll-margin-top: 90px;
}

/* Keep incoming #about links from existing subpages working. */
#why-aion .av-why-legacy-anchor {
    position: absolute;
    top: 0;
    left: 0;
    scroll-margin-top: 90px;
}

#why-aion .av-why-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

#why-aion .av-why-atmosphere::before {
    content: '';
    position: absolute;
    inset: -15%;
    background: linear-gradient(125deg, var(--primary) 10%, var(--primary-light) 48%, var(--accent) 90%);
    opacity: .085;
    filter: blur(90px);
}

#why-aion .av-why-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 45%, var(--black) 18%, transparent 85%);
}

#why-aion .av-why-shell {
    width: 81.5%;
    max-width: 1560px;
    margin-inline: auto;
}

#why-aion .av-why-header {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 3rem;
    margin-bottom: clamp(3.5rem, 6vw, 6rem);
}

#why-aion .av-why-label {
    margin: 0 0 1.5rem;
    color: var(--primary-light);
    font-family: 'Outfit', sans-serif;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
}

#why-aion #av-why-title {
    margin: 0;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.75rem, 4.5vw, 5.25rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.045em;
}

#why-aion .av-why-lead,
#why-aion .av-why-principle-copy>p,
#why-aion .av-why-footer>p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

#why-aion .av-why-lead {
    max-width: 28rem;
    justify-self: end;
    padding-bottom: .25rem;
    --why-reveal-delay: .1s;
}

#why-aion .av-why-principles {
    list-style: none;
    margin: 0;
    padding: 0;
}

#why-aion .av-why-principle {
    --why-detail: var(--primary-light);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: clamp(1.5rem, 4vw, 4.5rem);
    align-items: start;
    padding: clamp(2rem, 3.5vw, 3.5rem) 0;
    border-top: 1px solid rgba(255, 255, 255, .19);
}

#why-aion .av-why-principle::before {
    content: '';
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background: var(--why-detail);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--transition-smooth);
}

#why-aion .av-why-principle h3 {
    margin: 0;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.65rem, 2.7vw, 3rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.035em;
}

#why-aion .av-why-principle-copy {
    min-width: 0;
}

#why-aion .av-why-principle-copy>p {
    max-width: 35rem;
}

#why-aion .av-why-principle--free {
    --why-detail: var(--accent);
    align-items: start;
    border-top-color: rgba(255, 255, 255, .19);
    margin-top: clamp(1.5rem, 3vw, 3rem);
    padding-block: clamp(2.5rem, 5vw, 5rem);
}

#why-aion .av-why-offer-heading {
    align-self: start;
}

#why-aion .av-why-principle--free .av-why-principle-copy {
    align-self: start;
    padding-left: clamp(1.5rem, 3vw, 3rem);
    border-left: 1px solid rgba(255, 255, 255, .16);
}

#why-aion .av-why-principle--free h3 {
    font-size: clamp(2.25rem, 3.8vw, 4.25rem);
    line-height: 1.08;
}

#why-aion .av-why-principle--free h3 span {
    color: var(--accent);
}

#why-aion .av-why-principle--free .av-why-cta {
    width: 100%;
    justify-content: space-between;
    margin-top: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--accent);
}

#why-aion .av-why-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .19);
}

#why-aion .av-why-footer>p {
    max-width: 27rem;
    font-size: .875rem;
}

#why-aion .av-why-cta {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.15rem, 1.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

#why-aion .av-why-cta>span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    transition: background .3s ease, color .3s ease;
}

#why-aion .av-why-cta svg {
    transition: transform .3s ease;
}

#why-aion .av-why-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 8px;
}

#why-aion .av-why-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--transition-smooth), transform .8s var(--transition-smooth);
    transition-delay: var(--why-reveal-delay, 0s);
}

#why-aion .av-why-principle:nth-child(2) {
    --why-reveal-delay: .06s;
}

#why-aion .av-why-principle:nth-child(3) {
    --why-reveal-delay: .12s;
}

#why-aion .av-why-principle:nth-child(4) {
    --why-reveal-delay: .18s;
}

#why-aion .av-why-reveal.visible,
#why-aion .av-why-reveal:focus-within {
    opacity: 1;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    #why-aion .av-why-principle:hover::before {
        transform: scaleX(1);
    }

    #why-aion .av-why-cta:hover>span {
        background: var(--accent);
        color: var(--black);
    }

    #why-aion .av-why-cta:hover svg {
        transform: rotate(-45deg);
    }
}

@media (min-width: 1100px) {
    #why-aion .av-why-principles {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: clamp(1.75rem, 3.5vw, 4rem);
    }

    #why-aion .av-why-principle:not(.av-why-principle--free) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(4.5rem, auto) 1fr;
        gap: 1.5rem 1rem;
        padding-block: 2rem 3rem;
    }

    #why-aion .av-why-principle:not(.av-why-principle--free) h3 {
        font-size: clamp(1.5rem, 1.8vw, 2rem);
        line-height: 1.2;
    }

    #why-aion .av-why-principle:not(.av-why-principle--free) .av-why-principle-copy {
        grid-column: 1 / -1;
    }

    #why-aion .av-why-principle--free {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1023px) {
    #why-aion .av-why-header {
        column-gap: 2rem;
    }

    #why-aion .av-why-principle {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        column-gap: 1.5rem;
    }

    #why-aion .av-why-principle:not(.av-why-principle--free) h3 {
        font-size: 1.75rem;
    }

    #why-aion .av-why-principle-copy>p {
        font-size: .95rem;
    }
}

@media (max-width: 767px) {
    #why-aion.av-why {
        padding-block: 4.5rem !important;
    }

    #why-aion .av-why-shell {
        width: calc(100% - 40px);
        max-width: 620px;
    }

    #why-aion .av-why-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #why-aion .av-why-label {
        margin-bottom: 1.75rem;
    }

    #why-aion .av-why-lead {
        justify-self: start;
        padding-bottom: 0;
        font-size: .95rem;
    }

    #why-aion .av-why-principle {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding-block: 2rem;
    }

    #why-aion .av-why-principle:not(.av-why-principle--free) h3 {
        font-size: 1.75rem;
    }

    #why-aion .av-why-principle-copy {
        grid-column: 1;
    }

    #why-aion .av-why-principle--free {
        gap: 1.75rem;
    }

    #why-aion .av-why-principle--free .av-why-principle-copy {
        padding-left: 0;
        border-left: 0;
    }

    #why-aion .av-why-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    #why-aion .av-why-shell {
        width: calc(100% - 64px);
    }
}

@media (max-width: 359px) {
    #why-aion .av-why-shell {
        width: calc(100% - 32px);
    }

    #why-aion #av-why-title {
        font-size: 2.35rem;
    }

    #why-aion .av-why-principle {
        grid-template-columns: minmax(0, 1fr);
        gap: .75rem;
    }

    #why-aion .av-why-principle:not(.av-why-principle--free) h3 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #why-aion .av-why-reveal {
        opacity: 1;
        transform: none;
    }

    #why-aion.av-why *,
    #why-aion .av-why-principle::before {
        transition: none !important;
    }
}

@media (scripting: none) {
    #why-aion .av-why-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== HOME: PROCESS ===== */
#process.av-process {
    background: var(--black);
    color: var(--white);
    padding: clamp(4.5rem, 8vw, 9rem) 0 !important;
    scroll-margin-top: 90px;
}

#process .av-process-shell {
    width: 81.5%;
    max-width: 1560px;
    margin-inline: auto;
}

#process .av-process-header {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: 3rem;
    margin-bottom: clamp(3.5rem, 6vw, 6rem);
}

#process .av-process-label {
    margin: 0 0 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--primary-light);
}

#process #av-process-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.75rem, 4.5vw, 5.25rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.045em;
}

#process .av-process-lead {
    max-width: 28rem;
    justify-self: end;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .7);
}

#process .av-process-orbit {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 760px;
    margin-inline: auto;
}

#process .av-process-arrows {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    color: var(--primary-light);
    opacity: .6;
    pointer-events: none;
}

#process .av-process-arrows>path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

#process .av-process-center {
    position: absolute;
    top: 326px;
    left: 50%;
    width: 300px;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: .8rem;
    font-weight: 500;
    line-height: 2;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .5);
}

#process .av-process-center span {
    color: var(--primary-light);
}

#process .av-process-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#process .av-process-step {
    position: absolute;
    width: 34%;
    text-align: center;
    --process-detail: var(--primary-light);
}

#process .av-process-step:nth-child(1) {
    top: 0;
    left: 8%;
}

#process .av-process-step:nth-child(2) {
    top: 0;
    right: 8%;
}

#process .av-process-step:nth-child(3) {
    top: 430px;
    right: 8%;
}

#process .av-process-step:nth-child(4) {
    top: 430px;
    left: 8%;
    --process-detail: var(--accent);
}

#process .av-process-circle {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 2rem;
    border: 1px solid var(--process-detail);
    border-radius: 50%;
    color: var(--white);
    background: var(--black);
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    transition: color .3s ease, border-color .3s ease;
}

#process .av-process-copy h3 {
    margin: 0 0 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.55rem, 2.3vw, 2.4rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.03em;
    color: var(--white);
}

#process .av-process-copy>p {
    max-width: 32ch;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .68);
}

#process .av-process-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

#process .av-process-footer>p {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    font-size: .95rem;
}

#process .av-process-link {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding-block: .5rem;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .25s ease;
}

#process .av-process-link>span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    transition: background .3s ease, color .3s ease;
}

#process .av-process-link svg {
    transition: transform .3s ease;
}

#process .av-process-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
}

#process .av-process-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s var(--transition-smooth), transform .75s var(--transition-smooth);
}

#process .av-process-reveal.visible,
#process .av-process-reveal:focus-within {
    opacity: 1;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    #process .av-process-step:hover .av-process-circle {
        color: var(--process-detail);
    }

    #process .av-process-link:hover {
        color: var(--accent);
    }

    #process .av-process-link:hover>span {
        background: var(--accent);
        color: var(--black);
    }

    #process .av-process-link:hover svg {
        transform: rotate(-45deg);
    }
}

@media (max-width: 1023px) {
    #process .av-process-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #process .av-process-lead {
        justify-self: start;
        max-width: 36rem;
    }
}

@media (max-width: 899px) {
    #process .av-process-orbit {
        height: auto;
        max-width: 620px;
        margin-block: 1rem 3rem;
    }

    #process .av-process-center,
    #process .av-process-arrows {
        display: none;
    }

    #process .av-process-arrows.is-measured {
        display: block;
    }

    #process .av-process-list {
        display: grid;
        gap: 3.5rem;
    }

    #process .av-process-step {
        position: relative;
        inset: auto !important;
        width: 100%;
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: start;
        gap: 1.75rem;
        text-align: left;
    }

    #process .av-process-circle {
        width: 64px;
        height: 64px;
        margin: .4rem 0 0;
        font-size: 1.5rem;
    }

    #process .av-process-copy h3 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    #process .av-process-copy>p {
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 767px) {
    #process.av-process {
        padding-block: 4.5rem !important;
    }

    #process .av-process-shell {
        width: calc(100% - 40px);
        max-width: 620px;
    }

    #process .av-process-lead,
    #process .av-process-copy>p {
        font-size: .9rem;
    }

    #process .av-process-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    #process .av-process-shell {
        width: calc(100% - 64px);
    }
}

@media (max-width: 359px) {
    #process .av-process-shell {
        width: calc(100% - 32px);
    }

    #process #av-process-title {
        font-size: 2.35rem;
    }

    #process .av-process-step {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 1.25rem;
    }

    #process .av-process-circle {
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #process .av-process-reveal {
        opacity: 1;
        transform: none;
    }

    #process.av-process * {
        transition: none !important;
    }
}

@media (scripting: none) {
    #process .av-process-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== HOME: BLOG FEATURED GRID ===== */
#blog:is(.av-blog, .blog-section) {
    background: var(--off-white);
    color: var(--black);
    padding: clamp(4.5rem, 8vw, 9rem) 0 !important;
    scroll-margin-top: 90px;
}

#blog .av-blog-shell {
    width: 81.5%;
    max-width: 1560px;
    margin-inline: auto;
}

#blog :is(.av-blog-header, .blog-header) {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: 3rem;
    max-width: none;
    margin: 0 0 clamp(3rem, 5vw, 5rem);
    text-align: left;
}

#blog :is(.av-blog-label, .section-label) {
    margin: 0 0 1.5rem;
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
}

#blog :is(#av-blog-title, .section-title) {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.75rem, 4.5vw, 5.25rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.045em;
    color: var(--black);
}

#blog :is(.av-blog-intro, .section-desc) {
    justify-self: end;
    max-width: 26rem;
    margin: 0;
    color: #5E5E5E;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

#blog :is(.av-blog-grid, .blog-grid) {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.5rem clamp(2rem, 4vw, 4.5rem);
    max-width: none;
    margin: 0;
    align-items: stretch;
}

#blog :is(.av-blog-card, .blog-card) {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 2vw, 2rem);
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.75rem);
    border: 1px solid rgba(10, 10, 10, .16);
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
    cursor: pointer;
}

#blog :is(.av-blog-image, .blog-image) {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background-color: rgba(10, 10, 10, .06);
    background-size: cover;
    background-position: center;
}

#blog .av-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--transition-smooth);
}

#blog :is(.av-blog-copy, .blog-content) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 0;
}

#blog :is(.av-blog-category, .blog-category) {
    display: block;
    margin: 0 0 1rem;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#blog :is(.av-blog-copy, .blog-content) h3 {
    max-width: 28ch;
    margin: 0 0 1rem;
    color: var(--black);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.035em;
    transition: color .25s ease;
}

#blog .av-blog-trigger {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
}

#blog .av-blog-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

#blog .av-blog-trigger:focus-visible {
    outline: 0;
}

#blog .av-blog-trigger:focus-visible::after {
    outline: 2px solid var(--primary-dark);
    outline-offset: 6px;
}

#blog :is(.av-blog-excerpt, .blog-content > p) {
    max-width: 55ch;
    margin: 0;
    color: #5E5E5E;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    line-height: 1.75;
}

#blog :is(.av-blog-read, .read-more) {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--black);
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
}

#blog .av-blog-read svg {
    color: var(--primary-dark);
    transition: transform .3s ease;
}

#blog :is(.av-blog-reveal, .animate-on-scroll) {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--transition-smooth), transform .8s var(--transition-smooth), border-color .3s ease, box-shadow .3s ease;
}

#blog :is(.av-blog-reveal, .animate-on-scroll).visible,
#blog :is(.av-blog-reveal, .animate-on-scroll):focus-within {
    opacity: 1;
    transform: none;
}

#blog :is(.av-blog-card, .blog-card):first-child {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
}

#blog :is(.av-blog-card, .blog-card):not(:first-child) {
    grid-column: 2;
}

#blog :is(.av-blog-card, .blog-card):first-child :is(.av-blog-image, .blog-image) {
    aspect-ratio: 16 / 10;
}

#blog :is(.av-blog-card, .blog-card):first-child h3 {
    font-size: clamp(2rem, 2.9vw, 3.35rem);
    max-width: 24ch;
}

#blog .av-blog-card:focus-within {
    border-color: var(--primary);
}

@media (hover: hover) and (pointer: fine) {
    #blog .av-blog-card:hover {
        border-color: var(--primary);
        box-shadow: 0 10px 28px rgba(10, 10, 10, .06);
    }

    #blog :is(.av-blog-card, .blog-card):hover h3 {
        color: var(--primary-dark);
    }

    #blog .av-blog-card:hover .av-blog-image img {
        transform: scale(1.035);
    }

    #blog .av-blog-card:hover .av-blog-read svg {
        transform: translate(3px, -3px);
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    #blog :is(.av-blog-grid, .blog-grid) {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 2rem;
    }

    #blog :is(.av-blog-card, .blog-card):not(:first-child) {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #blog :is(.av-blog-card, .blog-card):not(:first-child) :is(.av-blog-image, .blog-image) {
        aspect-ratio: 16 / 7;
    }

    #blog :is(.av-blog-card, .blog-card):not(:first-child) :is(.av-blog-copy, .blog-content) {
        grid-column: 1;
        grid-row: auto;
    }

    #blog :is(.av-blog-card, .blog-card):not(:first-child) :is(.av-blog-excerpt, .blog-content > p) {
        display: none;
    }
}

@media (max-width: 899px) {
    #blog :is(.av-blog-header, .blog-header) {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #blog :is(.av-blog-intro, .section-desc) {
        justify-self: start;
    }
}

@media (max-width: 767px) {
    #blog:is(.av-blog, .blog-section) {
        padding-block: 4.5rem !important;
    }

    #blog .av-blog-shell {
        width: calc(100% - 40px);
        max-width: 620px;
    }

    #blog :is(.av-blog-grid, .blog-grid) {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    #blog :is(.av-blog-card, .blog-card):first-child {
        grid-column: 1;
        grid-row: auto;
        gap: 1.5rem;
    }

    #blog :is(.av-blog-card, .blog-card):not(:first-child) {
        grid-column: 1;
        grid-template-columns: clamp(90px, 24vw, 160px) minmax(0, 1fr);
        align-items: start;
        gap: 1.25rem;
    }

    #blog :is(.av-blog-image, .blog-image) {
        aspect-ratio: 4 / 5;
    }

    #blog :is(.av-blog-card, .blog-card):first-child .av-blog-excerpt {
        display: block;
    }

    #blog :is(.av-blog-copy, .blog-content) h3 {
        font-size: clamp(1.35rem, 4.5vw, 1.9rem);
    }

    #blog :is(.av-blog-excerpt, .blog-content > p) {
        display: none;
    }

    #blog :is(.av-blog-intro, .section-desc) {
        font-size: .95rem;
    }

    #blog :is(.av-blog-category, .blog-category) {
        font-size: .65rem;
        margin-bottom: .75rem;
    }

    #blog :is(.av-blog-read, .read-more) {
        margin-top: .75rem;
        font-size: .8rem;
        gap: .6rem;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    #blog .av-blog-shell {
        width: calc(100% - 64px);
    }
}

@media (max-width: 359px) {
    #blog .av-blog-shell {
        width: calc(100% - 32px);
    }

    #blog :is(#av-blog-title, .section-title) {
        font-size: 2.35rem;
    }

    #blog :is(.av-blog-card, .blog-card):not(:first-child) {
        gap: 1rem;
        grid-template-columns: 80px minmax(0, 1fr);
    }

    #blog :is(.av-blog-copy, .blog-content) h3 {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #blog :is(.av-blog-reveal, .animate-on-scroll) {
        opacity: 1;
        transform: none;
    }

    #blog * {
        transition: none !important;
    }
}

@media (scripting: none) {
    #blog :is(.av-blog-reveal, .animate-on-scroll) {
        opacity: 1;
        transform: none;
    }
}

#blog .av-blog-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 3rem;
}

#blog .av-work-all:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 6px;
}
