/* ============================================================
   CREDENTIALS
   Premium professional record
============================================================ */

.credentialsSection {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(
            125deg,
            #fffdf9 0%,
            #f6efe4 52%,
            #e7d6b9 100%
        );
    color: var(--wine-950);
}


/* ============================================================
   BACKGROUND
============================================================ */

.credentialsSection::before {
    position: absolute;
    z-index: -4;
    inset: 0;
    background:
        radial-gradient(
            circle at 18% 22%,
            rgba(255, 255, 255, 0.92),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 72%,
            rgba(150, 112, 68, 0.13),
            transparent 38%
        );
    content: "";
}

.credentialsSection::after {
    position: absolute;
    z-index: -3;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(90, 31, 31, 0.017) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(90, 31, 31, 0.017) 1px,
            transparent 1px
        );
    background-size: 60px 60px;
    content: "";
    pointer-events: none;
}

.credentialsBlueprint {
    position: absolute;
    z-index: -2;
    right: -240px;
    bottom: -170px;
    width: min(68vw, 1050px);
    height: 820px;
    background-image: url("../img/blueprint-floorplan.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.032;
    pointer-events: none;
    transform: rotate(-8deg);
}


/* ============================================================
   TECHNICAL LABELS
============================================================ */

.credentialsTechnicalLabel {
    position: absolute;
    z-index: 1;
    color: rgba(90, 31, 31, 0.26);
    font-family: "Courier New", monospace;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    pointer-events: none;
}

.credentialsTechnicalTop {
    top: 74px;
    right: 4%;
}

.credentialsTechnicalBottom {
    right: 1%;
    bottom: 100px;
    transform: rotate(90deg);
}


/* ============================================================
   GRID
============================================================ */

.credentialsGrid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(320px, 0.74fr)
        minmax(0, 1.26fr);
    gap: clamp(70px, 9vw, 145px);
    align-items: start;
}


/* ============================================================
   STICKY INTRO
============================================================ */

.credentialsSticky {
    position: sticky;
    top: calc(var(--header-height) + 38px);
    align-self: start;
}

.credentialsHeadingMeta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.credentialsHeadingMeta .sectionIndex {
    margin: 0;
}

.credentialsSection .sectionHeading {
    position: relative;
    padding-left: 28px;
}

.credentialsSection .sectionHeading::before {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 1px;
    background:
        linear-gradient(
            to bottom,
            var(--bronze-600),
            rgba(150, 112, 68, 0.08)
        );
    content: "";
}

.credentialsSection .sectionHeading h2 {
    margin: 0;
    color: var(--wine-950);
    font-family: var(--font-display);
    font-size: clamp(3.1rem, 5vw, 5.4rem);
    font-weight: 600;
    letter-spacing: -0.052em;
    line-height: 0.94;
}

.credentialsSection .sectionHeading h2 span {
    display: block;
    margin-top: 9px;
    color: var(--bronze-700);
    font-style: italic;
    font-weight: 500;
}

.credentialsIntro {
    max-width: 550px;
    margin: 31px 0 0;
    color: var(--charcoal-600);
    font-size: 0.94rem;
    line-height: 1.85;
}


/* ============================================================
   SUMMARY
============================================================ */

.credentialsSummary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 46px;
    border-top: 1px solid rgba(90, 31, 31, 0.17);
    border-left: 1px solid rgba(90, 31, 31, 0.17);
}

.credentialsSummaryItem {
    min-height: 150px;
    padding: 25px;
    border-right: 1px solid rgba(90, 31, 31, 0.17);
    border-bottom: 1px solid rgba(90, 31, 31, 0.17);
    background: rgba(255, 255, 255, 0.34);
}

