/* AccessRA Engineer Profile — dedicated page styles.
   Loaded after accessra-platform.css so this page can evolve without editing the global stylesheet. */

.ar-profile-hero {
    padding: 56px 0 52px;
    border-bottom: 1px solid var(--ar-border);
    background: #fff;
}

.ar-profile-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 64px;
    align-items: start;
}

.ar-profile-intro {
    max-width: 820px;
    padding-top: 14px;
}

.ar-profile-name {
    max-width: 800px;
    margin-top: .6rem;
    color: var(--ar-navy);
    font-size: clamp(2.7rem, 5vw, 4.65rem);
    font-weight: 780;
    line-height: .98;
    letter-spacing: -.048em;
}

.ar-profile-title {
    margin-top: 1rem;
    color: #263b4e;
    font-size: 1.2rem;
    font-weight: 700;
}

.ar-profile-trustline {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    margin-top: .85rem;
    color: #637486;
    font-size: .75rem;
    font-weight: 650;
}

.ar-profile-trustline span {
    position: relative;
    padding-right: 1rem;
}

.ar-profile-trustline span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #a7b2be;
    transform: translateY(-50%);
}

.ar-profile-lede {
    max-width: 760px;
    margin-top: 1.4rem;
    color: #4d6072;
    font-size: 1.02rem;
    line-height: 1.75;
}

.ar-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1.65rem;
}

.ar-profile-actions .ar-text-link {
    margin-left: .25rem;
    font-size: .76rem;
}

/* Field-practice evidence card */

.ar-profile-identity {
    overflow: hidden;
    border: 1px solid var(--ar-border-strong);
    background: #fff;
}

.ar-profile-field-carousel {
    background: #fff;
    outline: none;
}

.ar-profile-field-carousel:focus-visible {
    box-shadow: 0 0 0 3px rgba(242, 140, 40, .22);
}

.ar-profile-field-carousel__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 4.35;
    background: #e8edf1;
}

.ar-profile-field-slide {
    position: absolute;
    inset: 0;
    margin: 0;
}

.ar-profile-field-slide[hidden] {
    display: none;
}

.ar-profile-field-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ar-profile-field-slide.is-active {
    animation: ar-field-photo-in 180ms ease-out;
}

@keyframes ar-field-photo-in {
    from { opacity: .35; }
    to { opacity: 1; }
}

.ar-profile-photo__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #eef2f5, #dde5ea);
}

.ar-profile-photo__placeholder svg {
    width: 43%;
    fill: none;
    stroke: #8393a3;
    stroke-width: 2.4;
}

.ar-profile-field-carousel__controls {
    position: absolute;
    right: .85rem;
    bottom: .85rem;
    z-index: 3;
    display: flex;
    gap: .35rem;
}

.ar-profile-field-carousel__button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 2px;
    background: rgba(14, 40, 62, .92);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background-color 150ms ease, border-color 150ms ease;
}

.ar-profile-field-carousel__button:hover,
.ar-profile-field-carousel__button:focus-visible {
    border-color: #fff;
    background: var(--ar-orange);
    outline: none;
}

.ar-profile-field-carousel__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-height: 112px;
    padding: 1rem 1.1rem 1.05rem;
    border-top: 1px solid var(--ar-border);
    background: #fff;
}

.ar-profile-field-carousel__meta > div:first-child {
    min-width: 0;
}

.ar-profile-field-carousel__meta strong {
    display: block;
    margin-top: .4rem;
    color: var(--ar-navy);
    font-size: .84rem;
    font-weight: 780;
    line-height: 1.4;
}

.ar-profile-field-carousel__meta p:not(.ar-tech-label) {
    max-width: 285px;
    margin-top: .35rem;
    color: var(--ar-muted);
    font-size: .69rem;
    line-height: 1.45;
}

