/* Only elements introduced in v2. The visual system lives in /css/landing.css. */

/* The base stylesheet sets font-family on body, so override body for Georgian. */
html[lang="ka"] body {
    font-family: 'Noto Sans Georgian', system-ui, sans-serif;
}

html[lang="ka"] .nav-brand,
html[lang="ka"] .section-eyebrow,
html[lang="ka"] .card-tag {
    letter-spacing: 0.04em;
}

.nav-brand {
    color: var(--accent);
}

.content {
    width: 100%;
}

.content-header {
    margin-top: 48px;
}

.content .card {
    display: block;
}

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

.card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary);
}

.placeholder {
    margin-bottom: 16px;
    padding: 16px 18px;
    background: var(--bg-alt);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    font-size: 0.9rem;
}

.placeholder .section-title {
    margin-bottom: 12px;
}

.portrait-photo {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center 27%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 14px;
    row-gap: 8px;
}

.hero-experience {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.hero-experience-photo {
    display: none;
}

/* Profiles directory. Existing palette and typography come from landing.css. */
.role-hero {
    padding: 72px 16px 80px;
}

.role-hero .container, .role-section .container {
    width: 100%;
}

.role-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
}

.role-breadcrumb {
    display: inline-block;
    margin-bottom: 26px;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.role-hero-copy .hero-name {
    max-width: 780px;
    line-height: 1.12;
}

.role-lead {
    max-width: 680px;
    margin: 24px 0 32px;
    color: var(--text-muted, #64748b);
    font-size: clamp(1.08rem, 1.65vw, 1.36rem);
    line-height: 1.65;
}

.role-visual {
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: var(--radius-lg);
    background: #e9efff;
    box-shadow: var(--shadow-soft);
}

.role-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.role-mobile-visual {
    display: none;
}

.resume-preview-page {
    padding: 64px 16px 90px;
}

.resume-preview-page .container {
    width: 100%;
}

.resume-preview-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.resume-preview-heading .role-lead {
    margin-bottom: 12px;
}

.resume-download-disabled {
    opacity: .5;
    cursor: not-allowed;
}

.resume-preview-notice {
    max-width: 740px;
    margin: 4px 0 28px;
    color: #64748b;
}

.resume-paper {
    width: min(100%, 760px);
    min-height: 750px;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 72px);
    border: 1px solid rgba(148, 163, 184, .25);
    background: #fff;
    box-shadow: var(--shadow-soft);
    color: #334155;
    line-height: 1.7;
}

.resume-paper h2 {
    margin: 8px 0 24px;
    color: #0f172a;
}

.resume-paper-label {
    color: var(--accent);
    font-weight: 700;
}

.resume-paper-lead {
    font-size: 1.1rem;
}

.resume-paper-rule {
    height: 1px;
    margin: 32px 0;
    background: #dbe4f5;
}

.role-section {
    padding: 68px 16px;
}

.role-section-alt {
    background: var(--bg-alt);
}

.role-section-inner {
    display: grid;
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
    gap: clamp(24px, 6vw, 96px);
    align-items: start;
}

.role-section .section-title {
    max-width: 420px;
    margin: 0;
}

.role-section-text {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 1.03rem;
    line-height: 1.8;
}

.role-task-layout {
    min-width: 0;
}

.role-task-group {
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: var(--radius-md);
    background: #fff;
}

.role-task-group h3 {
    margin: 0 0 14px;
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.4;
}

.role-task-group ul {
    margin: 0;
    padding-left: 20px;
    color: #475569;
    line-height: 1.65;
}

.role-task-group li + li {
    margin-top: 8px;
}

.role-task-result {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: .9rem;
}

.role-task-layout-groups {
    display: grid;
    gap: 16px;
}

.role-task-layout-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.role-task-layout-steps {
    position: relative;
    display: grid;
    gap: 16px;
    padding-left: 32px;
    counter-reset: role-step;
}

.role-task-layout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 15px;
    width: 2px;
    background: #bad0ff;
}

