:root {
    --bg: #fff8f3;
    --ink: #111;
    --muted: #6b665e;
    --accent: #ff761a;
    --line: rgba(17, 17, 17, 0.12);
    --max: 1200px;
    --pad: clamp(16px, 3.2vw, 40px);
    --header-h: clamp(64px, 6vw, 96px);
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "SUIT", "Suit", -apple-system, "Noto Sans KR", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.work-page {
    min-height: 100vh;
    background: var(--bg);
}

.work-hero {
    position: relative;
    height: calc(100svh - var(--header-h));
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    overflow: hidden;
    display: grid;
    place-items: center;
}

#webgl-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.work-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    user-select: none;
}

.work-hero__title {
    margin: 0;
    font-size: clamp(28px, 6vw, 60px);
    line-height: 0.95;
    letter-spacing: 0.02em;
    font-weight: 800;
}

.work-list {
    padding: clamp(48px, 8vw, 200px) 0;
}

.work-wrap {
    width: 90%;
    max-width: 1920px;
    margin: 0 auto;
}

.work-cats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 1.6vw, 22px);
    margin: 0 0 clamp(28px, 4vw, 56px);
    padding: 0;
    align-items: center;
}

.work-cats li {
    margin: 0;
    padding: 0;
}

.work-cat {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: clamp(14px, 2.4vw, 36px);
    font-weight: 400;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 0.9vw, 16px);
    margin-right: clamp(8px, 1.2vw, 18px);
    white-space: nowrap;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.work-cat:hover {
    color: var(--ink);
}

.work-cat.is-active {
    color: var(--ink);
    font-weight: 600;
}

.work-cat.is-active .cat-dot {
    box-shadow: 0 0 0 3px rgba(255, 118, 26, 0.25);
}

.work-cat:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.cat-dot {
    width: clamp(10px, 0.9vw, 16px);
    height: clamp(10px, 0.9vw, 16px);
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 16px);
}

.port-item__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.port-item {
    margin-bottom: clamp(28px, 4vw, 70px);
}

.port-item__title {
    margin: 14px 0 20px;
    font-size: clamp(24px, 2.6vw, 46px);
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.title-dot {
    width: 0.92em;
    height: 0.92em;
    border: 2px solid var(--ink);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transform: translateY(-0.03em);
}

.title-dot svg {
    width: 68%;
    height: 68%;
    stroke: var(--ink);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.port-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.port-item__tags span {
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 5px 14px 4px;
    font-size: clamp(14px, 2vw, 24px);
    letter-spacing: 0;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}

.work-empty {
    margin: 0;
    padding: 18px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}
