:root {
    --bg-color: #0a0a0a;
    /* 가장 깊은 차콜 블랙 */
    --card-bg: #151515;
    /* 카드 대비를 위한 약간 밝은 블랙 */
    --accent: #d4af37;
    /* 럭셔리 골드 */
    --text-main: #f2f2f2;
    --text-muted: #888888;
    --border-color: #262626;
    --border-gold: rgba(212, 175, 55, 0.3);
    --radius: 12px;
    --max-width: 920px;
    /* 좁고 밀도 높은 레이아웃 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-wrapper {
    padding: 20px 0 100px;
}

/* 커맨드 헤더 (상단 네비게이션) */
.command-header {
    max-width: var(--max-width);
    margin: 0 auto 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 30px;
    position: sticky;
    top: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo {
    font-weight: 950;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
}

.app-breadcrumb {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.app-breadcrumb .active {
    color: var(--accent);
    font-weight: 800;
}

.app-nav {
    display: flex;
    gap: 12px;
}

.btn-top-primary,
.btn-top-secondary {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-top-primary {
    background: var(--accent);
    color: #000;
}

.btn-top-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

/* 메인 대시보드 레이아웃 */
.dashboard-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 히어로 인사이트 섹션 */
.dash-hero {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 60px 40px;
    /* PC 패딩 축소하여 공간 확보 */
    margin-bottom: 30px;
    text-align: left;
}

/* Hero Content & Signature Styling */
.hero-header {
    margin-bottom: 10px;
    /* 박스를 최대한 위로 붙여서 노출성 극대화 */
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin: 0;
}

.hero-signature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--accent);
    width: fit-content;
    border-radius: 0 8px 8px 0;
}

.sig-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sig-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sig-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sig-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.sig-role {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    width: fit-content;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name .name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.profile-name .sign {
    font-size: 0.75rem;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .hero-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .hero-profile {
        flex-direction: row;
        min-width: auto;
        padding: 15px 25px;
    }
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.pulse {
    animation: pulser 2s infinite;
}

@keyframes pulser {
    0% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.4;
        transform: scale(1.5)
    }

    100% {
        opacity: 1;
        transform: scale(1)
    }
}

.app-footer {
    text-align: center;
    /* 푸터 가운데 정렬 */
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
}

.status-text {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 50px;
}

.hero-title .highlight {
    color: var(--accent);
    display: block;
    margin-top: 10px;
}

.hero-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 10px;
    text-align: left;
}

.card-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 1.2rem;
    /* 글자 크기 살짝 축소하여 한 줄 유지 */
    font-weight: 900;
    margin: 8px 0;
    color: #fff;
    white-space: nowrap;
    /* 줄바꿈 방지 */
}

.card-progress {
    width: 100%;
    height: 2px;
    background: #222;
}

.card-progress .bar {
    height: 100%;
    background: var(--accent);
}

/* 모듈형 섹션 공통 */
.dash-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 60px 40px;
    margin-bottom: 30px;
}

.section-meta {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 30px;
    letter-spacing: 4px;
}

.module-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.sub-module-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 30px 0 20px;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

.mt-50 {
    margin-top: 50px;
}

.mt-30 {
    margin-top: 30px;
}

.module-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* 브랜드 전략 그리드 */
.strategic-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

.strategic-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius);
}

.strategic-card.main-card {
    grid-row: span 2;
}

.icon-box {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.strategic-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.strategic-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.prop-list {
    list-style: none;
    margin-top: 30px;
}

.prop-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.prop-list i {
    color: var(--accent);
}

/* 포트폴리오 및 필터 섹션 */
.db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 175, 55, 0.05);
}

.portfolio-container {
    padding: 30px;
}

.portfolio-db-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-height: 750px;
    /* 대략 2~3행 노출 후 스크롤 */
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

/* 커스텀 스크롤바 (Chrome, Safari) */
.portfolio-db-grid::-webkit-scrollbar {
    width: 4px;
}

.portfolio-db-grid::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-db-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
}