.ar-profile-field-carousel__counter {
    flex: none;
    align-self: flex-start;
    padding-top: .1rem;
    color: #8291a0;
    font-size: .66rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.ar-profile-registration {
    padding: 1.05rem 1.1rem 1.15rem;
    border-top: 3px solid var(--ar-navy);
}

.ar-profile-registration strong {
    display: block;
    margin-top: .45rem;
    color: var(--ar-navy);
    font-size: .92rem;
}

.ar-profile-registration p {
    margin-top: .3rem;
    color: var(--ar-muted);
    font-size: .72rem;
    line-height: 1.5;
}

.ar-profile-registration__number {
    color: #3c4f61 !important;
    font-weight: 700;
}

.ar-profile-registration a {
    display: inline-flex;
    margin-top: .7rem;
    color: var(--ar-navy);
    font-size: .72rem;
    font-weight: 750;
}

.ar-profile-registration a:hover {
    color: var(--ar-orange);
}

/* Credibility strip */

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

.ar-profile-proofbar__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ar-profile-proofbar__grid > div {
    min-height: 104px;
    padding: 1.25rem 1.1rem;
    border-right: 1px solid var(--ar-border);
}

.ar-profile-proofbar__grid > div:first-child {
    border-left: 1px solid var(--ar-border);
}

.ar-profile-proofbar strong {
    display: block;
    color: var(--ar-navy);
    font-size: .9rem;
    font-weight: 780;
}

.ar-profile-proofbar span {
    display: block;
    margin-top: .35rem;
    color: var(--ar-muted);
    font-size: .72rem;
    line-height: 1.45;
}

/* Professional story */

.ar-profile-story {
    padding-top: 58px;
    padding-bottom: 62px;
}

.ar-profile-story__grid {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 72px;
    align-items: start;
}

.ar-profile-story__copy {
    max-width: 780px;
    color: #34495d;
    font-size: .96rem;
    line-height: 1.76;
}

.ar-profile-story__copy p + p {
    margin-top: 1rem;
}

/* Practice areas */

.ar-profile-practice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ar-profile-practice-item {
    min-height: 220px;
    padding: 1.4rem 1.25rem;
    border-top: 1px solid var(--ar-border-strong);
    border-right: 1px solid var(--ar-border);
}

.ar-profile-practice-item:first-child {
    border-left: 1px solid var(--ar-border);
}

.ar-profile-practice-item > span {
    color: #93a2b3;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.ar-profile-practice-item h3 {
    margin-top: 1.5rem;
    color: var(--ar-navy);
    font-size: .94rem;
    font-weight: 780;
}

.ar-profile-practice-item p {
    margin-top: .55rem;
    color: var(--ar-muted);
    font-size: .74rem;
    line-height: 1.58;
}

/* Technical focus */

.ar-profile-focus-grid {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 72px;
    align-items: start;
}

.ar-profile-expertise {
    border-top: 1px solid var(--ar-border-strong);
}

.ar-profile-expertise > div {
    padding: .9rem 0;
    border-bottom: 1px solid var(--ar-border);
    color: #263d51;
    font-size: .84rem;
    font-weight: 720;
}

/* AccessRA outputs */

.ar-profile-accessra-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 64px;
    align-items: end;
}

.ar-profile-accessra-head > p {
    color: var(--ar-muted);
    font-size: .8rem;
    line-height: 1.6;
}

.ar-profile-accessra-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.6rem;
    border-top: 1px solid var(--ar-border);
    border-left: 1px solid var(--ar-border);
    background: #fff;
}

.ar-profile-accessra-grid a {
    min-height: 210px;
    padding: 1.2rem;
    border-right: 1px solid var(--ar-border);
    border-bottom: 1px solid var(--ar-border);
}

.ar-profile-accessra-grid a:hover {
    background: #fbfcfd;
}

.ar-profile-accessra-grid span {
    display: block;
    color: #748596;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ar-profile-accessra-grid strong {
    display: block;
    margin-top: 1.2rem;
    color: var(--ar-navy);
    font-size: 1rem;
}

.ar-profile-accessra-grid p {
    margin-top: .5rem;
    color: var(--ar-muted);
    font-size: .75rem;
    line-height: 1.55;
}

.ar-profile-accessra-grid i {
    display: inline-flex;
    margin-top: 1.05rem;
    color: var(--ar-navy);
    font-size: .72rem;
    font-style: normal;
    font-weight: 750;
}

/* Engineering projects */

