/* ===== Life1008 이력서 (새 디자인) ===== */

:root {
    --bg: #f6f7f9;
    --white: #ffffff;
    --ink: #0f172a;
    --ink-sub: #475569;
    --ink-mute: #8a94a6;
    --line: #e4e8ef;
    --blue: #2f5bea;
    --blue-dark: #1f44c4;
    --blue-soft: #eef2ff;
    --blue-line: #c9d5fb;
    --award: #b45309;
    --award-soft: #fff4e0;
    --activity: #0f766e;
    --activity-soft: #e3f6f3;
    --radius: 16px;
    --bar-h: 76px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background-color: var(--blue);
    color: var(--white);
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* ===== 버튼 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.btn:active {
    transform: scale(0.97);
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--blue-dark);
}

.btn-ghost {
    background-color: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--ink);
}

.btn-dark {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background-color: var(--ink);
    color: var(--white);
    font-size: 15px;
}

.btn-dark:hover {
    background-color: var(--blue);
}

/* ===== 상단 고정 바 (A-02) ===== */
.bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--bg);
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bar.is-scrolled {
    background-color: var(--white);
    border-bottom-color: var(--line);
}

.bar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--bar-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: var(--blue);
    color: var(--white);
    font-size: 19px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 13px;
    color: var(--ink-sub);
}

.bar-nav ul {
    display: flex;
    gap: 6px;
}

.bar-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--ink-sub);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bar-nav a:hover,
.bar-nav a.is-current {
    background-color: var(--blue-soft);
    color: var(--blue);
}

/* ===== 첫 화면 (F-01) ===== */
.hero {
    padding-top: 88px;
    padding-bottom: 96px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background-color: var(--white);
    border: 1px solid var(--line);
    color: var(--ink-sub);
    font-size: 14px;
    font-weight: 600;
}

.chip-live {
    background-color: var(--blue-soft);
    border-color: var(--blue-line);
    color: var(--blue);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--blue);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.6); opacity: 0.5; }
}

