/* Biography & resume — gold/glass academy (disc homepage parity) */

@keyframes about-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes about-slide-in {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes about-scale-in {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.about-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 8px 48px;
    animation: about-fade-up 0.75s ease-out both;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
    margin-bottom: 48px;
    min-width: 0;
}

.about-hero__media {
    animation: about-slide-in 0.8s ease-out 0.12s both;
    text-align: center;
    min-width: 0;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
}

.about-hero__frame {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 40% 20%, rgba(218, 178, 93, 0.22), transparent 60%),
        rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(218, 178, 93, 0.35);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.about-hero__frame::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
    pointer-events: none;
}

.about-hero__photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    transition: transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
    .about-hero__frame:hover .about-hero__photo {
        transform: scale(1.04);
    }
}

.about-hero__text {
    text-align: right;
    animation: about-fade-up 0.8s ease-out 0.28s both;
}

.about-kicker {
    display: inline-block;
    color: var(--primary-color, #dab25d);
    font-family: 'Kalameh', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.about-hero__title {
    font-size: clamp(1.85rem, 4vw, 2.55rem);
    font-weight: 700;
    color: var(--text-heading, var(--text-primary));
    margin: 0 0 16px;
    font-family: 'Kalameh', sans-serif;
    line-height: 1.35;
}

.about-hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0 0 22px;
    font-family: 'Kalameh', sans-serif;
    line-height: 1.85;
}

.about-hero__body {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 2;
    font-family: 'Kalameh', sans-serif;
    text-align: justify;
    margin: 0 0 24px;
}

.about-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-section-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-heading, var(--text-primary));
    font-family: 'Kalameh', sans-serif;
    margin: 0 0 8px;
    text-align: center;
}

.about-section-lead {
    text-align: center;
    color: var(--text-secondary);
    font-family: 'Kalameh', sans-serif;
    line-height: 1.8;
    margin: 0 0 28px;
    max-width: 640px;
    margin-inline: auto;
}

.education-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 28px;
}

.education-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 4px 16px;
    text-align: center;
    box-shadow: none;
    border-bottom: 1px solid rgba(218, 178, 93, 0.16);
    animation: about-fade-up 0.6s ease-out both;
}

.education-card:nth-child(1) { animation-delay: 0.45s; }
.education-card:nth-child(2) { animation-delay: 0.6s; }
.education-card:nth-child(3) { animation-delay: 0.75s; }

.education-card:hover {
    transform: none;
    box-shadow: none;
}

.education-card__image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    margin-bottom: 10px;
    background: transparent;
    filter: none;
}

/* White marks on the doctorate logo stay readable on cream; no brightness flatten. */
[data-theme="light"] .education-card--doctorate .education-card__image {
    filter: drop-shadow(0 0 0.55px rgba(48, 38, 22, 0.42));
}

[data-theme="light"] .about-hero__frame,
[data-theme="light"] .resume-intro__photo {
    background:
        radial-gradient(ellipse at 40% 20%, rgba(201, 162, 55, 0.20), transparent 60%),
        #e8dfcf;
    box-shadow: 0 12px 28px rgba(55, 38, 12, 0.12);
    border-color: rgba(160, 120, 42, 0.42);
}

[data-theme="light"] .about-hero__frame::after,
[data-theme="light"] .resume-intro__photo::after {
    background: linear-gradient(to top, rgba(72, 52, 20, 0.18), transparent);
}

[data-theme="light"] .education-card {
    border-bottom-color: rgba(196, 157, 74, 0.22);
}

.education-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    font-family: 'Kalameh', sans-serif;
}

.education-card__desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-family: 'Kalameh', sans-serif;
}

/* ——— Resume: editorial luxury CV ——— */

