/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* 스크롤 시 등장: 초기 숨김 → .in-view 시 표시 (마이메가텔 스타일 · 빠른 반응) */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

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

.fade-in-up.in-view:nth-child(1) { transition-delay: 0s; }
.fade-in-up.in-view:nth-child(2) { transition-delay: 0.04s; }
.fade-in-up.in-view:nth-child(3) { transition-delay: 0.08s; }
.fade-in-up.in-view:nth-child(4) { transition-delay: 0.12s; }
.fade-in-up.in-view:nth-child(5) { transition-delay: 0.16s; }
.fade-in-up.in-view:nth-child(6) { transition-delay: 0.2s; }

.rotating {
    animation: rotate 8s linear infinite;
}

/* Scroll reveal – 스크롤 시 약간의 애니메이션 (마이메가텔 스타일) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    width: 100%;
    padding: 32px 0;
}

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

.logo {
    display: block;
}

.profile-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-link {
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #6b7280;
}

/* Hero Section */
.hero {
    padding: 80px 0;
}

.hero-content {
    max-width: 100%;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

/* 미진 이름 돌아가는 초 */
.hero-name-cycle {
    display: inline-block;
    animation: hero-name-font-cycle 18s ease-in-out infinite;
    will-change: opacity;
}

@keyframes hero-name-font-cycle {
    /* Playfair Display */
    0%, 6%   { font-family: 'Playfair Display', serif; opacity: 1; }
    8%       { font-family: 'Playfair Display', serif; opacity: 0.4; }
    10%      { font-family: 'Montserrat', sans-serif; opacity: 0.4; }
    12%, 16% { font-family: 'Montserrat', sans-serif; opacity: 1; }
    /* Montserrat → Oswald */
    18%      { font-family: 'Montserrat', sans-serif; opacity: 0.4; }
    20%      { font-family: 'Oswald', sans-serif; opacity: 0.4; }
    22%, 26% { font-family: 'Oswald', sans-serif; opacity: 1; }
    /* Oswald → Lora */
    28%      { font-family: 'Oswald', sans-serif; opacity: 0.4; }
    30%      { font-family: 'Lora', serif; opacity: 0.4; }
    32%, 36% { font-family: 'Lora', serif; opacity: 1; }
    /* Lora → Raleway */
    38%      { font-family: 'Lora', serif; opacity: 0.4; }
    40%      { font-family: 'Raleway', sans-serif; opacity: 0.4; }
    42%, 46% { font-family: 'Raleway', sans-serif; opacity: 1; }
    /* Raleway → Pacifico */
    48%      { font-family: 'Raleway', sans-serif; opacity: 0.4; }
    50%      { font-family: 'Pacifico', cursive; opacity: 0.4; }
    52%, 56% { font-family: 'Pacifico', cursive; opacity: 1; }
    /* Pacifico → Bebas Neue */
    58%      { font-family: 'Pacifico', cursive; opacity: 0.4; }
    60%      { font-family: 'Bebas Neue', sans-serif; opacity: 0.4; }
    62%, 66% { font-family: 'Bebas Neue', sans-serif; opacity: 1; }
    /* Bebas Neue → Dancing Script */
    68%      { font-family: 'Bebas Neue', sans-serif; opacity: 0.4; }
    70%      { font-family: 'Dancing Script', cursive; opacity: 0.4; }
    72%, 76% { font-family: 'Dancing Script', cursive; opacity: 1; }
    /* Dancing Script → Anton */
    78%      { font-family: 'Dancing Script', cursive; opacity: 0.4; }
    80%      { font-family: 'Anton', sans-serif; opacity: 0.4; }
    82%, 86% { font-family: 'Anton', sans-serif; opacity: 1; }
    /* Anton → Space Grotesk */
    88%      { font-family: 'Anton', sans-serif; opacity: 0.4; }
    90%      { font-family: 'Space Grotesk', sans-serif; opacity: 0.4; }
    92%, 96% { font-family: 'Space Grotesk', sans-serif; opacity: 1; }
    /* Space Grotesk → Playfair (loop) */
    98%      { font-family: 'Space Grotesk', sans-serif; opacity: 0.4; }
    100%     { font-family: 'Playfair Display', serif; opacity: 1; }
}

.hero-subtitle {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #9ca3af;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 17px;
    color: #6b7280;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1f2937;
}

.btn-secondary {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

/* Projects Grid */
.projects {
    padding: 64px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    position: relative;
}

.project-link {
    display: block;
    cursor: pointer;
}

.project-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-link:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.project-link:hover .project-overlay {
    background-color: rgba(0, 0, 0, 0.1);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.project-text {
    flex: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.project-link:hover .project-title {
    color: #6b7280;
}

.project-category {
    color: #6b7280;
    font-size: 14px;
}

.project-index-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 10px;
}
.project-index-labels span {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.project-arrow {
    opacity: 0;
    transform: translateX(-16px);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 4px;
}

.project-link:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Project card — 제작중 (work in progress) */
.project-card--wip .project-link--disabled {
    cursor: not-allowed;
    pointer-events: none;
}
.project-card--wip .project-link:hover .project-image,
.project-card--wip .project-link:hover .project-overlay,
.project-card--wip .project-link:hover .project-title,
.project-card--wip .project-link:hover .project-arrow {
    transform: none;
    opacity: inherit;
}
.project-card--wip .project-image-wrapper {
    position: relative;
}
.project-card--wip .project-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}
.project-wip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 20px;
}
.project-card--wip {
    opacity: 0.88;
}

/* About Section */
.about {
    padding: 96px 0;
    border-top: 1px solid #e5e7eb;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-page-link {
    color: #111827;
    font-weight: 500;
    text-decoration: underline;
}
.about-page-link:hover {
    color: #374151;
}

/* Contact Section */
.contact {
    padding: 96px 0;
    border-top: 1px solid #e5e7eb;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #6b7280;
}

.contact-link:hover span {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid #e5e7eb;
}

.footer-text {
    color: #6b7280;
    font-size: 14px;
}

/* ===== ABOUT PAGE STYLES ===== */
.about-hero-avatar {
    margin-bottom: 20px;
}
.about-hero-avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}
.about-hero .project-main-title { margin-bottom: 8px; }
.about-hero .container { max-width: 1200px; }
.about-hero .overview-lead { max-width: 1200px; }
.about-intro { margin-bottom: 24px; }
.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.about-badge {
    font-size: 13px;
    color: #4b5563;
    background-color: #f3f4f6;
    padding: 8px 14px;
    border-radius: 999px;
}
.about-stats-row {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.about-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #111827;
}
.about-stat-label {
    font-size: 14px;
    color: #6b7280;
}
.about-subheading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}
.about-quote {
    margin: 32px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid #e5e7eb;
}
.about-quote-text {
    font-size: 1.125rem;
    font-style: italic;
    color: #374151;
    margin-bottom: 8px;
}
.about-quote-cite {
    font-size: 14px;
    color: #9ca3af;
    font-style: normal;
}
.about-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.about-skill-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}
.about-skill-emoji {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 12px;
}
.about-skill-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}
.about-skill-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 14px;
}
.about-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.about-skill-tags span {
    font-size: 12px;
    color: #6b7280;
    background-color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.about-tools-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.about-tools-heading {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.about-tools-list {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
}
.about-timeline {
    margin-top: 32px;
}
.about-timeline-item {
    display: block;
    padding-bottom: 48px;
    border-left: 2px solid #e5e7eb;
    margin-left: 32px;
    padding-left: 32px;
    position: relative;
    max-width: 100%;
}
.about-timeline-item:last-child { padding-bottom: 0; }
.about-timeline-marker {
    position: absolute;
    left: -21px;
    top: 2px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.about-timeline-item-current .about-timeline-marker { border-color: #111827; background: #f9fafb; }
.about-timeline-content {
    min-width: 0;
    max-width: 720px;
}
.about-timeline-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 4px;
}
.about-timeline-period {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}
.about-timeline-company {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.4;
}
.about-timeline-title {
    font-size: 15px;
    color: #374151;
    margin-bottom: 12px;
    line-height: 1.4;
}
.about-timeline-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 16px;
}
.about-timeline-bullets {
    list-style: disc;
    padding-left: 22px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}
.about-timeline-bullets li { margin-bottom: 8px; }
.about-timeline-bullets a { color: #111827; text-decoration: underline; }
.about-timeline-bullets a:hover { color: #374151; }
.about-cta-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}
.about-status {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-top: 16px;
    margin-bottom: 4px;
}
.about-status-note {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}
.about-contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-contact-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.2s;
}
.about-contact-link:hover { color: #374151; }
.about-contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}
.about-referees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.about-referee-card {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.about-referee-photo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f3f4f6;
}
.about-referee-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-referee-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.about-referee-company {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}
.about-referee-role {
    font-size: 0.9375rem;
    color: #4b5563;
    margin-bottom: 12px;
}
.about-referee-contact {
    font-size: 0.9375rem;
    line-height: 1.6;
}
.about-referee-contact a {
    color: #111827;
    text-decoration: none;
}
.about-referee-contact a:hover {
    text-decoration: underline;
}

.about-contact-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
}
.about-back-projects { margin-top: 40px; }
.about-section-lead { margin-bottom: 16px; }
.about-back-link {
    font-size: 14px;
    color: #6b7280;
    text-decoration: underline;
}
.about-back-link:hover { color: #111827; }

/* ===== PROJECT PAGE STYLES ===== */

/* Navigation */
.nav {
    width: 100%;
    padding: 32px 0;
}

.nav-content {
    display: flex;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #6b7280;
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Overview Section (top summary) — light gray bg full width */
.overview-section {
    padding: 72px 0 40px;
    border-bottom: none;
    background-color: #f9fafb;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.overview-section.fintech-overview-fixed .container {
    max-width: 1200px;
}
.overview-section.fintech-overview-fixed .overview-lead {
    max-width: 1200px;
}

.overview-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 8px;
}

.overview-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.overview-lead {
    max-width: 720px;
    font-size: 1.0625rem;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 40px;
}

.overview-strong {
    font-weight: 600;
}

.overview-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.overview-stat-card {
    border-radius: 16px;
    padding: 20px 24px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.overview-stat-number {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.overview-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
}

.overview-issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.overview-issue-card {
    border-radius: 14px;
    padding: 20px 22px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.overview-issue-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 10px;
}

.overview-issue-list {
    list-style: disc;
    padding-left: 18px;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.7;
}

.overview-issue-list li + li {
    margin-top: 4px;
}

/* Case study editorial layout */
.case-hero {
    padding: 64px 0 32px;
    background-color: #ffffff;
}

.case-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 10px;
}

.case-title {
    font-size: clamp(2.75rem, 5.2vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.case-subtitle {
    max-width: 760px;
    font-size: 1.125rem;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 28px;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.case-quote-block {
    margin-bottom: 24px;
    padding: 20px 0;
    border-left: 3px solid #7c3aed;
    padding-left: 20px;
}

.case-quote-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    font-style: italic;
    margin: 0;
}

.case-hero-image {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.belief-vs-reality {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.belief-column {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
}

.belief-column.reality {
    border-color: #7c3aed;
    background-color: #f5f3ff;
}

.belief-heading {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 12px;
}

.overview-stat-hint {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 2px;
}

.pillars-list {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

.pillar-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 24px;
}

.pillar-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #7c3aed;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.pillar-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.pillar-desc {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 10px;
}

.pillar-outcome {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

.case-section {
    padding: 64px 0;
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.case-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 10px;
}

.case-heading {
    font-size: clamp(2rem, 4.4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.case-text-wrap {
    max-width: 1200px;
    margin-bottom: 24px;
}

.case-text {
    max-width: 760px;
    font-size: 1.0625rem;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 14px;
}

.case-text-wrap .case-text {
    max-width: 100%;
}

.case-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0 12px;
}

.case-panel {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 22px;
}

.case-panel-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 10px;
}

.case-list {
    list-style: disc;
    padding-left: 18px;
    color: #4b5563;
    line-height: 1.7;
}

.case-list li + li {
    margin-top: 6px;
}

/* AI 활용 캐릭터와 스토리텔링 갤러리 */
/* AI 스토리 — story boxes (코딩 블록 스타일) */
.ai-story-section {
    margin-top: 48px;
}
.ai-story-section .subsection-title {
    margin-bottom: 24px;
}
.story-box-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.story-box {
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Mono', Consolas, monospace;
}
.story-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}
.story-box-label {
    font-size: 13px;
    color: #555;
    letter-spacing: 0.02em;
}
.story-box-copy {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.story-box-copy:hover {
    background: #e8e8e8;
    color: #333;
}
.story-box-body {
    padding: 20px 24px 24px;
    color: #2d2d2d;
    font-size: 14px;
    line-height: 1.65;
}
.story-box-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}
.story-box-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.story-box-subtitle-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}
.story-box-para {
    margin: 0 0 12px;
}
.story-box-para:last-child {
    margin-bottom: 0;
}

.ai-character-gallery {
    margin-top: 48px;
    max-width: 1200px;
}

.ai-character-gallery .subsection-title {
    margin-bottom: 24px;
}

.ai-character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.ai-character-item {
    border-radius: 16px;
    overflow: hidden;
    background-color: #f9fafb;
}

.ai-character-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.case-image-block {
    margin-top: 28px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

/* Project Hero */
.project-hero {
    padding: 48px 0;
}

.project-main-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 400;
    margin-bottom: 16px;
}

.project-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 8px;
}

.meta-value {
    font-size: 18px;
}

.project-overview {
    margin-bottom: 32px;
}

.overview-tagline {
    font-size: 1.125rem;
    color: #374151;
    font-style: italic;
    margin-bottom: 16px;
}

.overview-text {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
}

.overview-image {
    margin-top: 32px;
    margin-bottom: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.full-image {
    width: 100%;
    height: auto;
}

/* ===== CASE STUDY LAYOUT (MyMegatel — minimal header, hero, metrics) ===== */
.page-case-study {
    background-color: #fff;
}

.case-study-header {
    width: 100%;
    padding: 28px 0;
    border-bottom: none;
}

.case-study-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.case-study-logo {
    color: #111827;
    display: flex;
    align-items: center;
    justify-self: start;
    transition: opacity 0.2s ease;
}

.case-study-logo:hover {
    opacity: 0.7;
}

.case-study-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-self: center;
}

.case-study-nav-link {
    font-size: 15px;
    font-weight: 400;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.case-study-nav-link:hover {
    color: #111827;
}

.case-study-contact-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #111827;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9999px;
    justify-self: end;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.case-study-contact-btn:hover {
    background-color: #374151;
    color: #fff;
}

.case-study-hero {
    padding: 56px 0 48px;
}

.case-study-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.case-study-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 12px 0;
}

.case-study-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 700;
    color: #6b7280;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.case-study-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    margin: 0 0 40px 0;
}

.case-study-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.case-study-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.case-study-meta-value {
    font-size: 1rem;
    font-weight: 400;
    color: #111827;
}

.case-study-hero-visual {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #e5e7eb;
    min-height: 320px;
}

.case-study-hero-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

/* Project overview block (repeated title + intro + Key Solutions / Result) */
.case-study-overview-block {
    padding: 56px 0 48px;
}

.case-study-overview-inner {
    max-width: 720px;
    margin: 0 auto;
}

.case-study-title--repeat {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 8px;
}

.case-study-subtitle--repeat {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 28px;
}

.case-study-overview-lead {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
    margin: 0 0 24px 0;
}

.case-study-key-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #111827;
}

.case-study-key-solutions {
    margin: 0 0 12px 0;
    font-weight: 500;
}

.case-study-result {
    margin: 0;
    font-weight: 500;
}

/* Code snippet block (dark, rounded) */
.case-study-code-block {
    margin: 48px 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #111827;
    padding: 24px 28px;
}

.case-study-code-block pre,
.case-study-code-block code {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", "Source Code Pro", Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e5e7eb;
    margin: 0;
}

.case-study-code-block .code-comment { color: #9ca3af; }
.case-study-code-block .code-keyword { color: #93c5fd; }
.case-study-code-block .code-string { color: #86efac; }
.case-study-code-block .code-prop { color: #fcd34d; }
.case-study-code-block .code-number { color: #fde047; }

.case-study-metrics {
    padding: 48px 0 56px;
}

.case-study-metrics-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 48px 64px;
    max-width: 900px;
    margin: 0 auto;
}

.case-study-metric {
    flex: 0 0 auto;
}

.case-study-metric-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.03em;
    margin: 0 0 4px 0;
}

.case-study-metric-label {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
}

/* Section Divider — alternate white / light gray by section order */
.section-divider {
    padding: 64px 0;
    border-top: none;
    background-color: #ffffff;
}

.section-divider.temp-hidden {
    display: none;
}

section.section-divider:nth-of-type(even) {
    background-color: #ffffff;
}

section.section-divider:nth-of-type(odd) {
    background-color: #f9fafb;
}

.section-intro {
    color: #4b5563;
    font-size: 16px;
    margin-bottom: 48px;
}

/* Problem Statement */
.problem-main {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.problem-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.problem-statement {
    font-size: 20px;
    line-height: 1.8;
    color: #111827;
}

.insight-box {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.insight-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 8px;
}

.insight-text {
    color: #374151;
    line-height: 1.8;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.issue-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.issue-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.issue-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.issue-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.issue-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.issue-description {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 16px;
    line-height: 1.6;
}

.issue-impact {
    background-color: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}

.impact-text {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* Problem Statement – colored issue numbers & count-up */
.issues-grid--colored .issue-card--1 .issue-number {
    background-color: #e5e7eb;
    color: #4b5563;
}
.issues-grid--colored .issue-card--1 .impact-text .count-up-number {
    color: #374151;
    font-weight: 700;
}

.issues-grid--colored .issue-card--2 .issue-number {
    background-color: #e5e7eb;
    color: #4b5563;
}
.issues-grid--colored .issue-card--2 .impact-text .count-up-number {
    color: #374151;
    font-weight: 700;
}

.issues-grid--colored .issue-card--3 .issue-number {
    background-color: #e5e7eb;
    color: #4b5563;
}
.issues-grid--colored .issue-card--3 .impact-text .count-up-number,
.issues-grid--colored .issue-card--3 .issue-description .count-up-number {
    color: #374151;
    font-weight: 700;
}

/* User Research */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.research-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.research-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.user-occupation {
    font-size: 14px;
    color: #6b7280;
}

.user-quote {
    margin-bottom: 16px;
    padding-left: 16px;
}

.quote-icon {
    width: 20px;
    height: 20px;
    color: #d1d5db;
    margin-bottom: 8px;
}

.quote-text {
    color: #374151;
    font-style: italic;
    line-height: 1.6;
}

.pain-point {
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
}

.pain-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
}

.pain-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Design Solutions — big title + Before & After below */
.solutions-section {
    background-color: transparent;
    padding: 48px 0 32px;
    border-radius: 16px;
}

.design-solutions-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    margin: 0 0 40px 0;
}

.solutions-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111827;
}

.solutions-icon {
    width: 32px;
    height: 32px;
    color: #9ca3af;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.solution-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.solution-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.solution-icon svg {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.solution-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.solution-description {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
    line-height: 1.6;
}

.solution-result {
    padding-top: 12px;
}

.result-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 6px;
}

.result-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Design Solutions – colored icons & titles */
.solutions-grid--colored .solution-card--1 .solution-icon {
    background-color: #e5e7eb;
}
.solutions-grid--colored .solution-card--1 .solution-icon svg {
    color: #6b7280;
}
.solutions-grid--colored .solution-card--1 .solution-title {
    color: #111827;
}

.solutions-grid--colored .solution-card--2 .solution-icon {
    background-color: #e5e7eb;
}
.solutions-grid--colored .solution-card--2 .solution-icon svg {
    color: #6b7280;
}
.solutions-grid--colored .solution-card--2 .solution-title {
    color: #111827;
}

.solutions-grid--colored .solution-card--3 .solution-icon {
    background-color: #e5e7eb;
}
.solutions-grid--colored .solution-card--3 .solution-icon svg {
    color: #6b7280;
}
.solutions-grid--colored .solution-card--3 .solution-title {
    color: #111827;
}

/* Before & After (Design Solutions) — 솔루션 카드 아래 */
.before-after-section {
    margin-top: 48px;
    margin-bottom: 48px;
    padding-top: 0;
    border-top: none;
}

.before-after-heading {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 32px;
}

.before-after-set {
    margin-bottom: 48px;
}

.before-after-set:last-child {
    margin-bottom: 0;
}

.before-after-solution-label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 16px;
}

.before-after-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 78%;
    margin-left: auto;
    margin-right: auto;
}

.before-after-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.before-after-image {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #f9fafb;
}

/* 비포 이미지만 흑백 */
.before-after-pair .before-after-item:first-child .before-after-image {
    filter: grayscale(100%);
}

.before-after-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

/* Design System */
.design-subsection {
    margin-bottom: 48px;
}

.subsection-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 16px;
}