.hero-name {
    margin-top: 28px;
    font-size: clamp(72px, 12vw, 168px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.hero-lead {
    margin-top: 20px;
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.hero-lead strong {
    color: var(--blue);
    font-weight: 700;
}

.hero-intro {
    max-width: 40em;
    margin-top: 18px;
    color: var(--ink-sub);
    font-size: 19px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-tags li {
    padding: 6px 14px;
    border-radius: 8px;
    background-color: var(--white);
    border: 1px solid var(--line);
    font-size: 15px;
    font-weight: 600;
}

.hero-tags li::before {
    content: "#";
    margin-right: 2px;
    color: var(--blue);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
}

/* 요약 숫자 */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 72px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 26px 26px 24px;
    border-radius: var(--radius);
    background-color: var(--white);
    border: 1px solid var(--line);
}

.stat-num {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.stat-num small {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-mute);
}

.stat-label {
    margin-top: 10px;
    font-weight: 700;
}

.stat-note {
    color: var(--ink-sub);
    font-size: 14px;
}

.stat-accent {
    background-color: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.stat-accent .stat-num small,
.stat-accent .stat-note {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== 섹션 공통 ===== */
.section {
    padding: 112px 0;
    scroll-margin-top: var(--bar-h);
}

.section-alt {
    background-color: var(--white);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 40px;
    margin-bottom: 36px;
}

.section-title {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 30em;
    color: var(--ink-sub);
}

/* ===== 실적 목록 (F-03) ===== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background-color: var(--white);
    color: var(--ink-sub);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.tab span {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background-color: var(--bg);
    font-size: 13px;
    text-align: center;
}

.tab:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.tab:active {
    transform: scale(0.97);
}

.tab[aria-pressed="true"] {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.tab[aria-pressed="true"] span {
    background-color: rgba(255, 255, 255, 0.18);
}

.table-card {
    overflow-x: auto;
}

.record-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.record-table th,
.record-table td {
    padding: 18px 22px;
    text-align: left;
    vertical-align: middle;
}

.record-table th {
    background-color: #f9fafc;
    color: var(--ink-sub);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}

.record-table tbody tr + tr td {
    border-top: 1px solid var(--line);
}

.record-table tbody tr {
    transition: background-color 0.15s ease;
}

.record-table tbody tr:hover {
    background-color: #f9fafc;
}

.record-table .col-date {
    width: 112px;
    color: var(--ink-sub);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.record-table .col-type {
    width: 120px;
}

.record-title {
    font-weight: 700;
}

.record-role {
    color: var(--ink-sub);
}

/* 분류 배지 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-project { background-color: var(--blue-soft); color: var(--blue); }
.badge-award { background-color: var(--award-soft); color: var(--award); }
.badge-activity { background-color: var(--activity-soft); color: var(--activity); }
.badge-major { background-color: var(--ink); color: var(--white); }
.badge-liberal { background-color: var(--white); color: var(--ink-sub); }

/* ===== 수강 과목 (F-04) ===== */
.course-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.course {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    min-height: 150px;
    padding: 24px;
    border-radius: var(--radius);
    background-color: var(--bg);
}

.course-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.course-link {
    background-color: var(--blue);
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.25s var(--ease);
}

.course-link .badge-major {
    background-color: var(--white);
    color: var(--blue);
}

.course-more {
    margin-top: auto;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.course-link:hover {
    background-color: var(--blue-dark);
    transform: translateY(-4px);
}

/* ===== 주차별 링크 (F-05) ===== */
.progress {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
    padding: 24px 26px;
}

.progress-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.progress-title {
    font-size: 20px;
    font-weight: 700;
}

.progress-title strong {
    color: var(--blue);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--ink-sub);
    font-size: 14px;
}

.legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.key {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.key-done { background-color: var(--blue); }
.key-off { border: 2px dashed #b6c0cf; }
.key-planned { background-color: #e7ebf1; }

.progress-track {
    height: 10px;
    border-radius: 999px;
    background-color: #e7ebf1;
    overflow: hidden;
}

.progress-fill {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: 999px;
    background-color: var(--blue);
    transform-origin: left;
}

.week-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.week-list li {
    display: flex;
}

.week {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 112px;
    padding: 18px 20px;
    border-radius: 14px;
}

.week-no {
    font-size: 15px;
    font-weight: 700;
}

.week-state {
    font-size: 17px;
    font-weight: 700;
}

.week-done {
    background-color: var(--blue);
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.25s var(--ease);
}

.week-done .week-no {
    color: rgba(255, 255, 255, 0.82);
}

.week-done:hover,
.week-done:focus-visible {
    background-color: var(--blue-dark);
    transform: translateY(-4px);
}

.week-off {
    border: 2px dashed #b6c0cf;
    background-color: var(--white);
    color: var(--ink-sub);
}

.week-planned {
    background-color: #e7ebf1;
    color: #5b6578;
}

/* ===== footer (F-06) ===== */
.site-footer {
    background-color: var(--ink);
    color: #b9c2d3;
    overflow: hidden;
}

.footer-inner {
    padding-top: 72px;
    padding-bottom: 32px;
}

.footer-word {
    color: var(--white);
    font-size: clamp(64px, 15vw, 210px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    font-size: 15px;
}

.last-modified {
    color: var(--white);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ===== 맨 위로 버튼 (A-01) ===== */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background-color: var(--ink);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s ease;
}

.to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background-color: var(--blue);
}

/* ===== 등장 움직임 (스크립트가 켜졌을 때만) ===== */
.js [data-reveal],
.js .week {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background-color 0.2s ease;
}

.js [data-reveal].is-in,
.js .week.is-in {
    opacity: 1;
    transform: none;
}

.js .week-done.is-in:hover,
.js .week-done.is-in:focus-visible,
.js .course-item.is-in .course-link:hover {
    transform: translateY(-4px);
}

.js .hero [data-reveal]:nth-child(2) { transition-delay: 70ms; }
.js .hero [data-reveal]:nth-child(3) { transition-delay: 140ms; }
.js .hero [data-reveal]:nth-child(4) { transition-delay: 210ms; }
.js .hero [data-reveal]:nth-child(5) { transition-delay: 280ms; }
.js .hero [data-reveal]:nth-child(6) { transition-delay: 350ms; }
.js .stats .stat:nth-child(2) { transition-delay: 70ms; }
.js .stats .stat:nth-child(3) { transition-delay: 140ms; }
.js .stats .stat:nth-child(4) { transition-delay: 210ms; }
.js .course-list li:nth-child(2) { transition-delay: 60ms; }
.js .course-list li:nth-child(3) { transition-delay: 120ms; }
.js .course-list li:nth-child(5) { transition-delay: 60ms; }
.js .course-list li:nth-child(6) { transition-delay: 120ms; }

.js .progress .progress-fill {
    transform: scaleX(0);
    transition: transform 1.1s var(--ease) 0.2s;
}

.js .progress.is-in .progress-fill {
    transform: scaleX(1);
}

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

    .dot {
        animation: none;
    }

    .js [data-reveal],
    .js .week,
    .js .progress .progress-fill {
        transform: none;
        transition: opacity 0.3s ease;
    }
}

/* ===== 반응형 ===== */
@media (max-width: 960px) {
    .brand-sub {
        display: none;
    }

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

    .course-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    :root {
        --bar-h: 116px;
    }

    .container {
        padding: 0 18px;
    }

    .bar-inner {
        flex-wrap: wrap;
        align-content: center;
        gap: 10px 12px;
    }

    .bar-nav {
        order: 3;
        width: 100%;
    }

    .bar-nav ul {
        justify-content: space-between;
    }

    .bar-nav a {
        padding: 6px 10px;
    }

    .hero {
        padding-top: 48px;
        padding-bottom: 72px;
    }

    .hero-name {
        font-size: 22vw;
    }

    .hero-intro {
        font-size: 17px;
    }

    .hero-actions .btn {
        flex: 1;
    }

    .stats {
        gap: 10px;
        margin-top: 48px;
    }

    .stat {
        padding: 20px 18px;
    }

    .stat-num {
        font-size: 40px;
    }

    .section {
        padding: 80px 0;
    }

    /* 표는 한 줄씩 카드처럼 쌓는다 */
    .record-table {
        min-width: 0;
    }

    .record-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .record-table,
    .record-table tbody,
    .record-table td {
        display: block;
    }

    .record-table tr {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 6px 12px;
        padding: 18px;
    }

    .record-table tr[hidden] {
        display: none;
    }

    .record-table td,
    .record-table tbody tr + tr td {
        padding: 0;
        border-top: 0;
    }

    .record-table tbody tr + tr {
        border-top: 1px solid var(--line);
    }

    .record-table .col-date,
    .record-table .col-type {
        width: auto;
    }

    .record-table .record-title,
    .record-table .record-role {
        grid-column: 1 / -1;
    }

    .course-list {
        grid-template-columns: 1fr;
    }

    .course {
        min-height: 0;
    }

    .week-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .week {
        min-height: 96px;
        padding: 14px;
    }

    .week-state {
        font-size: 15px;
    }

    .to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

/* ===== 실적 상세 링크와 프로젝트 카드 ===== */
.record-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.record-link:hover {
    color: var(--blue);
}

.record-link > span[aria-hidden="true"] {
    color: var(--blue);
}

.record-link .ext {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 6px;
    background-color: var(--activity-soft);
    color: var(--activity);
    font-size: 13px;
    font-weight: 700;
}

.showcase {
    margin-top: 64px;
}

.showcase-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.showcase-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.show-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--white);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: transform 0.25s var(--ease), border-color 0.2s ease;
}

.show-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
}

.show-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
    background-color: #000;
}

.show-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
}

.show-meta strong {
    font-size: 17px;
    line-height: 1.3;
}

.show-meta > span:last-child {
    color: var(--ink-sub);
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .showcase-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .showcase-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .show-meta {
        padding: 12px;
    }
}


/* ===== 상단 바 고정: 스크롤해도 항상 보이게 ===== */
.site-header {
    padding-top: var(--bar-h);
}

body > .bar + main {
    padding-top: var(--bar-h);
}

/* ===== 첫 화면: 글 + 팩맨 그림 ===== */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    align-items: center;
    gap: 48px;
}

.hero-skills {
    margin-top: 24px;
}

.skills-label {
    margin-bottom: 10px;
    color: var(--ink-sub);
    font-size: 14px;
    font-weight: 600;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background-color: var(--ink);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
}

.skill::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.skill-c::before { background-color: #7aa2ff; }
.skill-cs::before { background-color: #b98cff; }
.skill-py::before { background-color: #ffd84d; }
.skill-web::before { background-color: #ff8a5c; }
.skill-entry::before { background-color: #5fd38d; }

.hero-tags {
    margin-top: 14px;
}

.pac-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background-color: var(--ink);
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s var(--ease);
}

.pac-card:hover {
    transform: translateY(-6px) rotate(-1deg);
}

.pac-art {
    display: block;
    width: 100%;
    height: auto;
    padding: 18px 18px 0;
}

.pac-walls rect {
    fill: none;
    stroke: var(--blue);
    stroke-width: 3;
}

.pac-dots circle {
    fill: #f2e6c9;
}

.pac-dots {
    animation: pac-dots 0.5s linear infinite;
}

.pac-power {
    animation: pac-blink 0.8s steps(2) infinite;
}

.pac-ghost path {
    fill: var(--blue);
}

.ghost-eye {
    fill: var(--white);
}

.pac-ghost {
    animation: pac-float 1.6s ease-in-out infinite;
}

.pac-man path {
    fill: #ffd84d;
    transform-box: view-box;
    transform-origin: 120px 130px;
}

.pac-top {
    animation: pac-top 0.25s ease-in-out infinite alternate;
}

.pac-bottom {
    animation: pac-bottom 0.25s ease-in-out infinite alternate;
}

@keyframes pac-top {
    from { transform: rotate(-32deg); }
    to { transform: rotate(0deg); }
}

@keyframes pac-bottom {
    from { transform: rotate(32deg); }
    to { transform: rotate(0deg); }
}

@keyframes pac-dots {
    from { transform: translateX(0); }
    to { transform: translateX(-30px); }
}

@keyframes pac-blink {
    50% { opacity: 0.25; }
}

@keyframes pac-float {
    50% { transform: translateY(-6px); }
}

.pac-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 16px 24px 22px;
}

.pac-gh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b9c2d3;
    font-size: 14px;
}

.pac-gh svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pac-caption strong {
    color: #ffd84d;
}

@media (prefers-reduced-motion: reduce) {
    .pac-dots,
    .pac-power,
    .pac-ghost,
    .pac-top,
    .pac-bottom {
        animation: none;
    }
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pac-card {
        max-width: 480px;
    }
}

/* 제목이 왼쪽 칸을 넘어 팩맨 카드에 붙지 않게: 칸 너비에 맞춘 크기 + 넉넉한 간격 */
.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: 80px;
}

.hero-text {
    min-width: 0;
}

.hero-name {
    font-size: clamp(64px, 9.5vw, 136px);
}

@media (max-width: 1100px) {
    .hero-grid {
        gap: 48px;
    }
}

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

    .hero-name {
        font-size: clamp(72px, 16vw, 150px);
    }
}


/* ===== 수강 과목 학기 선택 ===== */
.term-head {
    position: relative;
}

.term-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px 0 0;
    border: 0;
    border-bottom: 3px solid var(--blue);
    background: none;
    color: var(--blue);
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.term-toggle svg {
    width: 0.7em;
    height: 0.7em;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.term-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.term-toggle:hover {
    color: var(--blue-dark);
}

.term-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    width: 280px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 16px;
    background-color: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.term-menu[hidden] {
    display: none;
}

.term-menu button {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.term-menu button span {
    color: var(--ink-sub);
    font-size: 13px;
    font-weight: 500;
}

.term-menu button:hover,
.term-menu button:focus-visible {
    background-color: var(--bg);
}

.term-menu button[aria-current="true"] {
    background-color: var(--blue-soft);
    color: var(--blue);
}

.course-list[hidden] {
    display: none;
}

.course-name {
    overflow-wrap: anywhere;
}