@keyframes resume-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.resume-page {
    --resume-gold: var(--primary-color, #dab25d);
    --resume-ink: #061618;
    /* Fallback rail height until motion.js measures .resume-rail (padding + links + border). */
    --about-subnav-offset: 56px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 8px 56px;
    overflow-x: clip;
    animation: none;
    background:
        radial-gradient(ellipse 85% 45% at 75% 8%, rgba(218, 178, 93, 0.09), transparent 55%),
        radial-gradient(ellipse 55% 35% at 8% 60%, rgba(218, 178, 93, 0.04), transparent 50%),
        transparent;
}

[data-theme="light"] .resume-page {
    background:
        radial-gradient(ellipse 85% 45% at 75% 8%, rgba(201, 162, 55, 0.18), transparent 55%),
        radial-gradient(ellipse 55% 35% at 8% 60%, rgba(160, 120, 42, 0.09), transparent 50%),
        transparent;
}

/* Professional resume intro — photo + summary (disc #biography parity) */
.resume-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    width: 100%;
    margin: 0 0 28px;
    padding: clamp(18px, 3vw, 32px);
    box-sizing: border-box;
    min-width: 0;
    background: var(--glass-bg, rgba(8, 40, 44, 0.35));
    border: 1px solid var(--glass-border, rgba(218, 178, 93, 0.28));
    border-radius: 22px;
    box-shadow: var(--glass-shadow, 0 14px 36px rgba(0, 0, 0, 0.18));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: resume-fade-up 0.75s ease-out both;
}

.resume-intro__photo {
    position: relative;
    margin: 0 auto;
    width: min(100%, 320px);
    max-width: 100%;
    justify-self: center;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(218, 178, 93, 0.35);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    background:
        radial-gradient(ellipse at 40% 20%, rgba(218, 178, 93, 0.22), transparent 60%),
        rgba(0, 0, 0, 0.18);
    min-width: 0;
}

.resume-intro__photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
    pointer-events: none;
}

.resume-intro__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
    .resume-intro__photo:hover .resume-intro__img {
        transform: scale(1.04);
    }

    .resume-gallery__item:hover {
        border-color: rgba(218, 178, 93, 0.55);
    }

    .resume-gallery__item:hover img {
        transform: none;
    }
}

.resume-intro__body {
    min-width: 0;
    text-align: right;
}

