:root {
    --bg: #111924;
    --bg-soft: #172131;
    --panel: rgba(26, 36, 50, 0.86);
    --panel-soft: rgba(31, 43, 59, 0.86);
    --panel-strong: rgba(23, 33, 47, 0.95);
    --border: rgba(150, 173, 201, 0.24);
    --border-strong: rgba(161, 186, 216, 0.35);
    --text: #e7eef8;
    --muted: #a8b7c8;
    --link: #91c8ff;
    --link-hover: #c3e1ff;
    --accent: #78b5ef;
    --accent-strong: #629ddf;
    --success: #4c9a74;
    --shadow-soft: 0 8px 22px rgba(6, 12, 20, 0.22);
    --shadow-card: 0 10px 24px rgba(6, 12, 20, 0.18);
    --page-padding: clamp(14px, 4vw, 32px);
    --hero-padding: clamp(18px, 5vw, 32px);
    --section-padding: clamp(16px, 4vw, 28px);
    --card-padding: clamp(14px, 2.7vw, 20px);
    --card-border-radius: 12px;
    --nav-gap: clamp(10px, 2vw, 16px);
    --nav-item-padding: clamp(6px, 1.5vw, 12px);
    --nav-logo-size: clamp(40px, 6vw, 50px);
    --nav-text-size: clamp(12px, 1.1vw, 14px);
    --section-title-size: clamp(20px, 2.3vw, 24px);
    --headline-size: clamp(24px, 5vw, 40px);
    --button-padding: clamp(10px, 2.3vw, 16px);
    --chip-padding: clamp(4px, 1vw, 10px);
    --chip-size: clamp(11px, 1vw, 13px);
    --avatar-size: clamp(56px, 9vw, 88px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text);
    background: var(--bg);
    line-height: 1.58;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1100px 560px at -8% -8%, rgba(125, 174, 233, 0.19), rgba(125, 174, 233, 0) 72%),
        radial-gradient(920px 460px at 108% 114%, rgba(116, 194, 156, 0.15), rgba(116, 194, 156, 0) 68%),
        linear-gradient(180deg, #111924 0%, #121b28 52%, #101823 100%);
}

a {
    color: var(--link);
    text-decoration-color: rgba(145, 200, 255, 0.42);
    text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
    color: var(--link-hover);
}

.github-nav {
    background: rgba(20, 29, 42, 0.88);
    border-bottom: 1px solid var(--border);
    padding: clamp(8px, 2vw, 14px) clamp(10px, 3vw, 18px);
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.nav-left {
    flex-shrink: 0;
}

.nav-logo {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--nav-logo-size);
    height: var(--nav-logo-size);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.nav-logo:hover,
.nav-logo:focus-visible {
    background: rgba(145, 200, 255, 0.08);
    border-color: rgba(169, 207, 245, 0.4);
    transform: scale(1.05);
}

.nav-middle {
    display: flex;
    gap: var(--nav-gap);
    align-items: center;
    flex-wrap: wrap;
}

.nav-right {
    margin-left: auto;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: var(--nav-text-size);
    opacity: 0.95;
    padding: var(--nav-item-padding);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--link-hover);
}

.nav-link.nav-cta {
    background: rgba(120, 181, 239, 0.18);
    border: 1px solid rgba(153, 197, 240, 0.42);
    border-radius: 999px;
    padding: 7px 12px;
    line-height: 1;
}

.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: min(82vw, 320px);
    height: 100vh;
    background: rgba(17, 25, 36, 0.98);
    border-right: 1px solid var(--border);
    padding: 20px 12px;
    z-index: 110;
    box-shadow: 8px 0 20px rgba(5, 10, 16, 0.4);
    transform: translateX(-100%);
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.side-nav.open {
    transform: translateX(0);
    pointer-events: auto;
}

.side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav li {
    margin: 0;
    padding: 0;
}

.side-nav li.nav-divider {
    height: 1px;
    margin: 14px 0;
    background: rgba(158, 179, 204, 0.24);
    border-radius: 1px;
    pointer-events: none;
}

.side-nav a {
    color: #d7e3f0;
    text-decoration: none;
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
}

.side-nav a:hover,
.side-nav a:focus-visible {
    background: rgba(145, 200, 255, 0.1);
    color: var(--link-hover);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 18, 0.6);
    z-index: 90;
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.page {
    max-width: 1220px;
    margin: 0 auto;
    padding: var(--page-padding);
}

