:root {
    --navy-950: #061426;
    --navy-900: #08233f;
    --navy-800: #123b61;
    --blue-700: #195d98;
    --blue-100: #e8f2fb;
    --blue-50: #f3f8fc;
    --red-700: #b83232;
    --orange-600: #c85d22;
    --ink: #162333;
    --muted: #5d6b7a;
    --line: #d8e1ea;
    --surface: #ffffff;
    --page: #f6f8fa;
    --shadow: 0 22px 60px rgba(8, 35, 63, 0.13);
    --radius-lg: 24px;
    --radius-md: 16px;
    --content-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--page);
    color: var(--ink);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--navy-950);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #f29a5b;
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 35, 63, 0.97);
    color: #ffffff;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
    background: rgba(6, 20, 38, 0.98);
    box-shadow: 0 10px 30px rgba(4, 18, 34, 0.22);
}

.header-inner {
    width: min(calc(100% - 40px), var(--content-width));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 11px;
    background: #ffffff;
    color: var(--navy-900);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: grid;
    line-height: 1.25;
}

.brand-copy strong,
.footer-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-copy > span {
    margin-top: 4px;
    color: #bfd0df;
    font-size: 0.75rem;
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 10px;
    color: #dce8f2;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 24%, rgba(69, 139, 197, 0.3), transparent 32%),
        linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 54%, #123b61 100%);
    color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to right, transparent 0%, #000 60%);
}

.hero-inner {
    width: min(calc(100% - 40px), var(--content-width));
    min-height: 620px;
    margin: 0 auto;
    padding: 96px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: clamp(48px, 8vw, 112px);
}

.eyebrow,
.section-kicker,
.directory-title {
    margin: 0;
    color: #91bee2;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 20px 0 24px;
    font-size: clamp(2.55rem, 5.2vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.hero-description {
    max-width: 720px;
    margin: 0;
    color: #d5e2ed;
    font-size: clamp(1rem, 1.7vw, 1.16rem);
    line-height: 1.85;
}

.hero-actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-action {
    min-height: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-action:hover {
    transform: translateY(-2px);
}

.hero-action-primary {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--navy-900);
}

.hero-action-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.hero-action-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.portal-directory {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(5, 20, 37, 0.48);
    box-shadow: 0 28px 70px rgba(3, 15, 29, 0.26);
}

.directory-title {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.directory-item {
    padding: 20px 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.directory-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.directory-number {
    color: #91bee2;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
}

.directory-item div {
    display: grid;
    gap: 3px;
}

.directory-item strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.directory-item div span {
    color: #b9cddd;
    font-size: 0.86rem;
}

.section-inner {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
}

.teams-section,
.projects-section {
    padding: 104px 0;
    scroll-margin-top: 76px;
}

.teams-section {
    background: #ffffff;
}

.projects-section {
    border-top: 1px solid var(--line);
    background: var(--blue-50);
}

.section-heading {
    margin-bottom: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    align-items: end;
    gap: 48px;
}

.section-kicker {
    color: var(--blue-700);
}

.section-heading h2 {
    margin: 12px 0 0;
    color: var(--navy-950);
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.28;
}

.section-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

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

.team-card {
    position: relative;
    isolation: isolate;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-radius: var(--radius-lg);
    background: var(--navy-900);
    box-shadow: var(--shadow);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card::before,
.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.team-card::before {
    z-index: -1;
    background: linear-gradient(to bottom, rgba(4, 15, 27, 0.02) 10%, rgba(4, 15, 27, 0.2) 44%, rgba(4, 15, 27, 0.96) 100%);
}

.team-card::after {
    z-index: -1;
    opacity: 0.28;
    mix-blend-mode: color;
}

.team-card-stayup::after {
    background: var(--blue-700);
}

.team-card-firehawks::after {
    background: var(--red-700);
}

.team-card > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 72px rgba(8, 35, 63, 0.2);
}

.team-card:hover > img {
    transform: scale(1.035);
}

.team-card-content {
    width: 100%;
    padding: clamp(28px, 4vw, 42px);
    display: grid;
    justify-items: start;
}

.team-type {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(5, 19, 34, 0.44);
    font-size: 0.78rem;
    font-weight: 700;
}

.team-name {
    margin-top: 17px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.team-description {
    max-width: 520px;
    margin-top: 14px;
    color: #dce8f1;
    font-size: 0.96rem;
    line-height: 1.75;
}

.team-link {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    font-weight: 700;
}

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

.project-card {
    min-height: 282px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 12px 32px rgba(8, 35, 63, 0.06);
}

.project-card-link {
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card-link:hover {
    transform: translateY(-3px);
    border-color: #8fb4d2;
    box-shadow: 0 18px 42px rgba(8, 35, 63, 0.11);
}

.project-card-pending {
    background: #f8fafc;
    box-shadow: none;
}

.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-icon {
    min-width: 48px;
    height: 48px;
    padding: 0 9px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--navy-900);
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.project-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.status-live {
    background: #dcefe4;
    color: #165e3a;
}

.status-work {
    background: #e3eef9;
    color: #174f7c;
}

.status-pending {
    background: #eee9e4;
    color: #6f5847;
}

.project-name {
    margin: 22px 0 0;
    color: var(--navy-950);
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.4;
}

span.project-name {
    display: block;
}

.project-description {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

span.project-description {
    display: block;
}

.project-link,
.project-note {
    margin-top: auto;
    padding-top: 22px;
    font-size: 0.8rem;
    font-weight: 700;
}

.project-link {
    color: var(--blue-700);
}

.project-note {
    color: #7b7068;
    font-weight: 600;
}

.site-footer {
    padding: 40px 0;
    background: var(--navy-950);
    color: #ffffff;
}

.footer-inner {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.footer-inner p {
    margin: 5px 0 0;
    color: #aebfce;
    font-size: 0.82rem;
}

.copyright {
    text-align: right;
}

@media (max-width: 980px) {
    .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .portal-directory {
        max-width: 720px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 20px;
    }

    .directory-title {
        grid-column: 1 / -1;
    }

    .directory-item {
        grid-template-columns: 34px minmax(0, 1fr);
        border-bottom: 0;
    }

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

@media (max-width: 760px) {
    html {
        scroll-padding-top: 126px;
    }

    .header-inner {
        width: min(calc(100% - 32px), var(--content-width));
        padding: 12px 0 10px;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .site-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
        padding-top: 7px;
    }

    .site-nav a {
        min-height: 40px;
        padding: 0 8px;
        justify-content: center;
        font-size: 0.8rem;
    }

    .hero-inner,
    .section-inner,
    .footer-inner {
        width: min(calc(100% - 32px), var(--content-width));
    }

    .hero-inner {
        padding: 72px 0;
    }

    .hero h1 br {
        display: none;
    }

    .portal-directory {
        display: block;
    }

    .directory-item {
        grid-template-columns: 40px minmax(0, 1fr);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .directory-item:last-child {
        border-bottom: 0;
    }

    .teams-section,
    .projects-section {
        padding: 76px 0;
        scroll-margin-top: 116px;
    }

    .section-heading {
        margin-bottom: 30px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .team-card {
        min-height: 470px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .copyright {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .brand-copy > span {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.25rem);
    }

    .hero-actions {
        display: grid;
    }

    .hero-action {
        width: 100%;
    }

    .portal-directory {
        padding: 22px;
    }

    .team-card {
        min-height: 420px;
    }

    .team-description {
        font-size: 0.9rem;
    }

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

    .project-card {
        min-height: 250px;
    }
}

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

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