/* Homepage biography: an editorial question-and-answer section. */
body.light-theme #about.about-qa-section {
    position: relative;
    overflow: clip;
    padding: clamp(82px, 8vw, 148px) 0 !important;
    border-top: 0;
    border-bottom: 1px solid var(--theme-line);
    background:
        radial-gradient(circle at 8% 9%, rgba(40, 92, 196, .10), transparent 27rem),
        linear-gradient(135deg, #f4f6f9 0%, #eef3f9 54%, #f8f9fb 100%) !important;
}

body.light-theme #about.about-qa-section::before {
    content: "Q/A";
    position: absolute;
    right: clamp(-1.6rem, 2vw, 2rem);
    top: clamp(-2rem, -1vw, -.5rem);
    color: rgba(40, 92, 196, .045);
    font-size: clamp(9rem, 20vw, 23rem);
    font-weight: 700;
    letter-spacing: -.1em;
    line-height: .8;
    pointer-events: none;
    user-select: none;
}

body.light-theme #about .about-qa-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
    gap: clamp(60px, 8vw, 150px);
    align-items: start;
}

body.light-theme #about .about-qa-intro {
    position: sticky;
    top: 132px;
}

body.light-theme #about .about-qa-intro .section-kicker {
    margin: 0 0 26px;
    color: var(--theme-accent) !important;
}

body.light-theme #about .about-qa-intro h2 {
    max-width: 10ch;
    margin: 0;
    color: var(--theme-ink);
    font-size: clamp(3.15rem, 5vw, 6.2rem) !important;
    font-weight: 500 !important;
    letter-spacing: -.052em !important;
    line-height: .98 !important;
}

body.light-theme #about .about-qa-intro h2 span {
    display: block;
    margin-top: .08em;
    color: #8190a3;
}

body.light-theme #about .about-qa-lead {
    max-width: 35rem;
    margin: clamp(26px, 3vw, 46px) 0 0;
    color: var(--theme-muted);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.65;
}

body.light-theme #about .about-qa-list {
    border-top: 1px solid var(--theme-line-strong);
}

body.light-theme #about .about-qa-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(155px, .62fr) minmax(280px, 1.38fr);
    gap: clamp(18px, 2vw, 38px);
    align-items: start;
    padding: clamp(28px, 3vw, 42px) 0;
    border-bottom: 1px solid var(--theme-line);
    isolation: isolate;
}

body.light-theme #about .about-qa-item::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 8px -18px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(40, 92, 196, .075), rgba(40, 92, 196, 0));
    opacity: 0;
    transform: scaleX(.96);
    transform-origin: left center;
    transition: opacity 220ms ease, transform 340ms cubic-bezier(.2, .72, .2, 1);
}

body.light-theme #about .about-qa-number {
    padding-top: .15rem;
    color: var(--theme-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
}

body.light-theme #about .about-qa-item h3 {
    margin: 0;
    color: var(--theme-ink);
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.28;
}

body.light-theme #about .about-qa-item p {
    margin: 0;
    color: var(--theme-muted);
    font-size: clamp(.98rem, 1.08vw, 1.12rem);
    line-height: 1.68;
    transition: color 220ms ease, transform 340ms cubic-bezier(.2, .72, .2, 1);
}

body.light-theme #about .about-qa-more {
    margin: 0;
    padding: 0;
}

body.light-theme #about .about-qa-more > summary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    gap: 8px;
    min-height: 44px;
    margin-top: 20px;
    padding: 10px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--theme-ink);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .015em;
    list-style: none;
    cursor: pointer;
    transition: color 180ms ease, opacity 180ms ease;
}

body.light-theme #about .about-qa-more > summary::-webkit-details-marker {
    display: none;
}

body.light-theme #about .about-qa-more > summary::marker {
    content: "";
}

body.light-theme #about .about-qa-more > summary:hover,
body.light-theme #about .about-qa-more > summary:focus-visible {
    color: var(--theme-accent);
    background: transparent;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