.typography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.font-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.font-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 12px;
}

.font-display {
    font-size: 3rem;
    margin-bottom: 8px;
}

.font-description {
    font-size: 14px;
    color: #4b5563;
}

.font-display-character {
    font-family: 'ONE Mobile POP', 'Nunito', sans-serif;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.color-swatch {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-box {
    width: 64px;
    height: 64px;
    border-radius: 8px;
}

.color-name {
    font-size: 10px;
    line-height: 1.3;
}

.color-value {
    font-size: 9px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.component-card {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.component-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.component-description {
    font-size: 14px;
    color: #4b5563;
}

/* User Flow / Video */
.flow-video {
    background-color: #f9fafb;
    padding: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.flow-video-player {
    width: 100%;
    max-width: 896px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Figma embed (User Flow) */
.figma-embed-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.figma-embed {
    width: 100%;
    height: 900px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prototype-figma-wrap {
    margin-bottom: 12px;
}

.prototype-embed {
    height: 900px;
}

.prototype-screens-title {
    margin-top: 48px;
    margin-bottom: 24px;
}

.prototype-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.prototype-card {
    aspect-ratio: 9/16;
    background-color: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}

.prototype-card .grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flow-caption {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
    margin-top: 16px;
}

/* Prototype & Slider */
.prototype-slider,
.final-slider {
    position: relative;
    max-width: 500px;
    margin: 0 auto 32px;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    background-color: #f9fafb;
    padding: 32px;
    border-radius: 8px;
    justify-content: center;
    align-items: flex-start;
}

.slide.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prototype-image,
.final-image,
.final-video {
    width: auto;
    max-height: 900px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    object-fit: contain;
}

.key-screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.key-screen-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    object-fit: contain;
    background: #fff;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
    left: 16px;
}

.slider-btn.next {
    right: 16px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: #111827;
}

.prototype-caption {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
    margin-top: 16px;
}

/* A/B Testing */
.testing-overview {
    background-color: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.testing-description {
    color: #4b5563;
    margin-bottom: 12px;
}

.testing-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-dot {
    width: 8px;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 50%;
}

.stat-text {
    font-weight: 500;
}

/* Prototype — Figma embed */
.prototype-embed-wrap {
    margin-top: 40px;
    margin-bottom: 40px;
}
.prototype-embed-wrap .subsection-title {
    margin-bottom: 16px;
}
.prototype-embed-container {
    width: 100%;
    max-width: 1200px;
    height: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
}
.prototype-embed-iframe {
    width: 100% !important;
    height: 100% !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    display: block;
}

/* Final design website — iframe embed */
.final-website-wrap {
    margin-top: 40px;
    margin-bottom: 40px;
}
.final-website-wrap .subsection-title {
    margin-bottom: 8px;
}
.final-website-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}
.final-website-desc a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 500;
}
.final-website-desc a:hover {
    text-decoration: underline;
}
.final-website-iframe-container {
    width: 100%;
    height: calc(70vh + 200px);
    min-height: 680px;
    max-height: 1000px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}
.final-website-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.variant-card {
    padding: 24px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.variant-card.winner {
    background-color: #ffffff;
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.variant-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.winner-badge {
    font-size: 10px;
    background-color: #e5e7eb;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 600;
}

.variant-description {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.variant-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-box {
    background-color: #fafafa;
    padding: 16px;
    border-radius: 8px;
}

.variant-card:not(.winner) .metric-box {
    background-color: #fafafa;
}

.metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
}

.metric-value.winner-value,
.metric-value.winner-value .count-up-number {
    color: #6b7280;
}

.metric-value.variant-b-value .count-up-number {
    color: #6b7280;
}

/* Validation section count-up numbers (testing stats) */
#validation-section .stat-number {
    color: #374151;
    font-weight: 700;
}

.metric-detail {
    font-size: 14px;
    color: #6b7280;
}

.variant-card.winner .metric-detail {
    font-style: italic;
}

/* Business Impact */
.impact-section {
    background: transparent;
    padding: 32px;
    border-radius: 12px;
}

.impact-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.impact-title svg {
    color: #9ca3af;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.impact-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.impact-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: #6b7280;
}

.impact-card-reduction .impact-number,
.impact-card-reduction .count-up-number {
    color: #6b7280;
}

.impact-card-increase .impact-number,
.impact-card-increase .count-up-number {
    color: #6b7280;
}

.impact-card-engagement .impact-number.impact-arrow {
    color: #6b7280;
    font-size: 2.5rem;
}

.impact-change {
    font-size: 14px;
    color: #4b5563;
}

.impact-label {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.impact-note {
    font-size: 12px;
    color: #6b7280;
}

/* Developer Handoff */
.handoff-overview {
    background-color: #f3f4f6;
    color: #374151;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.handoff-description {
    font-size: 18px;
    line-height: 1.8;
}

.handoff-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.process-step {
    background-color: #f9fafb;
    padding: 24px;
    border-radius: 8px;
}

.process-step:nth-child(2) {
    background-color: #fafafa;
}

.process-step:nth-child(3) {
    background-color: #f9fafb;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
}

.process-step:nth-child(2) .step-number {
    background-color: #e5e7eb;
}

.process-step:nth-child(3) .step-number {
    background-color: #e5e7eb;
}

/* Developer Handoff – colored steps */
.handoff-process--colored .process-step:nth-child(1) .step-number {
    background-color: #e5e7eb;
    color: #4b5563;
}
.handoff-process--colored .process-step:nth-child(1) .step-title {
    color: #111827;
}

.handoff-process--colored .process-step:nth-child(2) .step-number {
    background-color: #e5e7eb;
    color: #4b5563;
}
.handoff-process--colored .process-step:nth-child(2) .step-title {
    color: #111827;
}

.handoff-process--colored .process-step:nth-child(3) .step-number {
    background-color: #e5e7eb;
    color: #4b5563;
}
.handoff-process--colored .process-step:nth-child(3) .step-title {
    color: #111827;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-description {
    font-size: 14px;
    color: #374151;
}

.handoff-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.details-card {
    background-color: #fff;
    padding: 24px;
    border-radius: 12px;
}

.details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.details-header svg {
    color: #d1d5db;
}

.details-header:has(+ ul) svg {
    color: #d1d5db;
}

/* Developer Handoff – colored Tools Used & Deliverables */
.handoff-details--colored .details-card--tools .details-title {
    color: #111827;
}
.handoff-details--colored .details-card--tools .details-header svg {
    color: #9ca3af;
}
.handoff-details--colored .details-card--tools .detail-item::before {
    background-color: #d1d5db;
}

.handoff-details--colored .details-card--deliverables .details-title {
    color: #111827;
}
.handoff-details--colored .details-card--deliverables .details-header svg {
    color: #9ca3af;
}
.handoff-details--colored .details-card--deliverables .detail-item::before {
    background-color: #d1d5db;
}

.handoff-image-wrap {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.handoff-team-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.details-title {
    font-size: 18px;
    font-weight: 600;
}

.details-list {
    list-style: none;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
    background-color: #fafafa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.detail-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* Final Designs Grid */
.grid-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 24px;
    margin-top: 48px;
}

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

.final-card {
    background-color: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 12px 0 0;
    text-align: center;
    padding: 0 8px;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-video {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: contain;
    display: block;
    background-color: #f3f4f6;
    border-radius: 20px;
}

/* Character-led explanations (4 videos) */
.character-led-section {
    margin-top: 48px;
}
.character-led-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}
.character-led-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.character-led-video-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
}
.character-led-video {
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
    .character-led-videos {
        grid-template-columns: 1fr;
    }
}

/* Final Designs — 화면 이미지 한 문단에 두 개씩 (비포에프터처럼, 모서리 30px) */
.final-screens-wrap {
    margin-top: 16px;
}

.final-screen-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.final-screen-pair:last-child {
    margin-bottom: 0;
}

.final-screen-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.final-screen-img {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 30px;
    object-fit: contain;
    background-color: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.final-screen-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

/* Next Link */
.next-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.next-link:hover {
    color: #6b7280;
}

.next-link svg {
    transition: transform 0.3s ease;
}

.next-link:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title,
    .hero-subtitle {
        font-size: 2.5rem;
    }

    .project-main-title {
        font-size: 3rem;
    }

    .project-meta {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .case-meta,
    .case-split,
    .belief-vs-reality,
    .about-skills-grid {
        grid-template-columns: 1fr;
    }

    .ai-character-grid {
        grid-template-columns: 1fr;
    }

    .issues-grid,
    .research-grid,
    .solutions-grid,
    .components-grid,
    .variants-grid,
    .impact-grid,
    .handoff-process,
    .handoff-details {
        grid-template-columns: 1fr;
    }

    .final-grid,
    .prototype-grid {
        grid-template-columns: 1fr;
    }

    .final-screen-pair {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .before-after-pair {
        grid-template-columns: 1fr;
    }

    .colors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
