.profile-module-header {
    margin-top: 0;
}

.profile-hero,
.profile-section,
.profile-content-grid {
    font-family: 'Kanit', sans-serif;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
    gap: 18px;
    margin-bottom: 20px;
}

.profile-identity,
.profile-contact-card {
    background: #fff;
    border: 1px solid #ead7d9;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(67, 24, 27, 0.08);
}

.profile-identity {
    align-items: center;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.profile-identity::after {
    background: linear-gradient(145deg, rgba(163, 30, 37, 0.12), rgba(14, 116, 184, 0.08));
    border-radius: 50%;
    content: "";
    height: 240px;
    position: absolute;
    right: -110px;
    top: -130px;
    width: 240px;
}

.profile-photo-frame {
    position: relative;
}

.profile-photo-frame img {
    aspect-ratio: 4 / 5;
    border: 5px solid #fff;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    display: block;
    object-fit: cover;
    width: 100%;
}

.profile-status {
    background: #16794a;
    border: 3px solid #fff;
    border-radius: 999px;
    bottom: -8px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    left: 50%;
    padding: 6px 10px;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.profile-intro {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.profile-eyebrow,
.section-kicker {
    color: #a31e25;
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-intro h1 {
    color: #2d333a;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.2;
    margin: 5px 0 4px;
}

.profile-role {
    color: #a31e25;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.profile-summary {
    color: #667085;
    line-height: 1.75;
    margin: 14px 0;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-tags span {
    background: #fff6f7;
    border: 1px solid #edd4d7;
    border-radius: 999px;
    color: #7c171d;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 10px;
}

.profile-contact-card {
    padding: 24px;
}

.profile-contact-card h2 {
    color: #344054;
    font-size: 1.3rem;
    margin: 5px 0 18px;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-list div {
    border-bottom: 1px solid #edf0f3;
    padding-bottom: 11px;
}

.contact-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-list dt,
.profile-detail-list dt {
    color: #8a5b60;
    font-size: 0.76rem;
    margin-bottom: 3px;
}

.contact-list dd,
.profile-detail-list dd {
    color: #344054;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}

.contact-list a {
    color: #0e74b8;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.profile-section {
    margin-bottom: 20px;
}

.profile-section-heading {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.profile-section-heading.compact {
    margin-bottom: 14px;
}

.profile-section-heading h3 {
    margin: 4px 0 0;
}

.profile-section-heading p {
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0;
    max-width: 440px;
    text-align: right;
}

.profile-photo-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-photo-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    cursor: zoom-in;
    margin: 0;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.profile-photo-card:hover,
.profile-photo-card:focus {
    border-color: #d6aeb2;
    box-shadow: 0 14px 28px rgba(67, 24, 27, 0.12);
    outline: none;
    transform: translateY(-2px);
}

.profile-photo-card img {
    aspect-ratio: 4 / 4.7;
    display: block;
    object-fit: cover;
    width: 100%;
}

.profile-photo-card figcaption {
    padding: 12px;
}

.profile-photo-card strong,
.profile-photo-card span {
    display: block;
}

.profile-photo-card strong {
    color: #7c171d;
    font-size: 0.96rem;
}

.profile-photo-card span {
    color: #667085;
    font-size: 0.76rem;
    line-height: 1.45;
    margin-top: 3px;
}

body.lightbox-open {
    overflow: hidden;
}

.profile-lightbox {
    display: none;
    inset: 0;
    padding: 24px;
    position: fixed;
    z-index: 2000;
}

.profile-lightbox.is-open {
    align-items: center;
    display: flex;
    justify-content: center;
}

.profile-lightbox-backdrop {
    background: rgba(15, 23, 42, 0.82);
    cursor: zoom-out;
    inset: 0;
    position: absolute;
}

.profile-lightbox-dialog {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 48px);
    max-width: min(760px, calc(100vw - 48px));
    overflow: auto;
    position: relative;
    width: 100%;
    z-index: 1;
}

.profile-lightbox-dialog img {
    background: #eef1f5;
    display: block;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    width: 100%;
}

.profile-lightbox-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    color: #344054;
    cursor: pointer;
    display: flex;
    font-size: 1.7rem;
    height: 40px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 40px;
    z-index: 2;
}

.profile-lightbox-close:hover,
.profile-lightbox-close:focus {
    background: #a31e25;
    color: #fff;
    outline: none;
}

.profile-lightbox-caption {
    padding: 16px 18px 18px;
}

.profile-lightbox-caption h3 {
    color: #7c171d;
    margin: 0 0 4px;
}

.profile-lightbox-caption p {
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0;
}

.profile-content-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-detail-list {
    display: grid;
    gap: 0;
}

.profile-detail-list div {
    align-items: start;
    border-bottom: 1px solid #edf0f3;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.4fr);
    padding: 10px 0;
}

.profile-detail-list div:last-child {
    border-bottom: 0;
}

.inline-status,
.skill-level {
    background: #eefbf3;
    border: 1px solid #b8e6c9;
    border-radius: 999px;
    color: #16794a;
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 8px;
}

.skill-list {
    display: grid;
    gap: 9px;
}

.skill-item {
    align-items: center;
    background: #fbfcfd;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 11px;
}

.skill-item strong,
.skill-item span {
    display: block;
}

.skill-item strong {
    color: #344054;
    font-size: 0.9rem;
}

.skill-item div span {
    color: #667085;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 2px;
}

.skill-item .skill-level {
    flex: 0 0 auto;
}

.resume-timeline {
    display: grid;
    gap: 0;
}

.timeline-entry {
    display: grid;
    gap: 20px;
    grid-template-columns: 130px minmax(0, 1fr);
    position: relative;
}

.timeline-entry::before {
    background: #ead7d9;
    bottom: 0;
    content: "";
    left: 141px;
    position: absolute;
    top: 0;
    width: 2px;
}

.timeline-entry:last-child::before {
    bottom: 50%;
}

.timeline-year {
    color: #a31e25;
    font-size: 0.82rem;
    font-weight: 700;
    padding-top: 17px;
    text-align: right;
}

.timeline-content {
    border-bottom: 1px solid #edf0f3;
    padding: 14px 0 18px 28px;
    position: relative;
}

.timeline-content::before {
    background: #a31e25;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #d6aeb2;
    content: "";
    height: 12px;
    left: -14px;
    position: absolute;
    top: 18px;
    width: 12px;
}

.timeline-content h4 {
    color: #344054;
    font-size: 1rem;
    margin: 0 0 5px;
}

.timeline-content p {
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .profile-hero,
    .profile-content-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .profile-identity {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .profile-intro h1 {
        font-size: 1.35rem;
    }

    .profile-role {
        font-size: 0.82rem;
    }

    .profile-summary {
        font-size: 0.78rem;
        line-height: 1.6;
        margin: 9px 0;
    }

    .profile-tags span {
        font-size: 0.68rem;
        padding: 4px 7px;
    }

    .profile-contact-card,
    .profile-section {
        padding: 16px;
    }

    .profile-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 14px;
    }

    .profile-section-heading p {
        font-size: 0.76rem;
        text-align: left;
    }

    .profile-photo-grid {
        gap: 8px;
    }

    .profile-photo-card figcaption {
        padding: 9px;
    }

    .profile-lightbox {
        padding: 12px;
    }

    .profile-lightbox-dialog {
        border-radius: 14px;
        max-height: calc(100vh - 24px);
        max-width: calc(100vw - 24px);
    }

    .profile-lightbox-dialog img {
        max-height: calc(100vh - 150px);
    }

    .profile-lightbox-caption {
        padding: 12px 14px 14px;
    }

    .profile-detail-list div {
        gap: 4px;
        grid-template-columns: 1fr;
    }

    .skill-item {
        align-items: flex-start;
    }

    .timeline-entry {
        gap: 10px;
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .timeline-entry::before {
        left: 89px;
    }

    .timeline-year {
        font-size: 0.72rem;
    }

    .timeline-content {
        padding-left: 20px;
    }

    .timeline-content h4 {
        font-size: 0.88rem;
    }

    .timeline-content p {
        font-size: 0.76rem;
    }
}

@media (max-width: 420px) {
    .profile-identity {
        align-items: start;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
    }

    .profile-status {
        display: none;
    }

    .profile-summary {
        grid-column: 1 / -1;
    }
}