body.light-theme #about .about-qa-more-open {
    display: none;
}

body.light-theme #about .about-qa-more[open] .about-qa-more-closed {
    display: none;
}

body.light-theme #about .about-qa-more[open] .about-qa-more-open {
    display: inline;
}

body.light-theme #about .about-qa-more-icon {
    flex: 0 0 auto;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1;
    opacity: .8;
    transition: transform 220ms ease, opacity 180ms ease;
}

body.light-theme #about .about-qa-more > summary:hover .about-qa-more-icon,
body.light-theme #about .about-qa-more > summary:focus-visible .about-qa-more-icon {
    opacity: 1;
    transform: translateY(2px);
}

body.light-theme #about .about-qa-more[open] .about-qa-more-icon {
    transform: rotate(180deg);
}

body.light-theme #about .about-qa-extra {
    margin: 0;
    padding: 0;
}

@media (hover: hover) {
    body.light-theme #about .about-qa-item:hover::before {
        opacity: 1;
        transform: scaleX(1);
    }

    body.light-theme #about .about-qa-item:hover p {
        color: var(--theme-ink);
        transform: translateX(6px);
    }
}

html[data-theme="dark"] body.light-theme #about.about-qa-section {
    border-color: var(--theme-line);
    background:
        radial-gradient(circle at 8% 9%, rgba(145, 181, 250, .12), transparent 27rem),
        linear-gradient(135deg, #151a22 0%, #172130 54%, #121720 100%) !important;
}

html[data-theme="dark"] body.light-theme #about.about-qa-section::before {
    color: rgba(145, 181, 250, .045);
}

html[data-theme="dark"] body.light-theme #about .about-qa-intro h2 span {
    color: var(--theme-quiet);
}

html[data-theme="dark"] body.light-theme #about .about-qa-item::before {
    background: linear-gradient(90deg, rgba(145, 181, 250, .09), rgba(145, 181, 250, 0));
}

@media (max-width: 1050px) {
    body.light-theme #about .about-qa-shell {
        grid-template-columns: 1fr;
        gap: 62px;
    }

    body.light-theme #about .about-qa-intro {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr);
        column-gap: 44px;
        align-items: end;
    }

    body.light-theme #about .about-qa-intro .section-kicker {
        grid-column: 1 / -1;
    }

    body.light-theme #about .about-qa-intro h2 {
        max-width: 10ch;
    }

    body.light-theme #about .about-qa-lead {
        margin: 0 0 .35rem;
    }
}

@media (max-width: 720px) {
    body.light-theme #about.about-qa-section {
        padding: 72px 0 82px !important;
    }

    body.light-theme #about.about-qa-section::before {
        top: 1rem;
        right: -1rem;
        font-size: 10rem;
    }

    body.light-theme #about .about-qa-shell {
        gap: 48px;
    }

    body.light-theme #about .about-qa-intro {
        display: block;
    }

    body.light-theme #about .about-qa-intro .section-kicker {
        margin-bottom: 20px;
    }

    body.light-theme #about .about-qa-intro h2 {
        max-width: 9ch;
        font-size: clamp(3rem, 14vw, 4.9rem) !important;
    }

    body.light-theme #about .about-qa-lead {
        margin-top: 26px;
    }

    body.light-theme #about .about-qa-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px 14px;
        padding: 26px 0 29px;
    }

    body.light-theme #about .about-qa-item p {
        grid-column: 2;
    }

    body.light-theme #about .about-qa-item::before {
        inset-inline: -10px;
    }

    body.light-theme #about .about-qa-more > summary {
        min-height: 44px;
        margin-top: 14px;
        padding: 10px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.light-theme #about .about-qa-item::before,
    body.light-theme #about .about-qa-item p,
    body.light-theme #about .about-qa-more > summary,
    body.light-theme #about .about-qa-more-icon {
        transition: none;
    }
}