.hero {
    background: linear-gradient(132deg, rgba(95, 142, 205, 0.18), rgba(84, 153, 126, 0.12));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--hero-padding);
    box-shadow: var(--shadow-soft);
    margin-bottom: clamp(24px, 4vw, 32px);
}

.hero h1 {
    margin: 0 0 8px;
    font-size: var(--headline-size);
    line-height: 1.14;
}

.hero p {
    margin: 0;
    color: #d2deec;
    max-width: 860px;
}

.hero-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag,
.chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(156, 178, 202, 0.34);
    background: rgba(17, 27, 38, 0.62);
    color: #d7e4f2;
    border-radius: 999px;
    padding: var(--chip-padding) max(8px, 2vw);
    font-size: var(--chip-size);
    line-height: 1.2;
}

.section {
    background: linear-gradient(180deg, rgba(24, 34, 47, 0.9), rgba(21, 31, 44, 0.9));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: var(--section-padding);
    margin-bottom: clamp(20px, 4vw, 28px);
    box-shadow: var(--shadow-soft);
}

.section-title {
    margin: 0 0 8px;
    font-size: var(--section-title-size);
}

.section-lead {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 930px;
}

.department-grid,
.team-grid,
.resume-grid,
.reviews-grid {
    display: grid;
    gap: clamp(12px, 2vw, 18px);
}

.department-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.team-grid,
.reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.resume-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.department-card,
.team-card,
.resume-block,
.review-item,
.catalog-card {
    background: var(--panel-soft);
    border: 1px solid rgba(152, 176, 204, 0.2);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    min-width: 0;
    overflow-wrap: anywhere;
}

.department-card h3,
.team-card h3,
.resume-block h3,
.review-item h3,
.catalog-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: #edf4fd;
}

.department-card p,
.team-card p,
.resume-block p,
.review-item p,
.catalog-text {
    margin: 0;
    color: #d4dfec;
}

.list-clean {
    margin: 0;
    padding-left: 18px;
}

.list-clean li {
    margin-bottom: 7px;
    color: #d6e1ee;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    align-items: baseline;
}

.list-clean span {
    word-break: break-word;
    overflow-wrap: break-word;
}

.list-clean a {
    color: var(--link);
    text-decoration-color: rgba(145, 200, 255, 0.5);
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 0 1 auto;
}

.list-clean a:hover,
.list-clean a:focus-visible {
    color: var(--link-hover);
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-card .card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.team-card a {
    color: var(--link);
    font-size: 14px;
}

.team-card a:hover,
.team-card a:focus-visible {
    color: var(--link-hover);
}

.role-note {
    margin: 0;
    color: #b6c8dc;
    font-size: 13px;
}

.team-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
}

.team-search {
    flex: 1;
    min-width: 0;
    width: min(100%, clamp(240px, 45vw, 360px));
    height: clamp(36px, 4vw, 44px);
    border-radius: clamp(10px, 2vw, 14px);
    border: 1px solid rgba(156, 181, 210, 0.32);
    background: rgba(17, 26, 37, 0.74);
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

.team-search::placeholder {
    color: #9fb0c5;
}

.team-search:focus-visible {
    border-color: rgba(169, 207, 245, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 186, 244, 0.18);
}

.catalog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 200ms ease, transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.catalog-card:hover,
.catalog-card:focus-visible {
    border-color: rgba(176, 208, 238, 0.5);
    transform: translateY(-3px);
    background: rgba(38, 53, 73, 0.9);
    box-shadow: 0 8px 20px rgba(6, 12, 20, 0.3);
}

.catalog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.catalog-meta {
    margin: 0;
    color: #b9c9db;
    font-size: 14px;
}

.catalog-role {
    margin: 6px 0 0;
    color: #dce8f5;
}

.catalog-cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--link);
}

.catalog-empty {
    margin: 8px 0 0;
    color: #c4d2e3;
    border: 1px dashed rgba(157, 181, 206, 0.35);
    border-radius: 10px;
    padding: 12px;
    background: rgba(19, 28, 39, 0.62);
}

.marquee {
    overflow: hidden;
    position: relative;
    margin: 10px 0 16px;
    padding-bottom: 2px;
    border-radius: 12px;
    touch-action: pan-y;
    z-index: 1;
}