.project-card.clickable-project {
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 프로젝트 이미지 */
.project-img {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #111;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.5s;
}

.project-card:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.project-info {
    padding: 24px;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}

.tag.gold {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
}

.tag.border {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 이미지 빈 박스 (플레이스홀더) */
.empty-placeholder {
    background: rgba(40, 40, 40, 0.3) !important;
    border: 1px dashed var(--border-color) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 15px;
    min-height: 220px;
}

.empty-placeholder i {
    font-size: 2.5rem;
    opacity: 0.3;
}

.empty-placeholder span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* 3D 가상 투어 섹션 */
.tour-preview-card {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.3s;
}

.tour-preview-card:hover {
    border-color: var(--accent) !important;
    background: rgba(212, 175, 55, 0.05) !important;
}

.tour-preview-card i {
    font-size: 4rem;
    color: var(--accent);
}

/* 수상 내역 프리미엄 리스트 */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.award-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: var(--radius);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.award-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: 0.3s;
}

.award-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 60px;
}

.award-content {
    flex: 1;
    color: #fff;
    font-size: 0.95rem;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.award-badge {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0.5;
    transition: 0.3s;
}

.award-item:hover {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.05);
    transform: translateX(5px);
}

.award-item:hover::before {
    background: var(--accent);
}

.award-item:hover .award-badge {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .award-item {
        padding: 12px 15px;
    }

    .award-content {
        font-size: 0.85rem;
        padding-left: 10px;
    }
}

.tour-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius);
}

/* 수상 경력 섹션 */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.award-card.small {
    min-height: 120px;
}

/* 자주 묻는 질문 & 가이드 */
.guide-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* 위키 레이아웃 (FAQ) */
.wiki-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.wiki-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.acc-q {
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.acc-a {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.review-widget {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--accent);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.review-widget p {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.author {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--accent);
}

/* 3D 가상 투어 그리드 */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.tour-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.tour-card .tour-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tour-card .tour-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
}

.tour-card .tour-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: 0.3s;
}

.tour-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.tour-card .tour-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.tour-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tour-card:hover .tour-thumbnail img {
    opacity: 0.8;
    transform: scale(1.1);
}

.tour-card:hover .tour-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.tour-info-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.tour-info-box i {
    font-size: 1.5rem;
    color: var(--accent);
    padding-top: 5px;
}

.tour-info-box h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1rem;
}

.tour-info-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

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

.award-full-view {
    margin-top: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
}

.award-full-view img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    filter: grayscale(0.2);
    transition: 0.5s;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.award-full-view:hover img {
    filter: grayscale(0);
    transform: scale(1.01);
}

.award-caption {
    margin-top: 15px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 헤더 프로필 아바타 */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
    margin-right: 20px;
}

.avatar-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.user-role {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 500;
}

@media (max-width: 768px) {
    .user-profile {
        margin-right: 10px;
        padding-right: 0;
        border-right: none;
    }

    .user-info {
        display: none;
    }
}

/* 최종 하단 호출 (CTA) */
.dash-final {
    text-align: center;
    padding: 100px 40px !important;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.final-inner h2 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -1.5px;
}

.btn-main-gold {
    background: var(--accent);
    color: #000;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-block;
    transition: 0.3s;
}

.btn-main-gold:hover {
    background: #fff;
}

.btn-main-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-block;
    margin-left: 15px;
}