.credentialsSummaryItem strong {
    display: block;
    color: var(--wine-800);
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.credentialsSummaryItem span {
    display: block;
    max-width: 150px;
    margin-top: 15px;
    color: var(--charcoal-500);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    line-height: 1.45;
    text-transform: uppercase;
}


/* ============================================================
   DIMENSION
============================================================ */

.credentialsDimension {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    color: rgba(90, 31, 31, 0.42);
    font-family: "Courier New", monospace;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
}

.credentialsDimension i {
    position: relative;
    flex: 1;
    height: 1px;
    background: rgba(90, 31, 31, 0.20);
}

.credentialsDimension i::before,
.credentialsDimension i::after {
    position: absolute;
    top: -4px;
    width: 1px;
    height: 9px;
    background: rgba(90, 31, 31, 0.34);
    content: "";
}

.credentialsDimension i::before {
    left: 0;
}

.credentialsDimension i::after {
    right: 0;
}


/* ============================================================
   CREDENTIAL CONTENT
============================================================ */

.credentialsContent {
    display: grid;
    gap: 30px;
}

.credentialItem {
    position: relative;
    padding: 38px;
    overflow: hidden;
    border: 1px solid rgba(90, 31, 31, 0.15);
    background: rgba(255, 255, 255, 0.68);
    box-shadow:
        0 15px 40px rgba(70, 38, 10, 0.055);
    transition:
        transform 450ms ease,
        background 450ms ease,
        border-color 450ms ease,
        box-shadow 450ms ease;
}

.credentialItem:hover {
    z-index: 2;
    border-color: rgba(150, 112, 68, 0.44);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 28px 65px rgba(70, 38, 10, 0.12);
    transform: translateY(-5px);
}

.credentialTop {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 34px;
}

.credentialNumber {
    color: var(--wine-800);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
}

.credentialCode {
    color: rgba(90, 31, 31, 0.35);
    font-family: "Courier New", monospace;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
}

.credentialType {
    display: block;
    margin-bottom: 9px;
    color: var(--bronze-600);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.credentialItem h3 {
    margin: 0 0 16px;
    color: var(--wine-950);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.credentialItem p {
    max-width: 760px;
    margin: 0;
    color: var(--charcoal-500);
    font-size: 0.9rem;
    line-height: 1.78;
}


/* ============================================================
   FEATURED EDUCATION
============================================================ */

.credentialItemFeatured {
    min-height: 470px;
    padding: 46px;
    background:
        linear-gradient(
            135deg,
            rgba(43, 13, 13, 0.985),
            rgba(90, 31, 31, 0.98)
        );
    color: var(--white);
    box-shadow:
        0 30px 70px rgba(43, 13, 13, 0.18);
}

.credentialItemFeatured:hover {
    border-color: rgba(201, 166, 107, 0.40);
    background:
        linear-gradient(
            135deg,
            #2b0d0d,
            #672525
        );
}

.credentialItemFeatured .credentialNumber {
    color: var(--gold-400);
}

.credentialItemFeatured .credentialCode {
    color: rgba(255, 255, 255, 0.40);
}

.credentialFeaturedLayout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 45px;
    align-items: center;
}

.credentialSeal {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    border: 1px solid rgba(201, 166, 107, 0.30);
    border-radius: 50%;
}

.credentialSeal svg {
    width: 125px;
    height: 125px;
    fill: none;
    stroke: var(--gold-400);
    stroke-width: 1;
}

.credentialItemFeatured .credentialType {
    color: var(--gold-400);
}

.credentialItemFeatured h3 {
    color: var(--white);
    font-size: clamp(2.5rem, 4vw, 4.3rem);
}

.credentialItemFeatured p {
    color: rgba(255, 255, 255, 0.65);
}

.credentialMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 166, 107, 0.21);
}

.credentialMeta span {
    position: relative;
    color: rgba(255, 255, 255, 0.53);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.credentialMeta span + span::before {
    position: absolute;
    top: 50%;
    left: -14px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-400);
    content: "";
    transform: translateY(-50%);
}

.credentialFeaturedDrawing {
    position: absolute;
    right: -42px;
    bottom: 37px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: rgba(201, 166, 107, 0.20);
    font-family: "Courier New", monospace;
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    transform: rotate(90deg);
}


/* ============================================================
   STANDARD CREDENTIAL
============================================================ */

.credentialBody {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.credentialIcon {
    display: grid;
    width: 100px;
    height: 100px;
    place-items: center;
    border: 1px solid rgba(90, 31, 31, 0.16);
    background: rgba(244, 241, 236, 0.68);
}

.credentialIcon svg {
    width: 70px;
    height: 70px;
    fill: none;
    stroke: var(--bronze-600);
    stroke-width: 1;
}

.credentialIconISO {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.credentialIconISO strong {
    color: var(--wine-800);
    font-family: var(--font-display);
    font-size: 2.1rem;
    line-height: 0.9;
}

.credentialIconISO span {
    margin-top: 5px;
    color: var(--bronze-600);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.credentialFooter {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(90, 31, 31, 0.14);
}

.credentialFooter span {
    padding: 7px 10px;
    border: 1px solid rgba(90, 31, 31, 0.14);
    color: var(--wine-800);
    font-size: 0.53rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}


/* ============================================================
   LANGUAGES
============================================================ */

.credentialItemLanguages {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82),
            rgba(240, 226, 201, 0.76)
        );
}

.credentialLanguagesGrid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(270px, 0.92fr);
    gap: 55px;
    align-items: center;
}