.marquee-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    will-change: transform;
    min-height: 168px;
}

.marquee-card {
    border: 1px solid rgba(154, 181, 211, 0.28);
    border-radius: var(--card-border-radius);
    background: var(--panel-soft);
    width: min(100%, clamp(210px, 28vw, 318px));
    min-width: 0;
    padding: clamp(12px, 2vw, 16px);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    transition: border-color 200ms ease, background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.marquee-card:hover,
.marquee-card:focus-visible {
    border-color: rgba(176, 208, 238, 0.52);
    background: rgba(38, 53, 73, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(6, 12, 20, 0.35);
}

.marquee.dragging .marquee-card {
    pointer-events: none;
}

.dev-card,
.review-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dev-name {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #eef5ff;
}

.dev-handle {
    margin: 0;
    color: #9fd2ff;
    font-size: 15px;
}

.dev-role {
    margin: 0;
    color: #dae7f5;
}

.dev-grade {
    margin: 0;
    color: #b6c8dc;
    font-size: 13px;
}

.dev-cta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--link);
}

.team-search-empty {
    margin-top: 10px;
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.review-author {
    margin: 0;
    font-weight: 700;
}

.review-date {
    color: var(--muted);
    font-size: 13px;
}

.review-score {
    display: inline-flex;
    border: 1px solid rgba(163, 189, 220, 0.34);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #e0ebfa;
}

.resume-page {
    max-width: 1100px;
}

.resume-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1px solid rgba(165, 191, 219, 0.42);
    background: linear-gradient(145deg, #32485f, #2f4e44);
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 700;
    color: #e7eff9;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.resume-header h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
}

.resume-handle {
    margin: 4px 0 0;
    color: #9fd3ff;
}

.resume-meta {
    margin: 6px 0 0;
    color: var(--muted);
}

.resume-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--success);
    color: #f8fcff;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.button:hover,
.button:focus-visible {
    background: #5ba983;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 154, 116, 0.3);
}

.button-secondary {
    background: rgba(15, 24, 34, 0.4);
    border-color: rgba(153, 180, 211, 0.45);
    color: #e2edf9;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(132, 181, 235, 0.18);
    border-color: rgba(169, 207, 245, 0.6);
}

.button-accent {
    background: var(--accent-strong);
    border-color: rgba(153, 190, 231, 0.35);
}

.button-accent:hover,
.button-accent:focus-visible {
    background: #73aceb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(98, 157, 223, 0.3);
}

.section-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notice {
    margin-top: 12px;
    border: 1px dashed rgba(153, 177, 203, 0.42);
    border-radius: 10px;
    padding: 10px 12px;
    color: #d4e1ef;
    background: rgba(20, 31, 44, 0.58);
}

.site-footer {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 28px;
}

.footer-card {
    border: 1px solid var(--border);
    border-radius: var(--card-border-radius);
    padding: 14px 18px;
    color: var(--muted);
    background: rgba(16, 25, 36, 0.72);
    text-align: center;
}

.footer-card a {
    color: var(--link);
}

.footer-card a:hover,
.footer-card a:focus-visible {
    color: var(--link-hover);
}

.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.fade-in.delay-1 {
    transition-delay: 120ms;
}

.fade-in.delay-2 {
    transition-delay: 240ms;
}

.fade-in.delay-3 {
    transition-delay: 360ms;
}

.fade-in.delay-4 {
    transition-delay: 480ms;
}

.fade-in.delay-5 {
    transition-delay: 600ms;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-logo:focus-visible,
.button:focus-visible,
.marquee-card:focus-visible,
.catalog-card:focus-visible,
.nav-link:focus-visible,
.side-nav a:focus-visible,
.team-search:focus-visible {
    outline: 2px solid rgba(150, 206, 255, 0.75);
    outline-offset: 2px;
}


html,
body {
    min-width: 0;
    overflow-x: hidden;
}

.page,
.hero,
.section,
.department-grid,
.team-grid,
.resume-grid,
.reviews-grid,
.marquee-track {
    min-width: 0;
}

.page,
.hero,
.section {
    width: 100%;
    max-width: 100%;
}

.marquee-card,
.department-card,
.team-card,
.resume-block,
.review-item,
.catalog-card {
    max-width: 100%;
}