.ar-profile-selected-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.ar-profile-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.4rem;
    border-top: 1px solid var(--ar-border);
    border-left: 1px solid var(--ar-border);
}

.ar-profile-project {
    min-height: 190px;
    padding: 1.15rem;
    border-right: 1px solid var(--ar-border);
    border-bottom: 1px solid var(--ar-border);
}

.ar-profile-project:hover {
    background: #fbfcfd;
}

.ar-profile-project > span {
    color: #7c8b99;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ar-profile-project strong {
    display: block;
    margin-top: .75rem;
    color: var(--ar-navy);
    font-size: .95rem;
}

.ar-profile-project p {
    margin-top: .45rem;
    color: var(--ar-muted);
    font-size: .73rem;
    line-height: 1.5;
}

.ar-profile-project i {
    display: inline-flex;
    margin-top: .8rem;
    color: var(--ar-navy);
    font-size: .7rem;
    font-style: normal;
    font-weight: 750;
}

/* Closing CTA */

.ar-profile-close {
    padding: 42px 0;
    border-top: 3px solid var(--ar-navy);
    background: #fff;
}

.ar-profile-close__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ar-profile-close h2 {
    max-width: 700px;
    margin-top: .45rem;
    color: var(--ar-navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 760;
    letter-spacing: -.025em;
}

.ar-profile-close__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

@media (max-width: 1023px) {
    .ar-profile-hero__grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 38px;
    }

    .ar-profile-name {
        font-size: clamp(2.5rem, 6vw, 3.8rem);
    }

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

    .ar-profile-proofbar__grid > div:nth-child(3) {
        border-top: 1px solid var(--ar-border);
        border-left: 1px solid var(--ar-border);
    }

    .ar-profile-proofbar__grid > div:nth-child(4) {
        border-top: 1px solid var(--ar-border);
    }

    .ar-profile-story__grid,
    .ar-profile-focus-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .ar-profile-practice-item:nth-child(3) {
        border-left: 1px solid var(--ar-border);
    }

    .ar-profile-accessra-head {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .ar-profile-hero {
        padding: 34px 0 36px;
    }

    .ar-profile-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ar-profile-intro {
        padding-top: 0;
    }

    .ar-profile-name {
        font-size: 2.55rem;
        line-height: 1.02;
    }

    .ar-profile-title {
        font-size: 1rem;
    }

    .ar-profile-trustline {
        gap: .45rem .7rem;
    }

    .ar-profile-trustline span {
        width: 100%;
        padding-right: 0;
    }

    .ar-profile-trustline span::after {
        display: none;
    }

    .ar-profile-lede {
        font-size: .92rem;
    }

    .ar-profile-actions .btn,
    .ar-profile-actions .ar-text-link {
        width: 100%;
        margin-left: 0;
    }

    .ar-profile-identity {
        max-width: 390px;
    }

    .ar-profile-field-carousel__controls {
        right: .65rem;
        bottom: .65rem;
    }

    .ar-profile-field-carousel__button {
        width: 42px;
        height: 42px;
    }

    .ar-profile-field-carousel__meta {
        min-height: 0;
    }

    .ar-profile-field-carousel__meta p:not(.ar-tech-label) {
        max-width: none;
    }

    .ar-profile-proofbar__grid,
    .ar-profile-practice-grid,
    .ar-profile-accessra-grid,
    .ar-profile-project-grid {
        grid-template-columns: 1fr;
    }

    .ar-profile-proofbar__grid > div {
        min-height: 82px;
        border-top: 1px solid var(--ar-border);
        border-left: 1px solid var(--ar-border) !important;
    }

    .ar-profile-proofbar__grid > div:first-child {
        border-top: 0;
    }

    .ar-profile-story {
        padding-top: 40px;
        padding-bottom: 42px;
    }

    .ar-profile-practice-item,
    .ar-profile-accessra-grid a,
    .ar-profile-project {
        min-height: 0;
        border-left: 1px solid var(--ar-border);
    }

    .ar-profile-selected-head,
    .ar-profile-close__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .ar-profile-close__actions,
    .ar-profile-close__actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ar-profile-field-slide.is-active {
        animation: none;
    }
}
