
/* ── HERO ── */
.hero {
    position: relative;
    z-index: 1;
    padding: clamp(48px, 8vh, 96px) 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}


.code-tag {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-green);
    opacity: 0.8;
}

.hero-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-2);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── PROFILE CARD ── */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-green), var(--brand-yellow));
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    border: 2px solid rgba(78, 146, 240, 0.25);
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--brand-bright);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat {
    text-align: center;
    padding: 14px 8px;
    background: var(--bg-subtle);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--brand-bright);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aff-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aff-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    padding: 8px 12px;
    background: var(--bg-subtle);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.18s;
}

.aff-item:hover {
    background: rgba(58, 123, 213, 0.08);
    border-color: var(--border-mid);
    color: var(--text-1);
}

.aff-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}

.about-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.about-photo:hover img {
    transform: scale(1.04);
}

.about-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-3);
}

.about-photo-placeholder svg {
    opacity: 0.4;
}

.about-photo-placeholder span {
    font-size: 11.5px;
    font-weight: 600;
    opacity: 0.5;
    letter-spacing: 0.3px;
}

.about-body p {
    font-size: 15.5px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-body strong {
    color: var(--text-1);
    font-weight: 700;
}

.about-body .hl {
    color: var(--brand-bright);
    font-weight: 600;
}

.expertise-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
}

.box-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.exp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.exp-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    min-width: 90px;
}

.exp-bar {
    flex: 1;
    height: 5px;
    background: var(--bg-subtle);
    border-radius: 3px;
    overflow: hidden;
}

.exp-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-green));
}

.exp-pct {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    min-width: 30px;
    text-align: right;
}

/* ── NEWS ── */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.22s;
    position: relative;
    overflow: hidden;
}

.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.news-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-mid);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.news-card:hover::after {
    transform: scaleX(1);
}

.news-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.badge-yellow {
    color: #a07800;
    border: 1px solid rgba(245, 200, 66, 0.4);
    background: rgba(245, 200, 66, 0.12);
}

.badge-blue {
    color: var(--brand-bright);
    border: 1px solid rgba(78, 146, 240, 0.3);
    background: rgba(78, 146, 240, 0.08);
}

@media (prefers-color-scheme: dark) {
    .badge-yellow {
        color: var(--brand-yellow);
    }
}

.news-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.news-body {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.65;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
}

.news-meta-sep {
    opacity: 0.35;
}

.mainsys-features {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 160px;
}

.mainsys-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-2);
}

/* ── ARTICLES ── */
.articles-list {
    display: flex;
    flex-direction: column;
}

.article-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.18s;
    color: inherit;
}

.article-row:hover {
    background: var(--bg-card);
    border-color: var(--border);
    transform: translateX(5px);
}

.article-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    flex: 1;
    transition: color 0.18s;
}

.article-row:hover .article-title {
    color: var(--brand-bright);
}

.article-date {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-3);
    white-space: nowrap;
}

.article-arrow {
    color: var(--text-3);
    opacity: 0;
    transition: opacity 0.18s, transform 0.18s;
    flex-shrink: 0;
}

.article-row:hover .article-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.article-sep {
    height: 1px;
    background: var(--border);
    margin: 0 20px;
    opacity: 0.5;
}

/* ── ARTICLES SKELETON LOADER ── */
.articles-loading {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 20px;
}

.articles-skeleton {
    height: 16px;
    width: 100%;
    background: linear-gradient(90deg,
            var(--bg-subtle) 25%,
            var(--bg-card-hover) 50%,
            var(--bg-subtle) 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── AFFILIATIONS ── */
.affils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 14px;
}

.affil-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.22s;
}

.affil-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.affil-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.affil-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 3px;
    line-height: 1.3;
}

.affil-role {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    line-height: 1.4;
}

/* ── PHOTO BANNER ── */
.photo-banner {
    position: relative;
    z-index: 1;
}

.photo-banner-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.photo-banner-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-banner-inner:hover img {
    transform: scale(1.02);
}

/* placeholder when no image */
.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-card) 100%);
}

.photo-placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(58, 123, 213, 0.1);
    border: 1px dashed var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
}

.photo-placeholder-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.3px;
}

.photo-placeholder-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    opacity: 0.6;
    margin-top: -8px;
}

/* photo caption overlay */
.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-banner-inner:hover .photo-caption {
    opacity: 1;
}

.photo-caption-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

/* ── LOGO GRID — pevně 3×3 ── */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.logo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: all 0.22s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-mid);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* 3:2 logo slot */
.logo-slot {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.2s;
}

.logo-card:hover .logo-slot {
    background: var(--bg-card);
}

.logo-slot img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    display: block;
    /* adaptive: logos look good on both light/dark */
    filter: none;
    transition: transform 0.25s;
}

.logo-card:hover .logo-slot img {
    transform: scale(1.05);
}

/* placeholder for missing logo */
.logo-slot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    letter-spacing: 0.3px;
}

.logo-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    text-align: center;
    line-height: 1.35;
}

.logo-card-role {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-3);
    text-align: center;
    line-height: 1.4;
    margin-top: -6px;
}

@media (max-width: 1100px) {
    .about-grid {
        grid-template-columns: 1fr 240px;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-card {
        order: -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        position: static;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-template-columns: 1fr;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── REFERENCES ── */
.refs-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.ref-card {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.ref-text {
    color: var(--text-2);
    line-height: 1.65;
    font-size: 15px;
}

.ref-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ref-person {
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--text-1);
    font-size: 14.5px;
}

.ref-meta {
    color: var(--text-3);
    font-size: 12.5px;
    margin-top: 2px;
}

.ref-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-bright);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all .18s;
}

.ref-link:hover {
    background: rgba(78, 146, 240, 0.08);
    border-color: rgba(78, 146, 240, 0.18);
}

.ref-cta {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 900px) {
    .ref-card {
        grid-column: span 12;
    }
}

@media (max-width: 500px) {
    .logo-grid {
        grid-template-columns: 1fr;
    }
}