.resume-intro__eyebrow {
    margin: 0 0 8px;
    color: var(--primary-color, #dab25d);
    font-family: 'Kalameh', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.resume-intro__name {
    margin: 0 0 14px;
    font-family: 'Kalameh', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    line-height: 1.35;
    color: var(--text-heading, var(--text-primary));
    overflow-wrap: anywhere;
}

.resume-intro__titles {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-intro__titles li {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(218, 178, 93, 0.28);
    background: rgba(218, 178, 93, 0.08);
    color: var(--text-secondary);
    font-family: 'Kalameh', sans-serif;
    font-size: 0.88rem;
}

.resume-intro__summary {
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-family: 'Kalameh', sans-serif;
    font-size: 1.02rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.resume-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resume-bio__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 22px;
    align-items: center;
}

.resume-bio__aside {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(218, 178, 93, 0.25);
    aspect-ratio: 3 / 4;
    max-width: 280px;
    justify-self: center;
    width: 100%;
}

.resume-bio__aside img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.resume-gallery {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.resume-gallery__lead {
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-family: 'Kalameh', sans-serif;
    line-height: 1.8;
}

.resume-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 16px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.resume-gallery__item {
    position: relative;
    margin: 0;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1;
    min-height: 140px;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(218, 178, 93, 0.3);
    background:
        linear-gradient(180deg, rgba(218, 178, 93, 0.08), transparent 42%),
        rgba(6, 22, 24, 0.32);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.resume-gallery__item::after {
    content: none;
}

.resume-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

[data-theme="light"] .resume-gallery__item {
    background:
        linear-gradient(180deg, rgba(201, 162, 55, 0.14), transparent 42%),
        rgba(250, 244, 232, 0.82);
    border-color: rgba(160, 120, 42, 0.40);
    box-shadow:
        0 10px 24px rgba(55, 38, 12, 0.10),
        inset 0 1px 0 rgba(255, 250, 240, 0.70);
}

@media (max-width: 900px) {
    .resume-intro {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        justify-items: center;
    }

    .resume-intro__body {
        text-align: center;
    }

    .resume-intro__titles,
    .resume-intro__actions {
        justify-content: center;
    }

    .resume-intro__photo {
        max-width: min(280px, 72vw);
    }

    .resume-bio__layout {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .resume-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .resume-intro__photo {
        max-width: min(220px, 68vw);
    }

    .resume-intro__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .resume-intro__actions .btn-gold,
    .resume-intro__actions .btn-ghost {
        width: 100%;
        justify-content: center;
        min-width: 0;
    }

    .resume-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .resume-intro__photo {
        max-width: min(180px, 64vw);
    }

    .resume-intro__titles li {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

.resume-rail {
    position: sticky;
    top: var(--site-header-offset, 80px);
    z-index: 20;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0 0 8px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--resume-ink) 72%, transparent);
    border: 1px solid rgba(218, 178, 93, 0.22);
    border-radius: 14px;
    animation: resume-fade-up 0.7s ease-out 0.28s both;
}

[data-theme="light"] .resume-rail {
    background: color-mix(in srgb, #faf4e8 90%, transparent);
    border-color: rgba(160, 120, 42, 0.36);
    box-shadow: 0 6px 18px rgba(55, 38, 12, 0.08);
}

.resume-rail__list {
    list-style: none;
    margin: 0 auto;
    padding: 10px 16px;
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.resume-rail__link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 0;
    font-family: 'Kalameh', sans-serif;
    font-size: 0.88rem;
    color: rgba(245, 236, 216, 0.88);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

[data-theme="light"] .resume-rail__link {
    color: var(--text-secondary, #3a3329);
}

.resume-rail__link:hover,
.resume-rail__link:focus-visible {
    color: var(--resume-gold);
    border-bottom-color: rgba(218, 178, 93, 0.7);
    outline: none;
}

.resume-body {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 16px 0;
}

.resume-section {
    margin-bottom: 52px;
    animation: resume-fade-up 0.75s ease-out both;
}

/*
 * Hash ids live on h2 titles (about-education, about-experience, …).
 * html already uses scroll-padding-top = --site-header-offset;
 * add the sticky resume rail + a small gap so headings clear both.
 */
.resume-page [id]:not(#about),
.resume-section__title {
    scroll-margin-top: calc(var(--about-subnav-offset, 56px) + 8px);
}

.resume-section:nth-of-type(1) { animation-delay: 0.2s; }
.resume-section:nth-of-type(2) { animation-delay: 0.32s; }
.resume-section:nth-of-type(3) { animation-delay: 0.4s; }
.resume-section:nth-of-type(4) { animation-delay: 0.48s; }
.resume-section:nth-of-type(5) { animation-delay: 0.56s; }
.resume-section:nth-of-type(6) { animation-delay: 0.64s; }

.resume-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(218, 178, 93, 0.28);
}

.resume-section__title {
    margin: 0;
    font-family: 'Kalameh', sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 700;
    color: var(--text-heading, var(--text-primary));
    text-align: right;
}

.resume-section__meta {
    margin: 0;
    font-family: 'Kalameh', sans-serif;
    font-size: 0.85rem;
    color: var(--resume-gold);
    white-space: nowrap;
}

.resume-bio {
    position: relative;
    padding: 0;
    border: 1px solid rgba(218, 178, 93, 0.28);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(218, 178, 93, 0.08), transparent 55%),
        var(--glass-bg, rgba(8, 40, 44, 0.35));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow, 0 10px 28px rgba(0, 0, 0, 0.18));
    overflow: hidden;
}

.resume-bio__text {
    position: relative;
    padding: 28px 28px 28px 32px;
    min-width: 0;
}

.resume-bio__mark {
    position: absolute;
    inset-inline-start: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--resume-gold), rgba(218, 178, 93, 0.15));
}

.resume-bio .resume-section__title {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--resume-gold);
}

.resume-bio__quote {
    margin: 0;
    font-family: 'Kalameh', sans-serif;
    font-size: 1.08rem;
    line-height: 2.05;
    color: var(--text-secondary);
    text-align: justify;
}

/* Timeline — grouped by organization */
.resume-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.resume-timeline::before {
    content: "";
    position: absolute;
    inset-inline-start: 9px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--resume-gold), rgba(218, 178, 93, 0.12));
}

.resume-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.resume-timeline__node {
    width: 11px;
    height: 11px;
    margin-top: 10px;
    margin-inline-start: 4px;
    border-radius: 50%;
    background: var(--resume-ink);
    border: 2px solid var(--resume-gold);
    box-shadow: 0 0 0 4px rgba(218, 178, 93, 0.12);
    z-index: 1;
}

[data-theme="light"] .resume-timeline__node {
    background: #f3ece0;
}

[data-theme="light"] .resume-intro {
    background: rgba(250, 244, 232, 0.92);
    border-color: rgba(160, 120, 42, 0.36);
}

[data-theme="light"] .about-unified__legal a {
    color: var(--gold-ink, #7a5618);
}

.resume-timeline__card {
    padding: 4px 4px 18px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(218, 178, 93, 0.14);
    background: transparent;
    transition: transform 0.3s ease;
}

.resume-timeline__item:last-child .resume-timeline__card {
    border-bottom: none;
    padding-bottom: 4px;
}

.resume-timeline__card:hover {
    transform: translateX(-3px);
}

html[dir="ltr"] .resume-timeline__card:hover {
    transform: translateX(3px);
}

.resume-timeline__org {
    margin: 0 0 10px;
    font-family: 'Kalameh', sans-serif;
    font-size: 1.14rem;
    font-weight: 700;
    color: var(--resume-gold);
}

.resume-timeline__roles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.resume-timeline__roles li {
    position: relative;
    padding-inline-start: 14px;
    margin-bottom: 8px;
    font-family: 'Kalameh', sans-serif;
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.resume-timeline__roles li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.85em;
    width: 5px;
    height: 1px;
    background: var(--resume-gold);
}

.resume-timeline__roles li:last-child {
    margin-bottom: 0;
}

/* Teaching / compact rows */
.resume-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.resume-row {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 16px 24px;
    padding: 16px 8px;
    border-bottom: 1px solid rgba(218, 178, 93, 0.16);
    font-family: 'Kalameh', sans-serif;
}

.resume-row:last-child {
    border-bottom: none;
}

.resume-row__org {
    color: var(--resume-gold);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.7;
}

.resume-row__role {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.85;
}

/* Research featured blocks */
.resume-research {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.resume-research__item {
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(218, 178, 93, 0.22);
    background:
        linear-gradient(120deg, rgba(218, 178, 93, 0.07), transparent 50%),
        var(--glass-bg, rgba(8, 40, 44, 0.32));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.resume-research__item:first-child {
    border-color: rgba(218, 178, 93, 0.4);
}

.resume-research__title {
    margin: 0 0 10px;
    font-family: 'Kalameh', sans-serif;
    font-size: 1.15rem;
    color: var(--resume-gold);
}

.resume-research__body {
    margin: 0;
    font-family: 'Kalameh', sans-serif;
    font-size: 0.98rem;
    line-height: 1.95;
    color: var(--text-primary);
    text-align: justify;
}

/* Articles — editorial two-column */
.resume-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 36px;
}

.resume-articles__heading {
    margin: 0 0 14px;
    font-family: 'Kalameh', sans-serif;
    font-size: 1.05rem;
    color: var(--resume-gold);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(218, 178, 93, 0.22);
}

.resume-articles__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: resume-article;
}

.resume-articles__list li {
    counter-increment: resume-article;
    position: relative;
    padding: 0 0 14px 0;
    padding-inline-start: 2.1rem;
    margin-bottom: 4px;
    font-family: 'Kalameh', sans-serif;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-primary);
    border-bottom: 1px dashed rgba(218, 178, 93, 0.14);
}

.resume-articles__list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resume-articles__list li::before {
    content: counter(resume-article, decimal);
    position: absolute;
    inset-inline-start: 0;
    top: 0.15em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--resume-gold);
    font-variant-numeric: tabular-nums;
}

/* Certificates registry */
.resume-certs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid rgba(218, 178, 93, 0.2);
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg, rgba(8, 40, 44, 0.28));
}

