:root {
    --color-bg: #f4f5f7;
    --color-surface: #ffffff;
    --color-surface-muted: #f0f1f4;
    --color-text: #24212a;
    --color-text-secondary: #4f4a58;
    --color-text-muted: #77717f;
    --color-border: #e0dde4;
    --color-border-strong: #cec8d3;
    --color-accent: #725f8d;
    --color-accent-strong: #58466f;
    --color-accent-soft: #f0ebf4;
    --content-width: 1160px;
    --radius-sm: 0.7rem;
    --radius-md: 1rem;
    --radius-lg: 1.35rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.10);
}

html {
    scroll-behavior: smooth;
    background: var(--color-bg);
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: var(--color-accent-strong);
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    color: var(--color-text);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    font-weight: 760;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 720;
}

h3 {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

button, input, textarea, select {
    font: inherit;
}

.page-container {
    width: min(var(--content-width), calc(100% - 3rem));
    margin-inline: auto;
}

.hero-section {
    min-height: min(720px, calc(100vh - 4.5rem));
    padding-block: clamp(5rem, 11vw, 9rem);
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 6.5rem);
}

.hero-copy h1 {
    max-width: 900px;
    margin-bottom: 1.6rem;
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--color-accent-strong);
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-lead,
.page-intro {
    max-width: 760px;
    color: var(--color-text-secondary);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.hero-lead {
    margin-bottom: 2rem;
}

.hero-panel,
.surface-card,
.feature-card,
.project-card,
.admin-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.hero-panel {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
}

.panel-label {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.focus-list li {
    padding: 0.85rem 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-weight: 600;
}

.focus-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.focus-list li:last-child {
    padding-bottom: 0;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    min-height: 2.8rem;
    padding: 0.7rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1;
    font-weight: 700;
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.button-primary {
    color: #fff;
    background: var(--color-accent-strong);
    border-color: var(--color-accent-strong);
}

.button-primary:hover {
    color: #fff;
    background: #49385f;
    border-color: #49385f;
}

.button-secondary {
    color: var(--color-text);
    background: var(--color-surface);
    border-color: var(--color-border-strong);
}

.button-secondary:hover {
    color: var(--color-text);
    background: var(--color-surface-muted);
}

.section {
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section-heading {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: 3rem;
    align-items: end;
}

.section-heading h2 {
    max-width: 700px;
    margin-bottom: 0;
}

.section-heading > p {
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    min-height: 250px;
    padding: 1.6rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    margin-top: auto;
    margin-bottom: 0.75rem;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

.card-number,
.project-index {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.callout-panel {
    padding: clamp(1.75rem, 5vw, 3rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #f0ebf4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
}

.callout-panel h2 {
    margin-bottom: 1rem;
}

.callout-panel p:not(.eyebrow) {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

.text-link {
    flex: 0 0 auto;
    text-decoration: none;
    font-weight: 750;
}

.page-header {
    padding-top: clamp(5rem, 10vw, 8rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-header h1 {
    max-width: 900px;
    margin-bottom: 1.4rem;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.page-intro {
    margin-bottom: 0;
}

.resume-layout {
    padding-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.72fr);
    gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
}

.resume-main,
.resume-sidebar,
.expertise-stack {
    display: grid;
    gap: 2.5rem;
}

.resume-section {
    display: grid;
    gap: 1.1rem;
}

.resume-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.8rem;
}

.resume-section-heading h2 {
    margin-bottom: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.resume-section-heading span {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.surface-card {
    border-radius: var(--radius-md);
}

.prose-card {
    padding: 1.5rem;
}

.prose-card p:last-child {
    margin-bottom: 0;
}

.timeline {
    display: grid;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 2.25rem;
}

.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 12px;
    bottom: 0;
    width: 1px;
    background: var(--color-border-strong);
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 0.36rem;
    border-radius: 50%;
    background: var(--color-accent-strong);
    box-shadow: 0 0 0 5px var(--color-bg);
}

.timeline-meta {
    margin-bottom: 0.45rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.timeline-content h3 {
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--color-text-secondary);
}

.clean-list {
    margin-bottom: 0;
    padding-left: 1.15rem;
    color: var(--color-text-secondary);
}

.clean-list li + li {
    margin-top: 0.45rem;
}

.education-card {
    padding: 1.35rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.education-card h3 {
    margin-bottom: 0.3rem;
}

.education-card p,
.education-card > span {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.resume-sidebar {
    position: sticky;
    top: 6rem;
    gap: 1.1rem;
}

.expertise-stack {
    gap: 1rem;
}

.expertise-group {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.expertise-group h3 {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-list span {
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: var(--color-surface-muted);
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: 650;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.project-card {
    min-height: 350px;
    padding: 1.6rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.project-card-topline {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.project-type {
    color: var(--color-accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.project-card p {
    color: var(--color-text-secondary);
}

.project-card .tag-list {
    margin-top: 0.75rem;
}

.project-link {
    margin-top: auto;
    padding-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
}

.admin-header .button {
    flex: 0 0 auto;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-card {
    min-height: 280px;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.admin-card-icon {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 2.5rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    background: var(--color-accent-soft);
    color: var(--color-accent-strong);
    font-size: 0.8rem;
    font-weight: 850;
}

.admin-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.admin-card p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.admin-card > span {
    margin-top: auto;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-primary {
    --bs-btn-bg: var(--color-accent-strong);
    --bs-btn-border-color: var(--color-accent-strong);
    --bs-btn-hover-bg: #49385f;
    --bs-btn-hover-border-color: #49385f;
    --bs-btn-active-bg: #3f3152;
    --bs-btn-active-border-color: #3f3152;
}

.form-control,
.form-select {
    border-color: var(--color-border-strong);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(114, 95, 141, 0.16);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #2d8a57;
}

.invalid {
    outline: 1px solid #c73d46;
}

.validation-message,
.text-danger {
    color: #b82935 !important;
}

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    background: #b32121;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: var(--color-border-strong);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 900px) {
    .hero-section,
    .resume-layout,
    .section-heading {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-panel {
        max-width: 620px;
    }

    .feature-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .admin-card {
        min-height: auto;
    }

    .resume-sidebar {
        position: static;
    }

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

@media (max-width: 700px) {
    .page-container {
        width: min(var(--content-width), calc(100% - 2rem));
    }

    .hero-section {
        padding-block: 4.5rem 3.5rem;
        gap: 2.5rem;
    }

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

    .callout-panel,
    .education-card,
    .timeline-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .timeline-meta {
        display: flex;
        gap: 0.15rem;
    }

    .section {
        padding-block: 3.5rem;
    }
}

/* Database-backed profile additions */
.hero-identity {
    margin-bottom: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.8rem;
}

.hero-identity strong {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 800;
}

.hero-identity span {
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.hero-public-details {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.hero-public-details a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 650;
}

.hero-public-details a:hover {
    color: var(--color-accent-strong);
}

.public-empty-state {
    color: var(--color-text-muted);
}

.public-empty-state p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .hero-public-details {
        display: grid;
        gap: 0.35rem;
    }
}

/* Database-backed education and expertise additions */
.education-list {
    display: grid;
    gap: 0.8rem;
}

.education-card {
    align-items: flex-start;
}

.education-card-main {
    min-width: 0;
}

.education-card-institution {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.education-card-field {
    margin: 0.25rem 0 0;
    color: var(--color-text-secondary) !important;
    font-size: 0.9rem !important;
}

.education-card-description {
    max-width: 700px;
    margin: 0.8rem 0 0 !important;
    color: var(--color-text-secondary) !important;
    font-size: 0.86rem !important;
    line-height: 1.6;
}

.education-card-date {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

.expertise-description {
    margin: -0.25rem 0 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.public-empty-sidebar {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-border);
}

.public-empty-sidebar p {
    margin: 0;
    font-size: 0.82rem;
}

@media (max-width: 700px) {
    .education-card-date {
        text-align: left;
    }
}

/* Portfolio projects and case studies */
.portfolio-section {
    padding-top: 1rem;
}

.project-card .project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-accent-strong);
    text-decoration: none;
    font-weight: 750;
}

.project-card .project-link:hover {
    color: var(--color-accent);
}

.featured-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.featured-project-card {
    min-height: 330px;
}

.featured-project-card .project-card-topline {
    margin-bottom: 2.4rem;
}

.featured-work-footer {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.case-study-hero {
    padding-top: clamp(4.5rem, 10vw, 8rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.case-study-back {
    display: inline-flex;
    margin-bottom: 3rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.case-study-back:hover {
    color: var(--color-accent-strong);
}

.case-study-hero h1 {
    max-width: 980px;
    margin-bottom: 1.4rem;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.case-study-summary {
    max-width: 820px;
    margin-bottom: 0;
    color: var(--color-text-secondary);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    line-height: 1.75;
}

.case-study-tags {
    margin-top: 1.75rem;
}

.case-study-links {
    margin-top: 2rem;
}

.case-study-body {
    border-top: 1px solid var(--color-border);
}

.case-study-section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.7fr);
    gap: clamp(2rem, 7vw, 6rem);
    border-bottom: 1px solid var(--color-border);
}

.case-study-section-label {
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 800;
}

.case-study-section-label span {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.case-study-prose {
    max-width: 780px;
}

.case-study-prose p {
    margin-bottom: 0;
    color: var(--color-text-secondary);
    font-size: 1.04rem;
    line-height: 1.85;
    white-space: pre-line;
}

.case-study-outcome .case-study-prose {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.case-study-footer {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.case-study-not-found .button-row {
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .featured-project-grid {
        grid-template-columns: 1fr;
    }

    .featured-project-card {
        min-height: auto;
    }

    .case-study-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Portfolio media */
.project-card-media {
    height: 190px;
    margin: -1.6rem -1.6rem 1.5rem;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--color-surface-muted);
}

.project-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.project-card-media:hover img {
    transform: scale(1.025);
}

.case-study-hero-media {
    margin-top: 2.5rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface-muted);
    box-shadow: var(--shadow-sm);
}

.case-study-hero-media img {
    width: 100%;
    max-height: 620px;
    display: block;
    object-fit: cover;
}

@media (max-width: 700px) {
    .project-card-media {
        height: 170px;
    }

    .case-study-hero-media {
        margin-top: 2rem;
        border-radius: var(--radius-md);
    }
}

/* ======================================================================
   Public identity and typography polish
   ====================================================================== */

:root {
    --color-accent-faint: #f8f5fa;
    --shadow-card-hover: 0 14px 34px rgba(48, 38, 59, 0.10);
}

body {
    font-size: 15.5px;
    line-height: 1.62;
}

h1,
h2,
h3 {
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.45rem);
    font-weight: 680;
}

h2 {
    font-size: clamp(1.4rem, 2.3vw, 1.95rem);
    font-weight: 670;
}

h3 {
    font-size: 1.06rem;
    font-weight: 680;
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.11em;
}

.formatted-text p {
    margin: 0 0 0.9rem;
}

.formatted-text p:last-child {
    margin-bottom: 0;
}

.hero-section {
    min-height: auto;
    padding-block: clamp(3.75rem, 7vw, 5.75rem);
    gap: clamp(2.5rem, 6vw, 5rem);
}

.hero-copy h1 {
    max-width: 760px;
    margin-bottom: 1.15rem;
    font-size: clamp(2.25rem, 4.4vw, 3.7rem);
    line-height: 1.08;
}

.hero-lead {
    max-width: 720px;
    margin-bottom: 1.75rem;
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.72;
}

.hero-lead p {
    margin-bottom: 0.75rem;
}

.hero-panel {
    padding: 1.45rem 1.5rem;
    border-top: 3px solid var(--color-accent);
    border-radius: 0.9rem;
}

.panel-label {
    margin-bottom: 1rem;
    color: var(--color-accent-strong);
    font-size: 0.7rem;
    letter-spacing: 0.09em;
}

.focus-list li {
    padding: 0.72rem 0;
    font-size: 0.9rem;
    font-weight: 580;
}

.hero-identity {
    margin-bottom: 0.9rem;
}

.hero-identity strong {
    font-size: 0.9rem;
    font-weight: 720;
}

.hero-public-details {
    margin-top: 1.1rem;
}

.button {
    min-height: 2.55rem;
    padding: 0.62rem 0.95rem;
    border-radius: 0.58rem;
    font-size: 0.86rem;
    font-weight: 680;
}

.section {
    padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.section-heading {
    margin-bottom: 1.6rem;
    gap: 2.5rem;
}

.section-heading h2 {
    max-width: 620px;
}

.section-heading > p {
    max-width: 560px;
    font-size: 0.92rem;
    line-height: 1.65;
}

.feature-grid {
    gap: 0.85rem;
}

.feature-card {
    min-height: 205px;
    padding: 1.35rem;
    border-radius: 0.85rem;
    border-top: 3px solid var(--color-accent-soft);
}

.feature-card h3 {
    margin-bottom: 0.55rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.58;
}

.card-number,
.project-index {
    color: var(--color-accent);
    font-size: 0.68rem;
}

.callout-panel {
    padding: clamp(1.5rem, 4vw, 2.35rem);
    border-color: #ded5e6;
    border-radius: 0.9rem;
    background: var(--color-accent-soft);
}

.callout-panel h2 {
    margin-bottom: 0.7rem;
}

.page-header {
    padding-top: clamp(3.2rem, 6vw, 4.75rem);
    padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.page-header h1 {
    max-width: 760px;
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 3.3vw, 2.75rem);
    font-weight: 680;
}

.page-intro {
    max-width: 700px;
    margin-bottom: 0;
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.65;
}

.resume-layout {
    padding-top: 0.5rem;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.resume-main,
.resume-sidebar {
    gap: 2rem;
}

.resume-section {
    gap: 0.9rem;
}

.resume-section-heading {
    padding-bottom: 0.65rem;
    border-bottom-color: var(--color-border-strong);
}

.resume-section-heading h2 {
    font-size: 1.05rem;
    font-weight: 700;
}

.prose-card {
    padding: 1.3rem 1.4rem;
}

.prose-text {
    color: var(--color-text-secondary);
    font-size: 0.94rem;
    line-height: 1.72;
}

.timeline-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.9rem;
    padding-bottom: 1.9rem;
}

.timeline-item:not(:last-child)::before {
    left: 4px;
}

.timeline-marker {
    width: 9px;
    height: 9px;
    margin-top: 0.4rem;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-bg);
}

.timeline-meta {
    margin-bottom: 0.35rem;
    font-size: 0.76rem;
    font-weight: 620;
}

.timeline-content h3 {
    margin-bottom: 0.55rem;
}

.timeline-summary {
    margin-bottom: 0.8rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.68;
}

.clean-list {
    font-size: 0.88rem;
    line-height: 1.62;
}

.education-list {
    gap: 0.7rem;
}

.education-card {
    padding: 1.2rem 1.3rem;
    border-radius: 0.8rem;
}

.education-card-institution {
    color: var(--color-accent-strong);
}

.education-card-description {
    max-width: 700px;
    margin-top: 0.7rem;
    color: var(--color-text-secondary);
    font-size: 0.84rem;
    line-height: 1.6;
}

.education-card-description p {
    margin-bottom: 0.65rem;
}

.expertise-stack {
    gap: 0.85rem;
}

.expertise-group {
    padding-bottom: 0.9rem;
}

.expertise-group h3 {
    margin-bottom: 0.65rem;
    color: var(--color-accent-strong);
    font-size: 0.91rem;
}

.expertise-description {
    margin: -0.1rem 0 0.65rem;
    color: var(--color-text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.expertise-description p {
    margin-bottom: 0.5rem;
}

.tag-list {
    gap: 0.38rem;
}

.tag-list span {
    padding: 0.34rem 0.56rem;
    background: var(--color-accent-soft);
    color: var(--color-accent-strong);
    font-size: 0.74rem;
    font-weight: 620;
}

.project-grid,
.featured-project-grid {
    gap: 0.85rem;
}

.project-card {
    min-height: 315px;
    padding: 1.35rem;
    border-radius: 0.85rem;
}

.project-card-clickable {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project-card-clickable:hover,
.project-card-clickable:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: #b9adc4;
    box-shadow: var(--shadow-card-hover);
}

.project-card-clickable:focus-visible {
    outline: 3px solid rgba(114, 95, 141, 0.22);
    outline-offset: 3px;
}

.project-card-topline {
    margin-bottom: 2rem;
}

.project-type {
    color: var(--color-accent);
    font-size: 0.68rem;
    letter-spacing: 0.075em;
}

.project-card h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.project-card-summary {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.62;
}

.project-card-summary p {
    margin-bottom: 0.65rem;
}

.project-card .tag-list {
    margin-top: 0.65rem;
}

.project-card .project-link {
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--color-accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.featured-project-card {
    min-height: 300px;
}

.featured-project-card .project-card-topline {
    margin-bottom: 1.8rem;
}

.project-card-media {
    height: 175px;
    margin: -1.35rem -1.35rem 1.25rem;
    border-radius: 0.85rem 0.85rem 0 0;
}

.project-card-clickable:hover .project-card-media img,
.project-card-clickable:focus-visible .project-card-media img {
    transform: scale(1.025);
}

.case-study-hero {
    padding-top: clamp(3.25rem, 6vw, 4.75rem);
    padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.case-study-back {
    margin-bottom: 1.8rem;
    font-size: 0.78rem;
}

.case-study-hero h1 {
    max-width: 900px;
    margin-bottom: 0.9rem;
    font-size: clamp(2.15rem, 4vw, 3.55rem);
    font-weight: 680;
}

.case-study-summary {
    max-width: 780px;
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.72;
}

.case-study-summary p {
    margin-bottom: 0.75rem;
}

.case-study-tags {
    margin-top: 1.35rem;
}

.case-study-links {
    margin-top: 1.45rem;
}

.case-study-hero-media {
    margin-top: 2rem;
    border-radius: 0.9rem;
}

.case-study-section {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1.7fr);
    gap: clamp(1.75rem, 5vw, 4.5rem);
}

.case-study-section-label {
    color: var(--color-accent-strong);
    font-size: 0.86rem;
}

.case-study-section-label span {
    margin-bottom: 0.45rem;
    color: var(--color-accent);
    font-size: 0.66rem;
}

.case-study-prose {
    max-width: 760px;
    color: var(--color-text-secondary);
    font-size: 0.96rem;
    line-height: 1.78;
}

.case-study-prose p {
    margin-bottom: 0.95rem;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
}

.case-study-outcome-panel {
    padding: 1.35rem 1.45rem;
    border: 1px solid #ded5e6;
    border-left: 3px solid var(--color-accent);
    border-radius: 0.8rem;
    background: var(--color-accent-faint);
}

.case-study-outcome .case-study-prose {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.text-link {
    color: var(--color-accent-strong);
    font-weight: 680;
}

@media (max-width: 900px) {
    .hero-section {
        padding-block: 3.5rem;
    }

    .section-heading {
        gap: 1rem;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
    }

    .hero-section {
        padding-block: 3rem 2.75rem;
        gap: 2rem;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .page-header {
        padding-top: 2.75rem;
        padding-bottom: 1.35rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section {
        padding-block: 2.75rem;
    }

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

    .project-card-media {
        height: 165px;
    }

    .case-study-hero h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }
}

/* ======================================================================
   Identity hierarchy refinement
   ====================================================================== */

/* Keep headings professional and compact rather than landing-page sized. */
h1 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 690;
}

h2 {
    font-size: clamp(1.3rem, 2vw, 1.72rem);
}

.hero-section {
    padding-block: clamp(2.9rem, 5vw, 4.1rem);
    gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy h1 {
    max-width: 720px;
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 3.25vw, 2.7rem);
    line-height: 1.1;
}

.hero-identity {
    margin-bottom: 0.8rem;
    display: grid;
    gap: 0.16rem;
}

.hero-identity strong {
    color: var(--color-text);
    font-size: clamp(1.22rem, 2vw, 1.55rem);
    font-weight: 760;
    letter-spacing: -0.025em;
}

.hero-identity span {
    color: var(--color-accent-strong);
    font-size: 0.94rem;
    font-weight: 620;
}

.hero-lead {
    max-width: 700px;
}

/* What I do: compact cards without decorative numbering. */
.feature-card-compact {
    min-height: 0;
    padding: 1.05rem 1.15rem;
    border-top: 0;
    border-left: 3px solid var(--color-accent);
}

.feature-card-compact h3 {
    margin: 0 0 0.38rem;
    font-size: 0.98rem;
    font-weight: 720;
}

.feature-card-compact p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.52;
}

/* Page headers should identify the page without becoming the page. */
.page-header {
    padding-top: clamp(2rem, 3.5vw, 2.8rem);
    padding-bottom: clamp(0.9rem, 1.8vw, 1.35rem);
}

.page-header h1 {
    max-width: 720px;
    margin-bottom: 0.4rem;
    font-size: clamp(1.55rem, 2.25vw, 1.95rem);
    font-weight: 720;
}

.page-intro {
    max-width: 680px;
    font-size: 0.96rem;
}

/* Resume uses cards consistently while retaining the timeline rail. */
.timeline {
    gap: 0;
}

.timeline-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.85rem;
    padding-bottom: 1rem;
}

.timeline-item:not(:last-child)::before {
    bottom: -0.05rem;
}

.timeline-marker {
    margin-top: 1.25rem;
}

.timeline-card {
    padding: 1.15rem 1.25rem;
    border-radius: 0.8rem;
}

.timeline-meta {
    margin-bottom: 0.42rem;
}

.timeline-content h3 {
    margin-bottom: 0.55rem;
}

.expertise-stack {
    gap: 0.7rem;
}

.expertise-group {
    padding-bottom: 0;
    border-bottom: 0;
}

.expertise-card {
    padding: 1rem 1.05rem;
    border-radius: 0.8rem;
}

.expertise-card h3 {
    margin-bottom: 0.6rem;
}

/* Case-study title is still prominent, but no longer banner-sized. */
.case-study-hero {
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-bottom: clamp(1.8rem, 3vw, 2.6rem);
}

.case-study-hero h1 {
    max-width: 860px;
    font-size: clamp(1.9rem, 3.1vw, 2.65rem);
}

@media (max-width: 700px) {
    .hero-section {
        padding-block: 2.5rem 2.3rem;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-identity strong {
        font-size: 1.25rem;
    }

    .page-header {
        padding-top: 1.8rem;
        padding-bottom: 0.85rem;
    }

    .page-header h1 {
        font-size: 1.55rem;
    }

    .feature-grid {
        gap: 0.7rem;
    }

    .timeline-card {
        padding: 1rem;
    }

    .timeline-marker {
        margin-top: 1.1rem;
    }

    .case-study-hero h1 {
        font-size: 2rem;
    }
}


/* ======================================================================
   Final accessibility and content polish
   ====================================================================== */

a,
button,
input,
textarea,
select {
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(114, 95, 141, 0.30);
}

.section-heading-copy {
    max-width: 560px;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.section-heading-copy p {
    margin-bottom: 0.65rem;
}

.feature-card-description {
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    line-height: 1.52;
}

.feature-card-description p {
    margin-bottom: 0.55rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .project-card-clickable:hover,
    .project-card-clickable:focus-visible,
    .button:hover {
        transform: none;
    }

    .project-card-clickable:hover .project-card-media img,
    .project-card-clickable:focus-visible .project-card-media img {
        transform: none;
    }
}


.hero-section-single {
    grid-template-columns: minmax(0, 1fr);
}

.hero-section-single .hero-copy {
    max-width: 820px;
}

/* Blazor FocusOnNavigate programmatically focuses the page H1 so screen readers
   announce navigation. Hide only that non-interactive heading outline; keyboard
   focus indicators on links, buttons, and form controls remain unchanged. */
h1:focus {
    outline: none;
    box-shadow: none;
}

/* ======================================================================
   Case study layout refinement
   ====================================================================== */

/* Keep the case-study introduction compact and bring the content closer to it. */
.case-study-hero {
    padding-bottom: clamp(1.35rem, 2.5vw, 2rem);
}

.case-study-hero-media {
    width: fit-content;
    max-width: 100%;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 0.9rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

/* Preserve the complete screenshot at its intrinsic aspect ratio.
   Large screenshots scale down to fit; smaller screenshots are not stretched. */
.case-study-hero-media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
}

/* A compact, consistent card stack for Problem / Approach /
   Implementation / Outcome. */
.case-study-body {
    padding-top: 1rem;
    display: grid;
    gap: 0.8rem;
    border-top: 0;
}

.case-study-section {
    padding: 1.25rem 1.35rem;
    display: grid;
    grid-template-columns: minmax(125px, 0.34fr) minmax(0, 1.66fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    border: 1px solid var(--color-border);
    border-radius: 0.85rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.case-study-section-label {
    min-width: 0;
    padding-top: 0.05rem;
    color: var(--color-accent-strong);
}

.case-study-section-label span {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--color-accent);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.09em;
}

.case-study-section-label h2 {
    margin: 0;
    color: var(--color-text);
    font-size: 0.96rem;
    font-weight: 720;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.case-study-prose {
    width: 100%;
    max-width: 820px;
    color: var(--color-text-secondary);
    font-size: 0.94rem;
    line-height: 1.7;
}

.case-study-prose p {
    margin: 0 0 0.75rem;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
}

.case-study-prose p:last-child {
    margin-bottom: 0;
}

/* Remove the old special Outcome treatment so all four sections match. */
.case-study-outcome,
.case-study-outcome-panel,
.case-study-outcome .case-study-prose {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.case-study-footer {
    padding-top: 1.35rem;
    padding-bottom: 2.5rem;
}

@media (max-width: 700px) {
    .case-study-hero-media {
        width: 100%;
        margin-top: 1.25rem;
        border-radius: 0.75rem;
    }

    .case-study-hero-media img {
        width: 100%;
    }

    .case-study-body {
        padding-top: 0.8rem;
        gap: 0.65rem;
    }

    .case-study-section {
        padding: 1.05rem;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        border-radius: 0.75rem;
    }

    .case-study-section-label {
        display: flex;
        align-items: baseline;
        gap: 0.55rem;
    }

    .case-study-section-label span {
        margin-bottom: 0;
    }

    .case-study-section-label h2 {
        font-size: 0.94rem;
    }

    .case-study-prose {
        font-size: 0.91rem;
        line-height: 1.66;
    }

    .case-study-footer {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
}

/* ======================================================================
   Case study story timeline refinement
   ====================================================================== */

.case-study-story-header {
    padding-top: clamp(1.6rem, 3vw, 2.4rem);
    padding-bottom: 1rem;
    border-top: 1px solid var(--color-border);
}

.case-study-story-header .eyebrow {
    margin-bottom: 0.55rem;
}

.case-study-story-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.68fr);
    gap: clamp(1.25rem, 4vw, 3.5rem);
    align-items: end;
}

.case-study-story-heading h2 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(1.55rem, 2.7vw, 2.15rem);
    color: var(--color-text);
}

.case-study-story-heading p {
    margin: 0;
    max-width: 500px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.case-study-body {
    position: relative;
    padding-top: 0.4rem;
    padding-left: 2.65rem;
    display: grid;
    gap: 0.85rem;
    border-top: 0;
}

.case-study-body::before {
    content: "";
    position: absolute;
    left: 0.72rem;
    top: 1.15rem;
    bottom: 1.15rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        var(--color-accent),
        #cfc3da 72%,
        var(--color-border)
    );
}

.case-study-section {
    position: relative;
    padding: 1.25rem 1.4rem;
    display: grid;
    grid-template-columns: minmax(135px, 0.36fr) minmax(0, 1.64fr);
    gap: clamp(1.25rem, 3vw, 2.4rem);
    align-items: start;
    border: 1px solid #ddd4e5;
    border-left: 3px solid var(--color-accent);
    border-radius: 0.85rem;
    background: linear-gradient(
        135deg,
        var(--color-accent-faint) 0%,
        #ffffff 42%,
        #ffffff 100%
    );
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 7px 18px rgba(48, 38, 59, 0.035);
}

.case-study-section::before {
    content: "";
    position: absolute;
    top: 1.45rem;
    left: -2.61rem;
    width: 0.82rem;
    height: 0.82rem;
    border: 3px solid var(--color-bg);
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(114, 95, 141, 0.25);
}

.case-study-section-label {
    min-width: 0;
    padding-top: 0.05rem;
}

.case-study-section-label h2 {
    margin: 0;
    color: var(--color-accent-strong);
    font-size: 1rem;
    font-weight: 730;
    line-height: 1.28;
    letter-spacing: -0.015em;
}

.case-study-prose {
    width: 100%;
    max-width: 840px;
    color: var(--color-text-secondary);
    font-size: 0.94rem;
    line-height: 1.68;
}

.case-study-prose p {
    margin: 0 0 0.72rem;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
}

.case-study-prose p:last-child {
    margin-bottom: 0;
}

.case-study-footer {
    padding-top: 1.15rem;
}

@media (max-width: 800px) {
    .case-study-story-heading {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .case-study-story-heading p {
        max-width: 650px;
    }

    .case-study-body {
        padding-left: 2.2rem;
    }

    .case-study-body::before {
        left: 0.55rem;
    }

    .case-study-section {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .case-study-section::before {
        left: -2.17rem;
    }
}

@media (max-width: 700px) {
    .case-study-story-header {
        padding-top: 1.35rem;
        padding-bottom: 0.8rem;
    }

    .case-study-story-heading h2 {
        font-size: 1.45rem;
    }

    .case-study-story-heading p {
        font-size: 0.86rem;
    }

    .case-study-body {
        padding-top: 0.25rem;
        padding-left: 1.85rem;
        gap: 0.7rem;
    }

    .case-study-body::before {
        left: 0.42rem;
        top: 0.95rem;
        bottom: 0.95rem;
    }

    .case-study-section {
        padding: 1rem 1.05rem;
        gap: 0.5rem;
        border-radius: 0.75rem;
    }

    .case-study-section::before {
        top: 1.2rem;
        left: -1.86rem;
        width: 0.72rem;
        height: 0.72rem;
    }

    .case-study-section-label h2 {
        font-size: 0.95rem;
    }

    .case-study-prose {
        font-size: 0.91rem;
        line-height: 1.64;
    }
}

/* ======================================================================
   Case study timeline connector alignment
   ====================================================================== */

/* Replace the single full-height timeline rule with per-step connectors.
   Each connector runs from the exact center of one marker to the center
   of the next, so there is no line before the first dot or after the last. */
.case-study-body {
    --case-study-marker-center-x: -2.20rem;
    --case-study-marker-center-y: 1.86rem;
    --case-study-connector-bottom: -2.71rem;
}

.case-study-body::before {
    display: none;
}

.case-study-section::before {
    z-index: 2;
}

/* Solid accent connector between adjacent timeline steps only. */
.case-study-section:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: var(--case-study-marker-center-x);
    top: var(--case-study-marker-center-y);
    bottom: var(--case-study-connector-bottom);
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--color-accent);
    pointer-events: none;
}

@media (max-width: 800px) {
    .case-study-body {
        --case-study-marker-center-x: -1.76rem;
        --case-study-marker-center-y: 1.86rem;
        --case-study-connector-bottom: -2.71rem;
    }
}

@media (max-width: 700px) {
    .case-study-body {
        --case-study-marker-center-x: -1.50rem;
        --case-study-marker-center-y: 1.56rem;
        --case-study-connector-bottom: -2.26rem;
    }
}


/* ======================================================================
   Project / experience cross-linking
   ====================================================================== */

.project-context {
    display: block;
    margin: -0.2rem 0 0.75rem;
    color: var(--color-accent-strong);
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.45;
}

.case-study-context {
    margin: -0.2rem 0 0.85rem;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.case-study-context strong {
    color: var(--color-accent-strong);
    font-weight: 700;
}

.timeline-projects {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #ded5e6;
    border-radius: 0.72rem;
    background: var(--color-accent-faint);
}

.timeline-projects-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--color-accent-strong);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-project-links {
    display: grid;
    gap: 0.45rem;
}

.timeline-project-links a {
    min-width: 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(114, 95, 141, 0.14);
    border-radius: 0.58rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 120ms ease, background-color 120ms ease;
}

.timeline-project-links a:hover {
    border-color: rgba(114, 95, 141, 0.34);
    background: #fff;
    color: var(--color-accent-strong);
}

.timeline-project-links a span {
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 680;
}

.timeline-project-links a small {
    flex: 0 0 auto;
    color: var(--color-accent-strong);
    font-size: 0.7rem;
    font-weight: 700;
}

@media (max-width: 600px) {
    .timeline-project-links a {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }
}