/* Compact text control for the complete client list. */
body.light-theme #contact .clients--secondary .client-list-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    margin: 8px auto 0 !important;
    padding: 0 7px !important;
    gap: 8px;
    border: 0 !important;
    background: transparent !important;
    color: var(--theme-muted) !important;
    font: 700 .72rem/1.2 var(--editorial-font, "Manrope", sans-serif);
    letter-spacing: .01em;
    box-shadow: none !important;
}

body.light-theme #contact .clients--secondary .client-list-toggle::before {
    content: "Zobacz całą listę";
}

html[lang^="en"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "See the full list"; }
html[lang^="de"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "Vollständige Liste anzeigen"; }
html[lang^="cs"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "Zobrazit celý seznam"; }
html[lang^="fr"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "Voir toute la liste"; }
html[lang^="uk"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "Переглянути весь список"; }

body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Zwiń listę"; }
html[lang^="en"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Hide list"; }
html[lang^="de"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Liste ausblenden"; }
html[lang^="cs"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Skrýt seznam"; }
html[lang^="fr"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Masquer la liste"; }
html[lang^="uk"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Згорнути список"; }

body.light-theme #contact .clients--secondary .client-list-toggle svg {
    width: .95rem;
    height: .95rem;
}

body.light-theme #contact .clients--secondary .client-list-toggle:hover,
body.light-theme #contact .clients--secondary .client-list-toggle:focus-visible {
    color: var(--theme-accent) !important;
}

body.light-theme #contact {
    padding-bottom: clamp(12px, 1.4vw, 22px) !important;
}

html[data-theme] body.light-theme #contact.contact {
    padding-bottom: clamp(14px, 1.5vw, 20px) !important;
}

body.light-theme #contact .clients--secondary {
    margin-top: clamp(36px, 4vw, 58px) !important;
    padding-top: clamp(24px, 2.8vw, 36px) !important;
}

body.light-theme #contact .clients--secondary .client-collaborations-header {
    margin-bottom: 10px !important;
}

/* Portfolio heading: the section name leads, while the descriptor stays quiet. */
html[data-theme] body.light-theme .portfolio-intro .clients--featured {
    padding-bottom: 0 !important;
}

body.light-theme #showreel {
    --portfolio-heading-gap: clamp(36px, 4vw, 56px);
    padding-top: var(--portfolio-heading-gap) !important;
}

body.light-theme #showreel > .section-inner > .section-header {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-bottom: var(--portfolio-heading-gap) !important;
}

body.light-theme #showreel > .section-inner > .section-header > div {
    width: 100% !important;
    text-align: center;
}

body.light-theme #showreel .portfolio-display-title {
    margin: 0;
    color: var(--theme-ink);
    font-size: clamp(2.8rem, 4.1vw, 4.25rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .94;
}

body.light-theme #showreel #showreel-title {
    width: 100% !important;
    max-width: none !important;
    margin: clamp(12px, 1.6vw, 20px) auto 0 !important;
    color: var(--theme-muted);
    font-size: clamp(1rem, 1.35vw, 1.35rem) !important;
    font-weight: 500 !important;
    letter-spacing: .01em !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

body.light-theme #showreel #client-reels > .category-top {
    display: none !important;
}

@media (max-width: 720px) {
    body.light-theme #showreel .portfolio-display-title {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }

    body.light-theme #showreel #showreel-title {
        margin-top: 10px;
    }
}

/* Contact finale: one decisive CTA panel with a compact three-point brief. */
body.light-theme #contact {
    padding: clamp(76px, 7vw, 120px) 0 clamp(18px, 2vw, 30px) !important;
    border-top: 1px solid var(--theme-line) !important;
    background: var(--theme-bg) !important;
}

body.light-theme #contact .contact-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    gap: clamp(52px, 7vw, 118px);
    overflow: hidden;
    padding: clamp(44px, 5vw, 78px);
    border-color: transparent !important;
    background: #19222d !important;
    color: #f7f9fc;
}

body.light-theme #contact .contact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #285cc4 0%, #6fa3ff 56%, #93d8e8 100%);
}

body.light-theme #contact .contact-card-copy {
    align-self: end;
}