.resume-certs__item {
    display: grid;
    grid-template-columns: minmax(160px, 260px) 1fr;
    gap: 12px 20px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(218, 178, 93, 0.12);
    font-family: 'Kalameh', sans-serif;
}

.resume-certs__item:nth-child(even) {
    background: rgba(218, 178, 93, 0.04);
}

.resume-certs__item:last-child {
    border-bottom: none;
}

.resume-certs__org {
    color: var(--resume-gold);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.7;
}

.resume-certs__role {
    color: var(--text-primary);
    font-size: 0.94rem;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .resume-articles {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .resume-body {
        padding: 28px 12px 0;
    }

    .resume-section {
        margin-bottom: 40px;
    }

    .resume-section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .resume-bio__text {
        padding: 22px 18px 22px 22px;
    }

    .resume-intro__actions {
        width: 100%;
        justify-content: center;
    }

    .resume-intro__actions .btn-gold,
    .resume-intro__actions .btn-ghost {
        flex: 1 1 auto;
        text-align: center;
    }

    .resume-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 4px;
    }

    .resume-certs__item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 16px;
    }

    .resume-timeline::before {
        inset-inline-start: 7px;
    }

    .resume-timeline__item {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .resume-page,
    .resume-intro,
    .resume-intro__img,
    .resume-rail,
    .resume-section,
    .resume-gallery__item img,
    .resume-timeline__card,
    .resume-timeline__card:hover {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.home-bio-teaser {
    margin-top: 40px;
    padding: 28px 24px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    align-items: center;
    animation: about-fade-up 0.7s ease-out both;
}

.home-bio-teaser__photo {
    width: 140px;
    height: 168px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.home-bio-teaser__title {
    margin: 0 0 8px;
    font-family: 'Kalameh', sans-serif;
    color: var(--text-heading, var(--text-primary));
    font-size: 1.35rem;
}

.home-bio-teaser__text {
    margin: 0 0 16px;
    color: var(--text-secondary);
    line-height: 1.85;
    font-family: 'Kalameh', sans-serif;
}

.home-bio-teaser__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 1024px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .about-hero__text { text-align: center; }
    .about-hero__body { text-align: justify; }
    .about-hero__actions { justify-content: center; }
    .about-hero__media { max-width: 260px; }
    .about-hero__photo { max-width: none; height: 100%; }
    .education-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .about-page { padding: 8px 4px 36px; }
    .about-page.about-unified.resume-page { padding-top: 0; }
    .about-hero__media {
        max-width: min(280px, 78vw);
    }
    .about-hero__photo {
        max-width: none;
        height: 100%;
        min-height: 0;
        max-height: none;
    }
    .about-hero__subtitle { font-size: 1.05rem; }
    .education-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .education-card__image { height: 100px; }
    .home-bio-teaser {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .home-bio-teaser__actions { justify-content: center; }
    .about-hero__actions { width: 100%; }
    .about-hero__actions .btn-gold,
    .about-hero__actions .btn-ghost { flex: 1 1 100%; min-width: 0; width: 100%; }
    .resume-section__head {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .resume-section__meta {
        white-space: normal;
    }
    .resume-rail__list {
        padding: 8px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page,
    .about-hero__media,
    .about-hero__text,
    .about-hero__photo:hover,
    .education-card {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ——— Unified about page tweaks ——— */

.about-unified__subtitle {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-family: 'Kalameh', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-unified__edu-lead {
    margin-bottom: 20px;
    text-align: right;
}

.about-unified__education .education-cards {
    margin-top: 4px;
}

.about-unified__legal {
    margin: 28px 0 0;
    text-align: center;
    font-family: 'Kalameh', sans-serif;
}

.about-unified__legal a {
    color: var(--primary-color, #dab25d);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(218, 178, 93, 0.35);
    padding-bottom: 2px;
}

.about-unified__legal a:hover {
    border-bottom-color: rgba(218, 178, 93, 0.7);
}

/*
 * Body already clears the sticky header via padding-top: --site-header-offset.
 * .site-main then adds another 12–32px, plus .resume-page 12px — a tall cream
 * gap under the logo notch. Tighten only this page; keep hash scroll-margin.
 */
.site-main:has(> .about-page.about-unified) {
    padding-top: 0;
}

.about-page.about-unified.resume-page {
    padding-top: 0;
}

.about-unified__hero.resume-intro {
    padding-block-start: 6px;
}

@media (max-width: 900px) {
    .about-unified__edu-lead,
    .about-unified__subtitle {
        text-align: center;
    }
}
