.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}
.site-header__inner {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}
.site-header__brand img {
    display: block;
    width: 40px;
    height: 40px;
}
.site-header__back {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.site-header__back:hover, .site-header__back:focus-visible {
    background: var(--surface);
    outline: none;
}

.k-section {
    padding: 64px max(24px, calc((100vw - 1180px) / 2));
}
.k-section--lg { padding-block: 96px; }
.k-section--alt { background: var(--panel); }
.k-container { max-width: 1180px; margin: 0 auto; }
.k-container--md { max-width: 880px; }
.k-container--sm { max-width: 720px; }

.k-section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}
.k-section__head h2 {
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 16px;
}
.k-section__head p {
    font-size: 1.18rem;
    color: var(--muted);
}

.k-page-hero {
    padding: 64px max(24px, calc((100vw - 1180px) / 2)) 32px;
    text-align: center;
}
.k-page-hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 16px;
}
.k-page-hero p {
    font-size: 1.18rem;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto;
}

.k-grid { display: grid; gap: 24px; }
.k-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.k-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-2);
}
.k-card--lg { padding: 32px; }
.k-card--accent {
    background: rgba(128, 203, 196, 0.12);
    border-color: rgba(128, 203, 196, 0.32);
}
.k-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.25;
}
.k-card__desc { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.k-card__icon {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 10px;
    margin-bottom: 18px;
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}
.k-card__icon--purple { background: rgba(168, 85, 247, 0.18);  color: #c084fc; }
.k-card__icon--green  { background: rgba(34, 197, 94, 0.18);   color: #4ade80; }
.k-card__icon--orange { background: rgba(249, 115, 22, 0.18);  color: #fb923c; }

.k-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--emerald-deep);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease;
}
.k-btn:hover:not(:disabled) { filter: brightness(1.1); }
.k-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.k-btn--lg { min-height: 54px; padding: 0 36px; font-size: 1.05rem; }
.k-btn--block { width: 100%; }
.k-btn--ghost {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
}
.k-btn--ghost:hover:not(:disabled) { background: var(--surface); }

.k-grad-text {
    background: linear-gradient(90deg, #3b82f6, #a855f7, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.k-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.k-link:hover, .k-link:focus-visible { color: #93c5fd; outline: none; }

.k-marquee {
    position: relative;
    overflow: hidden;
    padding-block: 36px;
    border-block: 1px solid var(--line);
}
.k-marquee__label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--soft);
    margin-bottom: 24px;
}
.k-marquee__viewport {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.k-marquee__track {
    display: flex;
    gap: 56px;
    padding-right: 56px;
    flex-shrink: 0;
    min-width: 100%;
    animation: kmarquee 35s linear infinite;
    opacity: 0.6;
    will-change: transform;
}
.k-marquee__item {
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soft);
    white-space: nowrap;
}
@keyframes kmarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.profile-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.profile-card__avatar {
    width: 128px; height: 128px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    flex-shrink: 0;
}
.profile-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-card__body { flex: 1 1 280px; }
.profile-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}
.profile-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
}
.profile-card__role {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0 0 16px;
}
.profile-card__social { display: flex; gap: 8px; }
.profile-card__social a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: filter 160ms ease;
}
.profile-card__social a:hover { filter: brightness(1.15); }
.profile-card__social a.github { background: #1f2937; }
.profile-card__social a.linkedin { background: #0a66c2; }