body.light-theme #contact .contact-card .section-kicker {
    margin: 0 0 24px;
    color: #91b5fa !important;
}

body.light-theme #contact .contact-card h2 {
    max-width: 10ch;
    margin: 0;
    color: #f7f9fc !important;
    font-size: clamp(3.35rem, 5.6vw, 6.75rem) !important;
    font-weight: 500 !important;
    letter-spacing: -.065em !important;
    line-height: .92 !important;
}

body.light-theme #contact .contact-card h2 span {
    color: #9daaba;
}

body.light-theme #contact .contact-card-copy > p:last-child {
    max-width: 45rem;
    margin: clamp(28px, 3vw, 44px) 0 0;
    color: #bdc7d3;
    font-size: clamp(.98rem, 1.15vw, 1.12rem);
    line-height: 1.72;
}

body.light-theme #contact .contact-card-actions {
    align-self: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, .24);
}

body.light-theme #contact .contact-card-actions-label {
    margin: 0;
    padding: 18px 0 16px;
    color: #91a0b2;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

body.light-theme #contact .contact-action {
    display: grid;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 92px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #f7f9fc !important;
    text-decoration: none;
    transition: padding 260ms cubic-bezier(.2, .72, .2, 1), background 180ms ease;
}

body.light-theme #contact .contact-action:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

body.light-theme #contact .contact-card-actions > .contact-action:nth-of-type(2) {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

body.light-theme #contact .contact-action span {
    color: #91a0b2;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.light-theme #contact .contact-action strong {
    min-width: 0;
    color: #f7f9fc;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    font-weight: 550;
    letter-spacing: -.035em;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.light-theme #contact .contact-vcard {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 40px;
    gap: 16px;
    align-items: center;
    min-height: 82px;
    margin-top: 20px;
    padding: 14px 14px 14px 15px;
    overflow: hidden;
    border: 1px solid rgba(143, 180, 251, .34);
    background: linear-gradient(120deg, rgba(255, 255, 255, .085), rgba(40, 92, 196, .17));
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    color: #f7f9fc !important;
    text-decoration: none;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    animation: none;
}

body.light-theme #contact .contact-vcard::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #8fb4fb, #285cc4);
}

body.light-theme #contact .contact-vcard-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    background: #111820;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

body.light-theme #contact .contact-vcard-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.light-theme #contact .contact-vcard-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.light-theme #contact .contact-vcard-copy strong {
    color: #f7f9fc;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.25;
}

body.light-theme #contact .contact-vcard-copy small {
    color: #a9b7ca;
    font-size: .73rem;
    line-height: 1.35;
}

body.light-theme #contact .contact-vcard-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(143, 180, 251, .4);
    border-radius: 50%;
    background: rgba(40, 92, 196, .12);
    color: #9dc1ff;
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 220ms cubic-bezier(.2, .72, .2, 1), border-color 180ms ease, background-color 180ms ease;
}

body.light-theme #contact .contact-vcard:focus-visible {
    animation: none;
    transform: none;
    outline: 2px solid #79a8ff;
    outline-offset: 3px;
}

@media (hover: hover) {
    body.light-theme #contact .contact-action:hover {
        padding-inline: 14px;
        background: rgba(255, 255, 255, .055);
    }

    body.light-theme #contact .contact-vcard:hover {
        animation: none;
        transform: none;
        border-color: rgba(143, 180, 251, .72);
        background: linear-gradient(120deg, rgba(255, 255, 255, .12), rgba(40, 92, 196, .24));
        box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 0 0 3px rgba(40, 92, 196, .08);
    }

    body.light-theme #contact .contact-vcard:hover .contact-vcard-arrow {
        transform: none;
        border-color: #8fb4fb;
        background: rgba(40, 92, 196, .24);
    }
}

body.light-theme #contact .contact-brief {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(0, 2.2fr);
    border: 1px solid var(--theme-line);
    border-top: 0;
    background: var(--theme-surface);
}

