/* =========================================================
   Professional page — load after assets/css/main.css
   ========================================================= */

.professional-page {
    overflow: hidden;
}

/* Anchor destinations */

#current-roles,
#c-biotech,
#earth-plus,
#fytolutions,
#c-hempflax,
#project-work {
    scroll-margin-top: 7rem;
}

/* Shared headings */

.professional-page h2 {
    max-width: 14ch;
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.5vw, 6.4rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.91;
    text-transform: uppercase;
}

.professional-page h2 span,
.professional-hero h1 span {
    display: block;
    color: var(--color-muted);
}

/* =========================================================
   Hero
   ========================================================= */

.professional-hero {
    position: relative;
    display: flex;
    min-height: min(880px, 94svh);
    align-items: center;
    overflow: hidden;
    background: #070708;
}

.professional-hero__art,
.professional-hero__overlay {
    position: absolute;
    inset: 0;
}

.professional-hero__art {
    background-image:
        url("/assets/images/backgrounds/zoorka-professional-background.webp");
    background-position: 68% center;
    background-repeat: no-repeat;
    background-size: cover;
}

.professional-hero__overlay {
    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 8, 0.99) 0%,
            rgba(7, 7, 8, 0.93) 36%,
            rgba(7, 7, 8, 0.48) 66%,
            rgba(7, 7, 8, 0.1) 100%
        ),
        linear-gradient(
            0deg,
            #070708 0%,
            rgba(7, 7, 8, 0.2) 32%,
            transparent 62%
        );
}

.professional-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(100%, 90rem);
    min-height: min(880px, 94svh);
    align-items: center;
    margin-inline: auto;
    padding-top: 8rem;
    padding-right: clamp(2rem, 6vw, 6rem);
    padding-bottom: 5rem;
    padding-left: clamp(2rem, 6vw, 6rem);
    box-sizing: border-box;
}

.professional-hero__copy {
    width: min(100%, 56rem);
}

.professional-hero h1 {
    max-width: 11ch;
    margin-bottom: 1.75rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.86;
    text-transform: uppercase;
}

.professional-hero h1 span {
    color: var(--color-orange);
}