.role-task-layout-steps .role-task-group {
    position: relative;
    counter-increment: role-step;
}

.role-task-layout-steps .role-task-group::before {
    content: counter(role-step);
    position: absolute;
    left: -32px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .role-task-layout-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .role-hero-grid { grid-template-columns: 1fr; }
    .role-visual { width: min(100%, 620px); }
}

@media (max-width: 640px) {
    .role-hero { padding: 40px 16px 52px; }
    .role-hero-grid { display: block; }
    .role-visual { display: none; }
    .role-breadcrumb { margin-bottom: 16px; }
    .role-mobile-visual {
        display: block;
        width: 100%;
        height: clamp(112px, 30vw, 150px);
        margin-top: 22px;
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, .28);
        border-radius: var(--radius-lg);
        background-color: #e9efff;
        box-shadow: var(--shadow-soft);
    }
    .role-mobile-visual img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .role-lead { margin: 22px 0 28px; }
    .role-section { padding: 48px 16px; }
    .role-section-inner { grid-template-columns: 1fr; gap: 14px; }
}

.roles-intro {
    padding: 64px 16px 46px;
}

.roles-intro .container,
.roles-list .container {
    width: 100%;
}

.roles-intro .hero-name {
    margin-bottom: 16px;
}

.roles-intro-text {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.roles-list {
    padding-top: 44px;
    padding-bottom: 76px;
    background: var(--bg-alt);
}

.roles-card-grid {
    align-items: stretch;
}

.roles-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 175px;
    background: var(--bg);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.roles-card:hover,
.roles-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.roles-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #334155;
}

.roles-card .text-muted {
    flex: 1;
    overflow-wrap: anywhere;
}

.roles-contact {
    padding: 56px 16px;
}

@media (max-width: 640px) {
    .roles-intro {
        padding: 42px 14px 34px;
    }

    .roles-intro-text {
        font-size: 0.98rem;
    }

    .roles-list {
        padding: 38px 14px 50px;
    }

    .roles-card {
        min-height: 0;
    }

    .roles-contact {
        padding: 42px 14px;
    }
}

.lang-item {
    display: block;
}

@media (max-width: 1100px) {
    .nav-menu {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero-inner:has(.portrait-photo) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        max-width: 700px;
        justify-items: start;
        align-items: start;
    }

    .hero-inner:has(.portrait-photo) .hero-main {
        display: contents;
    }

    .hero-inner:has(.portrait-photo) .hero-tag {
        grid-row: 1;
        max-width: 100%;
        border-radius: 18px;
        line-height: 1.35;
        white-space: normal;
        margin-bottom: 18px;
    }

    .hero-inner:has(.portrait-photo) .hero-identity {
        grid-row: 2;
        margin-bottom: 6px;
    }

    .hero-inner:has(.portrait-photo) .hero-title {
        grid-row: 3;
        margin-bottom: 22px;
    }

    .hero-inner:has(.portrait-photo) .hero-aside {
        grid-row: 4;
        width: min(100%, 320px);
        max-width: none;
        margin: 0 auto 24px;
        justify-self: center;
    }

    .hero-inner:has(.portrait-photo) .portrait-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 5 / 6;
        object-position: center 27%;
    }

    .hero-inner:has(.portrait-photo) .hero-text {
        grid-row: 5;
        max-width: 700px;
        margin-bottom: 20px;
    }

    .hero-inner:has(.portrait-photo) .hero-actions {
        grid-row: 6;
    }
}

.home-section-white {
    background: var(--bg-alt);
}

.home-section .container {
    width: 100%;
}

.home-grid-gap {
    margin-bottom: 18px;
}

.home-small-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.home-prose p + p {
    margin-top: 12px;
}

.home-text-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
}

.home-section-action {
    margin-top: 24px;
}

.home-skill-list {
    list-style: none;
}

.home-section .seo-intro {
    max-width: 800px;
}

.contacts {
    padding: 56px 16px;
}

@media (max-width: 640px) {
    .contacts {
        padding: 42px 14px;
    }
}