body.light-theme #contact .contact-brief-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 178px;
    padding: clamp(26px, 3vw, 42px);
    background: var(--theme-accent-soft);
}

body.light-theme #contact .contact-brief-intro span {
    color: var(--theme-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

body.light-theme #contact .contact-brief-intro strong {
    max-width: 10ch;
    color: var(--theme-ink);
    font-size: clamp(1.55rem, 2.2vw, 2.35rem);
    font-weight: 550;
    letter-spacing: -.045em;
    line-height: 1.08;
}

body.light-theme #contact .contact-brief-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

body.light-theme #contact .contact-brief-list li {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(26px, 3vw, 42px);
    border-left: 1px solid var(--theme-line);
}

body.light-theme #contact .contact-brief-list li > span {
    margin-bottom: auto;
    padding-bottom: 30px;
    color: var(--theme-accent);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .12em;
}

body.light-theme #contact .contact-brief-list strong {
    margin: 0 0 12px;
    color: var(--theme-ink);
    font-size: clamp(1.05rem, 1.25vw, 1.28rem);
    font-weight: 600;
    letter-spacing: -.025em;
}

body.light-theme #contact .contact-brief-list p {
    margin: 0;
    color: var(--theme-muted);
    font-size: .9rem;
    line-height: 1.62;
}

html[data-theme="dark"] body.light-theme #contact .contact-card {
    background: #172130 !important;
}

html[data-theme="dark"] body.light-theme #contact .contact-brief {
    background: var(--theme-surface);
}

html[data-theme="dark"] body.light-theme #contact .contact-brief-intro {
    background: var(--theme-accent-soft);
}

body.light-theme #contact .clients--secondary {
    margin-top: clamp(46px, 5vw, 72px) !important;
}

@media (max-width: 1050px) {
    body.light-theme #contact .contact-card {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    body.light-theme #contact .contact-card h2 {
        max-width: 12ch;
    }

    body.light-theme #contact .contact-card-actions {
        max-width: 720px;
    }
}

@media (max-width: 780px) {
    body.light-theme #contact {
        padding-top: 58px !important;
    }

    body.light-theme #contact .contact-card {
        gap: 42px;
        padding: 34px 24px 38px;
    }

    body.light-theme #contact .contact-card h2 {
        font-size: clamp(2.8rem, 12.5vw, 4.8rem) !important;
    }

    body.light-theme #contact .contact-action {
        grid-template-columns: 1fr;
        gap: 7px;
        min-height: 0;
        padding: 19px 0 21px;
    }

    body.light-theme #contact .contact-vcard {
        grid-template-columns: 44px minmax(0, 1fr) 38px;
        gap: 12px;
        min-height: 74px;
        margin-top: 16px;
        padding: 12px;
    }

    body.light-theme #contact .contact-vcard-mark {
        width: 44px;
        height: 44px;
    }

    body.light-theme #contact .contact-vcard-arrow {
        width: 38px;
        height: 38px;
    }

    body.light-theme #contact .contact-brief {
        grid-template-columns: 1fr;
    }

    body.light-theme #contact .contact-brief-intro {
        min-height: 0;
    }

    body.light-theme #contact .contact-brief-intro strong {
        max-width: none;
    }

    body.light-theme #contact .contact-brief-list {
        grid-template-columns: 1fr;
    }

    body.light-theme #contact .contact-brief-list li {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 7px 14px;
        padding: 24px;
        border-left: 0;
        border-top: 1px solid var(--theme-line);
    }

    body.light-theme #contact .contact-brief-list li > span {
        grid-row: 1 / 3;
        margin: 0;
        padding: 2px 0 0;
    }

    body.light-theme #contact .contact-brief-list strong,
    body.light-theme #contact .contact-brief-list p {
        grid-column: 2;
    }

    body.light-theme #contact .contact-brief-list strong {
        margin-bottom: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.light-theme #contact .contact-action,
    body.light-theme #contact .contact-vcard {
        animation: none;
        transition: none;
    }
}