.professional-hero__introduction {
    max-width: 43rem;
    margin-bottom: 2rem;
    color: #d1cdc6;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.professional-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* =========================================================
   Professional profile
   ========================================================= */

.professional-profile {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.professional-profile__grid,
.system-optimisation__grid {
    display: grid;
    grid-template-columns:
        minmax(18rem, 0.9fr)
        minmax(0, 1fr);
    gap: clamp(3rem, 9vw, 9rem);
}

.professional-profile__copy,
.system-optimisation__content {
    align-self: end;
    color: var(--color-muted);
}

.professional-profile__lead,
.system-optimisation__lead {
    color: var(--color-text);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

/* =========================================================
   Current roles and company cards
   ========================================================= */

.current-roles {
    background:
        linear-gradient(
            135deg,
            rgba(232, 111, 37, 0.055),
            transparent 30rem
        ),
        #09090a;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.role-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 36rem;
    flex-direction: column;
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid var(--color-border);
    background: rgba(16, 16, 17, 0.82);
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.role-card:hover {
    border-color: rgba(232, 111, 37, 0.48);
    background: #121213;
    transform: translateY(-0.2rem);
}

.role-card:target {
    border-color: var(--color-orange);
    box-shadow:
        0 0 0 1px rgba(232, 111, 37, 0.2),
        0 1.5rem 4rem rgba(0, 0, 0, 0.22);
}

.role-card--accent {
    border-color: var(--color-border-orange);
    background:
        linear-gradient(
            145deg,
            rgba(232, 111, 37, 0.11),
            transparent 48%
        ),
        rgba(16, 16, 17, 0.9);
}

.role-card__number {
    margin-bottom: 3rem;
    color: rgba(232, 111, 37, 0.42);
    font-family: var(--font-display);
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 600;
    line-height: 0.7;
}

.role-card__label,
.work-card__category {
    margin-bottom: 0.75rem;
    color: var(--color-orange);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.role-card h3,
.method-step h3,
.work-card h3 {
    margin-bottom: 0.7rem;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.role-card h3 {

    max-width: 15ch;

    font-size: clamp(2rem, 3.5vw, 3.6rem);

}

.role-card__title {

    margin-bottom: 1.75rem;

    color: var(--color-orange);

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

}

.role-card > p:not(.role-card__label):not(.role-card__title) {

    color: var(--color-muted);

}

.focus-list {
    margin: 2rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
}

.focus-list li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.25rem;
    color: #d1cdc6;
    font-size: 0.86rem;
}

.focus-list li::before {
    position: absolute;
    top: 0.96rem;
    left: 0;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--color-orange);
    content: "";
}

.role-card__link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 2rem;
    color: var(--color-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.role-card__link span {
    color: var(--color-orange);
    font-size: 1rem;
    transition: transform 180ms ease;
}

.role-card__link:hover,
.role-card__link:focus-visible {
    color: var(--color-orange);
}

.role-card__link:hover span,
.role-card__link:focus-visible span {
    transform: translate(0.2rem, -0.2rem);
}

/* =========================================================
   System optimisation
   ========================================================= */

.system-optimisation {
    background: var(--color-surface);
}

.capability-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 2.25rem;
}

.capability-list span {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--color-border-orange);
    color: #d1cdc6;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   Working method
   ========================================================= */

.working-method {
    border-block: 1px solid var(--color-border);
    background: #09090a;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    list-style: none;
}

.method-step {
    min-width: 0;
    min-height: 18rem;
    padding: 2rem;
}

.method-step + .method-step {
    border-left: 1px solid var(--color-border);
}

.method-step__number {
    display: block;
    color: var(--color-orange);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.method-step h3 {
    margin-top: 4.5rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.method-step p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* =========================================================
   Selected work
   ========================================================= */

.selected-work {
    background: var(--color-surface);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.work-card {
    min-height: 20rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid var(--color-border);
    border-top-color: var(--color-border-orange);
    background: #101011;
}

.work-card h3 {
    max-width: 16ch;
    font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.work-card > p:last-child,
.work-card__body > p:last-child {
    max-width: 38rem;
    margin-bottom: 0;
    color: var(--color-muted);
}

.work-card--image {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns:
        minmax(18rem, 0.9fr)
        minmax(0, 1fr);
    align-items: stretch;
    padding: 0;
    border-top-color: var(--color-border);
}

.work-card__image {
    min-height: 26rem;
    overflow: hidden;
    background: var(--color-surface-light);
}

.work-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.05);
}

.work-card__body {
    align-self: center;
    padding: clamp(2rem, 5vw, 5rem);
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {
    .professional-profile__grid,
    .system-optimisation__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .role-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .role-card {
        min-height: auto;
    }

    .method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .method-step:nth-child(3) {
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }

    .method-step:nth-child(4) {
        border-top: 1px solid var(--color-border);
    }

    .work-card--image {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .work-card__image {
        min-height: 20rem;
        aspect-ratio: 16 / 10;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 620px) {
    #current-roles,
    #c-biotech,
    #earth-plus,
    #fytolutions,
    #c-hempflax,
    #project-work {
        scroll-margin-top: 5.5rem;
    }

    .professional-page h2 {
        font-size: clamp(2.8rem, 14vw, 4.1rem);
    }

    .professional-hero {
        min-height: 48rem;
        align-items: flex-end;
    }

    .professional-hero__art {
        background-position: 72% center;
    }

    .professional-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(7, 7, 8, 0.52) 0%,
                rgba(7, 7, 8, 0.72) 30%,
                rgba(7, 7, 8, 0.96) 68%,
                #070708 100%
            ),
            linear-gradient(
                90deg,
                rgba(7, 7, 8, 0.45),
                transparent
            );
    }

    .professional-hero__inner {
        min-height: 48rem;
        align-items: flex-end;
        padding-top: 8rem;
        padding-right: 1.5rem;
        padding-bottom: 4.5rem;
        padding-left: 1.5rem;
    }

    .professional-hero h1 {
        max-width: 9ch;
        font-size: clamp(3.5rem, 16vw, 5rem);
    }

    .professional-hero__introduction {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .professional-hero__actions {
        flex-direction: column;
    }

    .professional-hero__actions .button {
        width: 100%;
    }

    .role-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .role-card__number {
        margin-bottom: 2.5rem;
    }

    .role-card__link {
        margin-top: 1rem;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .method-step,
    .method-step:nth-child(3) {
        min-height: auto;
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }

    .method-step:first-child {
        border-top: 0;
    }

    .method-step h3 {
        margin-top: 2.5rem;
    }

    .work-card {
        padding: 1.5rem;
    }

    .work-card--image {
        padding: 0;
    }

    .work-card__image {
        min-height: 17rem;
        aspect-ratio: 4 / 3;
    }

    .work-card__body {
        padding: 1.5rem;
    }
}