/* Home page layout, using the palette and typography from landing.css. */
.home-section .container {
    max-width: var(--maxw);
    margin: 0 auto;
}

.home-card-grid .card {
    display: flex;
    flex-direction: column;
    min-height: 170px;
}

.home-card-grid .card .text-muted {
    flex: 1;
}

.home-link-card {
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.home-link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

.home-feature-card {
    border-top: 3px solid var(--primary-soft);
}

.home-section .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #334155;
}

.home-result-card .card-tag {
    margin-bottom: 10px;
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.home-lead {
    max-width: 600px;
    margin-bottom: 22px;
    font-size: 1.03rem;
    line-height: 1.7;
}

.home-lab {
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    box-shadow: var(--shadow-card);
}

.home-lab .section-title {
    max-width: 400px;
}

.home-contact-aside {
    align-self: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-inner {
    position: relative;
}

.nav-toggle {
    display: none;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--primary);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .nav-menu.is-open {
        position: absolute;
        display: flex;
        flex-direction: column;
        gap: 0;
        top: 100%;
        left: 20px;
        right: 20px;
        z-index: 55;
        padding: 8px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--bg-alt);
        box-shadow: var(--shadow-soft);
    }

    .nav-menu.is-open a {
        padding: 10px 0;
    }
}

@media (max-width: 900px) {
    .home-split {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .hero:has(.portrait-photo) {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hero-inner:has(.portrait-photo) .hero-tag {
        font-size: 0.72rem;
        padding: 6px 10px;
    }

    .hero-inner:has(.portrait-photo) .hero-aside {
        width: min(80vw, 280px);
        position: relative;
        margin-bottom: 30px;
    }

    .hero-inner:has(.portrait-photo) .hero-experience-inline {
        display: none;
    }

    .hero-inner:has(.portrait-photo) .hero-experience-photo {
        display: inline-block;
        position: absolute;
        right: -12px;
        bottom: 14px;
        max-width: calc(100vw - 44px);
        white-space: normal;
        text-align: center;
        box-shadow: var(--shadow-soft);
    }

    .nav-inner {
        gap: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .nav-brand {
        font-size: 0.68rem;
    }

    .home-lab {
        padding: 20px;
    }
}

/* Role-specific project evidence: full-width rows below the section heading. */
.role-section-experience .role-section-inner { display: block; }
.role-section-experience .section-title { max-width: none; margin-bottom: 28px; }
.role-experience-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.role-project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(22px, 3vw, 48px);
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: var(--radius-md);
    background: #fff;
}
.role-project-card.role-project-no-functions,
.role-project-card.role-project-no-results { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.role-project-card.role-project-no-functions.role-project-no-results { grid-template-columns: minmax(0, 1fr); }
.role-project-intro { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.role-project-year { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #e5edff; color: #245ac5; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.role-project-card h3 { margin: 8px 0 12px; font-size: 1.22rem; line-height: 1.3; }
.role-project-card h3 a { color: #334155; text-decoration: none; }
.role-project-card h3 a:hover, .role-project-link:hover { color: #2563eb; }
.role-project-summary { margin: 0 0 14px; color: #334155; line-height: 1.6; }
.role-project-part { min-width: 0; padding-top: 35px; }
.role-project-part h4 { color: #64748b; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.role-project-part ul { margin: 0; padding-left: 19px; color: #475569; line-height: 1.55; }
.role-project-part li + li { margin-top: 7px; }
.role-project-link { margin-top: auto; padding-top: 18px; color: #2563eb; text-decoration: none; font-weight: 600; }
@media (max-width: 1100px) {
    .role-project-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .role-project-intro { grid-column: 1 / -1; }
    .role-project-part { padding-top: 0; }
}
@media (max-width: 680px) {
    .role-section-experience .section-title { margin-bottom: 20px; }
    .role-project-card,
    .role-project-card.role-project-no-functions,
    .role-project-card.role-project-no-results { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .role-project-intro { grid-column: auto; }
    .role-project-link { margin-top: 4px; padding-top: 10px; }
}

/* Reusable competencies and tools block. */
.role-section-capabilities .role-section-inner { display: block; }
.role-section-capabilities .section-title { max-width: none; margin-bottom: 28px; }
.role-capabilities-details summary { display: none; }
.role-capabilities-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.role-capability-group { min-width: 0; padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(148, 163, 184, .25); border-radius: var(--radius-md); background: #fff; }
.role-capability-group h3 { margin: 0 0 20px; color: #334155; font-size: 1.2rem; line-height: 1.4; }
.role-capability-group ul { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 0; margin: 0; list-style: none; }
.role-capability-group li { min-width: 0; padding: 10px 14px; border-radius: 12px; background: #f1f5fb; color: #334155; line-height: 1.4; }
.role-capability-name { display: block; font-weight: 600; }
.role-capability-description { display: block; margin-top: 5px; color: #475569; font-size: .9rem; }
.role-capability-projects { display: block; margin-top: 7px; font-size: .82rem; }
.role-capability-projects a { color: #2563eb; text-decoration: none; margin-right: 9px; }
.role-capability-projects a:hover { text-decoration: underline; }
@media (max-width: 850px) { .role-capabilities-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .role-section-capabilities .section-title { margin-bottom: 14px; }
    .role-capabilities-details summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 0;
        padding: 15px 18px;
        border: 1px solid rgba(148, 163, 184, .25);
        border-radius: var(--radius-md);
        background: #fff;
        color: #334155;
        cursor: pointer;
        font-weight: 600;
        list-style: none;
    }
    .role-capabilities-details summary::-webkit-details-marker { display: none; }
    .role-capabilities-toggle::before {
        content: '+';
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #e5edff;
        color: #245ac5;
        font-weight: 700;
        line-height: 1;
    }
    .role-capabilities-details[open] .role-capabilities-toggle::before { content: '−'; }
    .role-capabilities-details[open] summary { margin-bottom: 16px; }
    .role-capability-group ul { display: grid; grid-template-columns: minmax(0, 1fr); }
}

/* Cooperation formats: compact role-specific cards near the end of the page. */
.role-section-cooperation .role-section-inner { display: block; }
.role-section-cooperation .section-title { max-width: none; margin-bottom: 28px; }
.role-cooperation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.role-cooperation-card {
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: var(--radius-md);
    background: #fff;
}
.role-cooperation-card h3 {
    margin: 0 0 12px;
    color: #334155;
    font-size: 1.12rem;
    line-height: 1.35;
}
.role-cooperation-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}
@media (max-width: 850px) {
    .role-cooperation-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .role-section-cooperation .section-title { margin-bottom: 20px; }
}

/* Role publications and recommendations use the full section width. */
#publications .role-section-inner, #testimonials .role-section-inner { display: block; }
#publications .section-title, #testimonials .section-title { max-width: none; margin-bottom: 28px; }
.role-publication-grid, .role-testimonial-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.role-publication-card, .role-testimonial-card { min-width: 0; margin: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid rgba(148,163,184,.25); border-radius: var(--radius-md); background: #fff; }
.role-publication-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #64748b; font-size: .9rem; }
.role-publication-card h3 { margin: 14px 0 18px; font-size: 1.18rem; line-height: 1.4; }
.role-publication-card h3 a { color: #334155; text-decoration: none; }
.role-publication-card h3 a:hover { color: #2563eb; text-decoration: underline; }
.role-testimonial-card blockquote { max-width: 85ch; margin: 0 0 22px; color: #334155; line-height: 1.7; white-space: pre-line; }
.role-testimonial-card figcaption { display: grid; gap: 4px; color: #64748b; font-size: .94rem; }
.role-testimonial-card figcaption strong { color: #334155; }
.role-related-projects { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.role-related-projects a { padding: 5px 9px; background: #edf3ff; border-radius: 8px; color: #245ac5; font-size: .82rem; text-decoration: none; }
@media (max-width: 640px) { #publications .section-title, #testimonials .section-title { margin-bottom: 20px; } }
.site-publication { max-width: 780px; margin: 0 auto; }
.site-publication-body { margin-top: 30px; line-height: 1.8; white-space: normal; }

/* Embedded résumé; browser PDF viewers may offer their own controls. */
.resume-pdf-viewer { display: block; width: 100%; height: min(1100px, 78vh); min-height: 480px; margin-top: 26px; border: 1px solid rgba(148,163,184,.28); border-radius: 16px; background: #fff; }
.resume-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 640px) { .resume-pdf-viewer { min-height: 560px; height: 72vh; } }

/* Contact page. */
.contact-intro { padding-bottom: 34px; }
.contact-page { background: var(--bg-alt); padding: 26px 16px 78px; }
.contact-page-inner { width: 100%; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px; background: #fff; border: 1px solid rgba(36, 53, 84, .13); border-radius: 22px; box-shadow: 0 14px 36px rgba(25, 38, 70, .045); min-width: 0; }
.contact-card h2 { margin: 0; color: var(--text, #172033); font-size: 1.35rem; }
.contact-card a { overflow-wrap: anywhere; }
.contact-card .contact-value { color: var(--text, #172033); font-size: 1.08rem; font-weight: 600; }
.contact-card .contact-action { display: block; font-weight: 600; }
.contact-primary { background: #edf3ff; }
.contact-number + .contact-number { border-top: 1px solid rgba(36, 53, 84, .13); padding-top: 14px; }
.contact-number strong { display: block; color: var(--text, #172033); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 5px; }
.contact-context { margin-top: 24px; padding: 24px 28px; background: #fff; border-radius: 22px; }
.contact-context h2 { margin: 0 0 8px; font-size: 1.3rem; }
.contact-context p { margin: 0 0 8px; }
.contact-availability { color: var(--muted); }
@media(max-width: 700px) { .contact-grid { grid-template-columns: minmax(0,1fr); } .contact-card { padding: 22px; } .contact-page { padding: 14px 14px 52px; } .contact-context { padding: 22px; } }

/* Portfolio directory. Shared typography and palette remain in landing.css. */
.portfolio-hero { background: var(--bg-alt); padding-bottom: 72px; }
.portfolio-hero .role-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); }
.portfolio-hero .hero-name { margin: 10px 0 0; }
.portfolio-hero .role-lead { margin-bottom: 0; }
.portfolio-eyebrow { color: var(--accent); font-size: .83rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.portfolio-visual img { aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-directory { padding: 76px 16px 84px; }
.portfolio-directory .container, .portfolio-services .container { width: 100%; }
.portfolio-directory .section-header { margin-bottom: 28px; }
.portfolio-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.portfolio-card { display: flex !important; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 34px); background: #fff; border: 1px solid rgba(36, 53, 84, .13); border-radius: 22px; transition: transform .16s ease, box-shadow .16s ease; }
.portfolio-card:hover, .portfolio-card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.portfolio-card .card-title { color: #334155; font-size: clamp(1.2rem, 2vw, 1.48rem); line-height: 1.3; margin-bottom: 12px; }
.portfolio-card .text-muted { flex: 1; line-height: 1.65; }
.portfolio-card .card-link { margin-top: 20px; }
.portfolio-services { padding: 0 16px 84px; }
.portfolio-timeline { padding: 0 16px 54px; }
.portfolio-timeline .container { width: 100%; }
.portfolio-timeline-panel { background: #fff; border: 1px solid rgba(36, 53, 84, .16); border-radius: 22px; overflow: hidden; }
.portfolio-timeline-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 3vw, 34px); color: var(--text); font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 700; cursor: pointer; list-style: none; }
.portfolio-timeline-panel > summary::-webkit-details-marker { display: none; }
.portfolio-timeline-panel > summary::after { content: '+'; color: var(--accent); font-size: 1.7rem; font-weight: 400; margin-left: auto; }
.portfolio-timeline-panel[open] > summary::after { content: '−'; }
.portfolio-timeline-count { color: var(--accent); background: #edf3ff; border-radius: 999px; padding: .2em .7em; font-size: .75em; }
.portfolio-timeline-content { padding: 0 clamp(22px, 3vw, 34px) 30px; }
.portfolio-timeline-intro { color: #526078; margin: 0 0 24px; }
.portfolio-timeline-list { border-left: 2px solid #dce6f6; margin-left: 7px; }
.portfolio-timeline-item { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 24px; padding: 0 0 25px 24px; position: relative; }
.portfolio-timeline-item::before { content: ''; position: absolute; left: -7px; top: 6px; height: 12px; width: 12px; background: var(--accent); border-radius: 50%; }
.portfolio-timeline-period { color: var(--accent); font-weight: 700; white-space: nowrap; }
.portfolio-timeline-type { color: #60718c; font-size: .85rem; margin-bottom: 6px; }
.portfolio-timeline-detail h3 { margin: 0 0 5px; color: #334155; font-size: 1.18rem; }
.portfolio-timeline-detail p { margin: 0; color: #42536d; line-height: 1.5; }
.portfolio-timeline-projects { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: .9rem; }
.portfolio-timeline-projects span { color: #60718c; }
.portfolio-timeline-projects a { color: var(--accent); }
.portfolio-services-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(26px, 4vw, 42px); background: #edf3ff; border: 1px solid rgba(37, 99, 235, .15); border-radius: 24px; }
.portfolio-services-panel h2 { margin: 0 0 12px; color: var(--text); font-size: clamp(1.35rem, 2vw, 1.7rem); }
.portfolio-services-panel p { margin: 0; color: #42536d; line-height: 1.65; }
.portfolio-services-panel .btn { flex: 0 0 auto; }
@media (max-width: 900px) { .portfolio-hero .role-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .portfolio-hero { padding: 40px 14px 50px; }
    .portfolio-hero .role-visual { display: none; }
    .portfolio-mobile-visual { display: block; }
    .portfolio-mobile-visual img { object-fit: cover; }
    .portfolio-directory { padding: 52px 14px 58px; }
    .portfolio-card-grid { grid-template-columns: 1fr; gap: 14px; }
    .portfolio-services { padding: 0 14px 58px; }
    .portfolio-timeline { padding: 0 14px 40px; }
    .portfolio-timeline-item { grid-template-columns: 1fr; gap: 5px; }
    .portfolio-services-panel { display: block; }
    .portfolio-services-panel .btn { margin-top: 20px; }
}

/* Competency and tool catalogues. */
.catalog-intro { padding-bottom: 40px; }
.catalog-directory { padding: 32px 16px 84px; background: var(--bg-alt); }
.catalog-directory .container { width: 100%; }
.catalog-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.catalog-filters label { display: flex; flex-direction: column; gap: 9px; color: #475569; font-size: .85rem; font-weight: 700; }
.catalog-filters select { width: 100%; min-width: 0; padding: 13px 15px; border: 1px solid rgba(36,53,84,.18); border-radius: 12px; background: #fff; color: #172033; font: inherit; font-weight: 500; }
.catalog-filters select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.catalog-group + .catalog-group { margin-top: 58px; }
.catalog-group .section-title { margin-bottom: 22px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catalog-item { min-width: 0; padding: 26px; background: #fff; border: 1px solid rgba(36,53,84,.12); border-radius: 18px; }
.catalog-item h3 { margin: 0; color: #334155; font-size: 1.12rem; line-height: 1.4; }
.catalog-item p { margin: 12px 0 0; color: #53627a; line-height: 1.65; }
.catalog-projects { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 18px; font-size: .88rem; line-height: 1.5; }
.catalog-projects span { color: #64748b; }
.catalog-projects a { color: var(--accent); font-weight: 600; }
.catalog-empty { padding: 24px; border-radius: 16px; background: #fff; color: #64748b; }
.catalog-item[hidden], .catalog-group[hidden], .catalog-empty[hidden] { display: none !important; }
@media (max-width: 760px) {
    .catalog-intro { padding-bottom: 28px; }
    .catalog-directory { padding: 28px 14px 58px; }
    .catalog-filters { grid-template-columns: 1fr; gap: 14px; margin-bottom: 34px; }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-item { padding: 22px; }
    .catalog-group + .catalog-group { margin-top: 44px; }
}

/* V2 project directories and project detail pages. */
.project-intro, .project-detail-hero { padding-bottom: 54px; }
.project-back { display: inline-block; margin-bottom: 26px; color: #2563eb; font-weight: 650; text-decoration: none; }
.project-back:hover, .project-back:focus-visible { text-decoration: underline; }
.project-list { padding: 36px 16px 90px; background: var(--bg-alt); }
.project-list .container, .project-related .container { width: 100%; }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.project-filter { border: 1px solid #d9e2f1; border-radius: 999px; padding: 11px 16px; background: white; color: #42536d; font: inherit; cursor: pointer; }
.project-filter.is-active { background: #2563eb; border-color: #2563eb; color: white; }
.project-filter:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dbe3ef; border-radius: 22px; background: #fff; text-decoration: none; color: #182334; transition: transform .2s, box-shadow .2s; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 32px #102a551a; }
.project-card[hidden] { display: none; }
.project-card-cover, .project-detail-cover { position: relative; overflow: hidden; background: linear-gradient(135deg,#dbe7ff,#eff5ff 65%,#c9dbf7); }
.project-card-cover { aspect-ratio: 16 / 9; }
.project-card-cover img, .project-detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.project-cover-mark, .project-detail-cover span { position: absolute; right: 12%; bottom: -20%; color: #7aa6f270; font-size: 12rem; line-height: 1; }
.project-card-content { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.project-category { color: #2563eb; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.project-card h2 { margin: 12px 0 8px; color: #334155; font-size: 1.1rem; line-height: 1.35; font-weight: 700; }
.project-card-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; color: #60718c; font-size: .9rem; }
.project-card-content p { color: #475569; line-height: 1.65; margin: 18px 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.project-card-action { color: #2563eb; font-weight: 700; margin-top: auto; padding-top: 12px; }
.project-detail-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); gap: clamp(30px,5vw,70px); align-items: center; }
.project-detail-grid .hero-name { margin: 14px 0 20px; }
.project-detail-grid .roles-intro-text { max-width: 760px; }
.project-detail-cover { aspect-ratio: 4 / 3; border-radius: 24px; border: 1px solid #d9e2f1; }
.project-facts { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 32px; }
.project-facts div { display: flex; flex-direction: column; gap: 5px; }
.project-facts span { color: #64748b; font-size: .85rem; }
.project-facts strong { color: #334155; font-size: 1rem; }
.project-related { padding: 64px 16px 90px; background: var(--bg-alt); }
.project-description { padding: 60px 16px; background: #fff; }
.project-description .container { width: 100%; }
.project-description-copy { max-width: 850px; color: #42536d; line-height: 1.8; white-space: normal; }
.project-role-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.project-role-card { display: block; padding: 26px; background: white; border: 1px solid #dbe3ef; border-radius: 18px; color: #334155; text-decoration: none; }
.project-role-card h3 { margin: 0 0 12px; color: #334155; font-size: 1.2rem; }
.project-role-card p { color: #475569; line-height: 1.6; }
.project-role-card span { color: #2563eb; font-weight: 700; }
@media(max-width:900px) { .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) {
    .project-list { padding: 24px 14px 58px; }
    .project-grid, .project-role-grid, .project-detail-grid { grid-template-columns: 1fr; }
    .project-card-cover { aspect-ratio: 2 / 1; }
    .project-detail-hero { padding-bottom: 48px; }
    .project-detail-cover { aspect-ratio: 2 / 1; order: -1; }
    .project-related { padding: 48px 14px 58px; }
    .project-description { padding: 48px 14px; }
}