.languageList {
    border-top: 1px solid rgba(90, 31, 31, 0.16);
}

.languageItem {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(90, 31, 31, 0.16);
}

.languageItem strong {
    display: block;
    color: var(--wine-900);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
}

.languageItem span {
    display: block;
    margin-top: 2px;
    color: var(--charcoal-500);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.languageIndicator {
    display: flex;
    gap: 5px;
}

.languageIndicator i {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--bronze-500);
}


/* ============================================================
   APPLIED EXPERIENCE
============================================================ */

.credentialPractice {
    position: relative;
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 45px;
    align-items: center;
    padding: 48px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #d6b879,
            #b98e50
        );
    color: var(--wine-950);
    box-shadow:
        0 24px 55px rgba(70, 38, 10, 0.13);
}

.credentialPracticeNumber {
    color: var(--wine-950);
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 7vw, 7.5rem);
    font-weight: 600;
    letter-spacing: -0.07em;
    line-height: 0.8;
}

.credentialPracticeContent {
    position: relative;
    z-index: 2;
}

.credentialPracticeContent > span {
    display: block;
    margin-bottom: 10px;
    color: rgba(43, 13, 13, 0.63);
    font-size: 0.57rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.credentialPractice h3 {
    max-width: 650px;
    margin: 0 0 16px;
    color: var(--wine-950);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.4vw, 3.7rem);
    font-weight: 600;
    line-height: 1;
}

.credentialPractice p {
    max-width: 720px;
    margin: 0;
    color: rgba(43, 13, 13, 0.69);
    font-size: 0.9rem;
    line-height: 1.78;
}

.credentialPracticeTechnical {
    position: absolute;
    right: -25px;
    bottom: 33px;
    color: rgba(43, 13, 13, 0.22);
    font-family: "Courier New", monospace;
    font-size: 0.54rem;
    letter-spacing: 0.13em;
    transform: rotate(90deg);
}


/* ============================================================
   FOOTER
============================================================ */

.credentialsFooter {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    color: rgba(90, 31, 31, 0.48);
    font-family: "Courier New", monospace;
    font-size: 0.54rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.credentialsFooter i {
    position: relative;
    flex: 1;
    min-width: 25px;
    height: 1px;
    background: rgba(90, 31, 31, 0.21);
}

.credentialsFooter i::after {
    position: absolute;
    top: -2px;
    right: 0;
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--wine-800);
    border-right: 1px solid var(--wine-800);
    content: "";
    transform: rotate(45deg);
}


/* ============================================================
   REVEAL
============================================================ */

.credentialReveal {
    opacity: 0;
    transform: translateY(42px);
    transition:
        opacity 800ms ease,
        transform 1000ms cubic-bezier(.18, .68, .25, 1),
        background 450ms ease,
        border-color 450ms ease,
        box-shadow 450ms ease;
}

.credentialReveal.isVisible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 980px) {

    .credentialsGrid {
        grid-template-columns:
            minmax(280px, 0.7fr)
            minmax(0, 1.3fr);
        gap: 60px;
    }

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

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

    .credentialSeal {
        width: 120px;
        height: 120px;
    }

    .credentialSeal svg {
        width: 100px;
        height: 100px;
    }

    .credentialLanguagesGrid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

}


@media (max-width: 820px) {

    .credentialsGrid {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .credentialsSticky {
        position: static;
    }

    .credentialsSummary {
        max-width: 520px;
        grid-template-columns: repeat(2, 1fr);
    }

    .credentialsSection .sectionHeading h2 {
        max-width: 780px;
    }

}


@media (max-width: 620px) {

    .credentialsSection .sectionHeading {
        padding-left: 20px;
    }

    .credentialsHeadingMeta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

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

    .credentialItem,
    .credentialItemFeatured {
        padding: 32px 24px;
    }

    .credentialBody {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .credentialIcon {
        width: 85px;
        height: 85px;
    }

    .credentialFeaturedLayout {
        gap: 30px;
    }

    .credentialPractice {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 38px 26px;
    }

    .credentialPracticeNumber {
        font-size: 5rem;
    }

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

    .credentialsFooter {
        align-items: flex-start;
        flex-direction: column;
    }

    .credentialsFooter i {
        width: 100%;
        flex: none;
    }

    .credentialsDimension,
    .credentialsTechnicalLabel {
        display: none;
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

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

    .credentialReveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .credentialItem {
        transition: none;
    }

}