/* 페이드 인 애니메이션 (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .command-header {
        top: 10px;
        padding: 15px 20px;
        margin: 0 10px 20px;
    }

    .app-header {
        padding: 5px 15px;
        /* 헤더 높이 대폭 축소 */
    }

    .app-header {
        padding: 2px 12px;
        /* 헤더 높이 극단적 축소 */
    }

    .app-logo {
        font-size: 0.8rem;
        /* 로고 폰트 더 작게 */
    }

    .btn-top-primary,
    .btn-top-secondary {
        padding: 6px 10px;
        /* 버튼 더 콤팩트하게 */
        font-size: 0.8rem;
    }

    .dash-hero {
        padding: 40px 20px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 5px !important;
        /* 대표님 박스와 밀착 */
        word-break: keep-all;
    }

    .hero-content {
        gap: 10px !important;
        /* 타이틀과 대표님 박스 사이 간격 원천 봉쇄 */
    }

    .hero-summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dash-section {
        padding: 15px 15px !important;
        margin-bottom: 0px;
    }

    #awards.dash-section {
        background: transparent !important;
        border: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .db-header {
        margin-bottom: 5px !important;
        /* 타이틀 하단 여백 대폭 축소 */
    }

    .portfolio-container {
        padding: 0 !important;
        overflow: hidden;
        margin-top: -15px !important;
        /* 위쪽 여백을 더 바짝 끌어올림 */
        /* 포트폴리오 리스트와 갤러리 타이틀 사이 간격 축소 */
    }

    .portfolio-db-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0 15px 0 !important;
        /* 내부 패딩 제거 (섹션 패딩이 처리) */
        gap: 15px !important;
        grid-template-columns: none !important;
        margin-left: -15px;
        /* 섹션 패딩 상쇄를 위해 마이너스 마진 */
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .project-card .project-img {
        height: 160px !important;
        /* 이미지 고를 가로로 길게 보이게 세로 축소 */
    }

    .project-info h3 {
        font-size: 1.1rem !important;
        /* 글자 크기 축소 */
    }

    .project-info p {
        font-size: 0.8rem !important;
    }

    .portfolio-db-grid::-webkit-scrollbar {
        display: none;
        /* 스크롤바 숨김 */
    }

    .project-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        margin-bottom: 0 !important;
        background: var(--card-bg);
        border-radius: 12px;
        overflow: hidden;
        margin-left: 15px;
        /* 슬라이더 첫 카드 여백 */
    }

    .project-card:last-child {
        margin-right: 15px;
        /* 마지막 카드 여백 */
    }

    .project-info {
        padding: 15px;
        /* 텍스트가 박스 끝에 붙지 않도록 패딩 확보 */
    }

    .module-title {
        font-size: 1.5rem;
    }

    .strategic-grid,
    .portfolio-db-grid,
    .wiki-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        /* 간격 살짝 축소 */
    }

    .tour-preview-card {
        height: 250px;
    }

    .awards-grid {
        grid-template-columns: 1fr;
        padding: 0;
        /* 내부 여백 제거하여 이미지 확장 */
    }

    .award-full-view {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 15px;
    }

    .award-img-container {
        padding: 0 !important;
        margin-top: 10px;
    }

    .award-img-container img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        transform: scale(1.05);
        /* 사진 조금 더 확대 */
    }

    .dash-final {
        padding: 60px 20px !important;
    }

    .final-inner h2 {
        font-size: 1.4rem !important;
        /* 모바일 가독성 상향 위해 폰트 축소 */
        line-height: 1.4;
        word-break: keep-all;
    }

    .final-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }

    .btn-main-gold,
    .btn-main-outline {
        white-space: nowrap !important;
        /* 텍스트 깨짐(줄바꿈) 방지 */
        font-size: 0.85rem !important;
        padding: 15px 10px !important;
    }

    .app-nav {
        flex-direction: row !important;
        align-items: center;
        gap: 8px;
        width: auto;
    }

    .app-nav a {
        width: auto !important;
        white-space: nowrap;
        font-size: 0.65rem !important;
        padding: 6px 12px !important;
        border-radius: 4px;
    }

    .btn-top-secondary {
        border: 1px solid var(--border-color) !important;
        background: var(--card-bg);
        color: var(--text-main);
    }

    .btn-top-primary {
        background: var(--accent) !important;
        color: #000 !important;
        font-weight: 800;
    }

    .btn-main-gold,
    .btn-main-outline {
        width: 100%;
        margin-left: 0;
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

/* 최종 하단 호출 (CTA) */
.dash-final {
    text-align: center;
    padding: 100px 40px !important;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.final-inner h2 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -1.5px;
}

.btn-main-gold {
    background: var(--accent);
    color: #000;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-block;
    transition: 0.3s;
}

.btn-main-gold:hover {
    background: #fff;
}

.btn-main-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-block;
    margin-left: 15px;
}

/* 페이드 인 애니메이션 (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 초소형 모바일 대응 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .card-value {
        font-size: 1.1rem !important;
    }
}

/* 프로젝트 상세 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-main);
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 25px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-weight: 800;
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.close-modal {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    flex: 1;
    width: 100%;
    height: 100%;
}

#project-iframe {
    width: 100%;
    height: 100%;
    border: none;
}