@charset "utf-8";

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
    --cream:    #ffffff;
    --dust:     #fef3f6;
    --ink:      #1C1C1C;
    --mist:     #888888;
    --rule:     #E0D8D0;
    --blush:    #E8A5B9;
    --rose:     #C4607A;
    --charcoal: #111111;
    --white:    #FFFFFF;

    --ff-serif: 'EB Garamond', Georgia, serif;
    --ff-sans:  'Noto Sans KR', sans-serif;
    --ff-mono:  'Montserrat', sans-serif;

    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-inout:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   1. RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    margin: 0;
    padding-top: 70px;
    overflow-x: hidden;
    transition: opacity 0.5s ease;
}

body.loading { opacity: 0; }
body:not(.loading) { opacity: 1; }

h1, h2, h3, h4 {
    font-family: var(--ff-mono);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 16px;
    line-height: 1.2;
}

h1 {
    font-family: var(--ff-serif);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

ul { list-style: none; padding: 0; margin: 0; }

img {
    max-width: 100%;
    display: block;
}

.section-padding { padding: 100px 0; }

/* =========================================
   2. PAGE LOADER
   ========================================= */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-name {
    display: block;
    font-family: var(--ff-serif);
    font-size: 3rem;
    color: var(--white);
    letter-spacing: 8px;
    margin-bottom: 24px;
    animation: loaderPulse 1.2s ease-in-out infinite alternate;
}

@keyframes loaderPulse {
    from { opacity: 0.4; }
    to   { opacity: 1; }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    background: var(--blush);
    width: 0;
    transition: width 0.7s var(--ease-out);
    border-radius: 2px;
}

/* =========================================
   3. SCROLL PROGRESS BAR
   ========================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blush), var(--rose));
    z-index: 2000;
    width: 0;
    transition: width 0.1s linear;
}

/* =========================================
   5. SCROLL REVEAL SYSTEM
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity  0.85s var(--ease-out),
        transform 0.85s var(--ease-out);
    transition-delay: var(--delay, 0ms);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   6. NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(253, 250, 246, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

nav.scrolled {
    background: rgba(253, 250, 246, 0.97);
    border-bottom-color: var(--rule);
    box-shadow: 0 2px 20px rgba(28, 28, 28, 0.06);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
}

.logo-serif {
    font-family: var(--ff-serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.logo:hover .logo-serif { color: var(--blush); }

/* Nav menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu li { display: inline-block; }

.nav-link {
    position: relative;
    font-family: var(--ff-mono);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ink);
    padding: 6px 14px;
    border-radius: 20px;
    transition: color 0.3s, background 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 28px);
    height: 1.5px;
    background: var(--blush);
    transition: transform 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover { color: var(--rose); }
.nav-link.active { color: var(--rose); }

/* Hamburger */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
    transform-origin: center;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================================
   7. HERO
   ========================================= */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0 60px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.hero-bg-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
}

.deco-c1 {
    width: 520px;
    height: 520px;
    right: -80px;
    top: -120px;
    background: radial-gradient(circle, rgba(232,165,185,0.12) 0%, transparent 70%);
}

.deco-c2 {
    width: 280px;
    height: 280px;
    left: -60px;
    bottom: 80px;
    background: radial-gradient(circle, rgba(232,165,185,0.08) 0%, transparent 70%);
}

.deco-line {
    position: absolute;
    background: var(--blush);
    opacity: 0.15;
}

.deco-l1 {
    width: 1px;
    height: 200px;
    right: 15%;
    bottom: 80px;
}

/* Hero text stagger animation */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-anim {
    opacity: 0;
    animation: heroFadeUp 0.9s var(--ease-out) both;
    animation-delay: calc(var(--i, 1) * 0.12s + 0.7s);
}

/* Subtitle */
.subtitle {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* H1 */
header h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
    color: var(--ink);
}

header h1 em {
    font-style: italic;
    color: var(--rose);
}

/* Description */
.description {
    font-size: 1rem;
    color: #666;
    line-height: 1.85;
    margin-bottom: 44px;
    max-width: 440px;
}

.desc-quote {
    display: block;
    font-family: var(--ff-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    font-style: italic;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--blush);
    color: var(--white);
    border-radius: 32px;
    font-family: var(--ff-mono);
    font-weight: 600;
    font-size: 0.83rem;
    letter-spacing: 0.5px;
    border: 1.5px solid var(--blush);
    box-shadow: 0 4px 20px rgba(232, 165, 185, 0.35);
    transition:
        background 0.3s var(--ease-out),
        border-color 0.3s,
        transform 0.25s var(--ease-out),
        box-shadow 0.3s;
}

.button:hover {
    background: var(--rose);
    border-color: var(--rose);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(196, 96, 122, 0.4);
    color: var(--white);
}

.button.outline {
    background: transparent;
    color: var(--blush);
    box-shadow: none;
}

.button.outline:hover {
    background: var(--blush);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(232, 165, 185, 0.35);
}

/* Profile */
.profile-figure {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.profile-ring {
    position: absolute;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    border: 1.5px solid rgba(232,165,185,0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 20s linear infinite;
}

.profile-ring::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blush);
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-img {
    display: block;
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(28,28,28,0.12);
    position: relative;
    z-index: 1;
    transition: transform 0.6s var(--ease-out);
}

.profile-figure:hover .profile-img {
    transform: scale(1.02);
}

.profile-badge {
    position: absolute;
    bottom: 10px;
    right: -10px;
    background: var(--white);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(28,28,28,0.12);
    z-index: 2;
    animation: badgeBounce 3s ease-in-out infinite;
}

.profile-badge i {
    color: var(--blush);
    font-size: 1rem;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-mono);
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mist);
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--blush), transparent);
    animation: scrollPulse 1.6s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* =========================================
   8. SECTION TITLES
   ========================================= */
.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-num {
    display: block;
    font-family: var(--ff-serif);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(232,165,185,0.12);
    line-height: 1;
    margin-bottom: -20px;
    letter-spacing: 4px;
    user-select: none;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    color: var(--ink);
}

.section-title h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--blush);
    margin: 16px auto 0;
    transition: width 0.4s var(--ease-out);
}

.section-title:hover h2::after {
    width: 120px;
}

.section-title p {
    color: var(--mist);
    margin-top: 12px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* =========================================
   9. ABOUT
   ========================================= */
#about { background: var(--cream); }

.info-box {
    background: var(--white);
    padding: 36px 32px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(28,28,28,0.06);
    height: 100%;
    border: 1px solid var(--rule);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(28,28,28,0.1);
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}

.info-box-header i {
    font-size: 1.5rem;
    color: var(--blush);
}

.info-box-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--ff-mono);
}

/* Timeline */
.timeline li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 28px;
    border-left: 1.5px solid var(--rule);
    transition: border-color 0.3s;
}

.timeline li:last-child { margin-bottom: 0; }

.timeline li:hover { border-color: var(--blush); }

.timeline li::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--blush);
    border-radius: 50%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline li:hover::before {
    transform: scale(1.4);
    box-shadow: 0 0 0 3px rgba(232,165,185,0.2);
}

.timeline .date {
    display: block;
    font-size: 0.78rem;
    color: var(--blush);
    margin-bottom: 4px;
    font-family: var(--ff-mono);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.timeline strong {
    font-size: 1rem;
    color: var(--ink);
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.timeline p {
    font-size: 0.88rem;
    color: var(--mist);
    margin: 0;
}

/* Tags */
.keywords .tag {
    display: inline-block;
    background: var(--dust);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #555;
    margin: 0 6px 8px 0;
    border: 1px solid var(--rule);
    font-family: var(--ff-sans);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.keywords .tag:hover {
    background: var(--blush);
    color: var(--white);
    border-color: var(--blush);
}

/* =========================================
   Work Experience Thumbnails (About 섹션)
   ========================================= */
.work-exp-desc {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.work-thumb-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.work-thumb-item {
    width: calc(25% - 11px);
    text-align: center;
}
.work-thumb-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.work-thumb-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.work-thumb-item span {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .work-thumb-item {
        width: calc(50% - 7px);
    }
}

/* =========================================
   10. SKILLS
   ========================================= */
#skills { background: var(--dust); }

.skills-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 20px;
}

.skills-row:last-child { margin-bottom: 0; }

.skill-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 20px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink);
    box-shadow: 0 6px 20px rgba(28,28,28,0.07);
    border: 1px solid var(--rule);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}

.icon-box.html,
.icon-box.js { font-size: 0.8rem; line-height: 1.3; }

.skill-item:hover .icon-box {
    transform: translateY(-10px);
    box-shadow: 0 16px 36px rgba(232,165,185,0.2);
    border-color: rgba(232,165,185,0.5);
}

.icon-box.ps    { color: #31A8FF; }
.icon-box.ai    { color: #FF9A00; }
.icon-box.figma { color: #A259FF; }
.icon-box.html  { color: #E34F26; }
.icon-box.js    { color: #E5A228; }
.icon-box.media { color: #9999FF; }
.icon-box.excel { color: #1D6F42; }
.icon-box.ppt   { color: #D24726; }

.skill-item span {
    display: block;
    font-family: var(--ff-sans);
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 4px;
    color: var(--ink);
}

.skill-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    gap: 6px;
}

.progress-wrap {
    width: 60px;
    height: 4px;
    background: rgba(28,28,28,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--blush);
    width: 0;
    transition: width 1.4s var(--ease-out);
}

.progress-bar.ps    { background: #31A8FF; }
.progress-bar.ai    { background: #FF9A00; }
.progress-bar.figma { background: #A259FF; }
.progress-bar.html  { background: #E34F26; }
.progress-bar.js    { background: #E5A228; }
.progress-bar.media { background: #9999FF; }
.progress-bar.excel { background: #1D6F42; }
.progress-bar.ppt   { background: #D24726; }

.percent {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mist);
    width: 28px;
    text-align: left;
    font-family: var(--ff-mono);
}

/* =========================================
   11. WEB PROJECTS
   ========================================= */
#web-projects { background: var(--cream); }

.project-card {
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: 1px solid var(--rule);
}

.project-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Image Wrapper */
.img-wrapper {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(28,28,28,0.1);
    position: relative;
    cursor: zoom-in;
}

.project-img {
    width: 100%;
    transition: transform 0.7s var(--ease-out), filter 0.4s var(--ease-out);
}

.img-wrapper:hover .project-img {
    transform: scale(1.04);
    filter: brightness(0.96);
}

/* Text Wrapper */
.text-wrapper { padding: 20px 30px; }

.badge {
    display: inline-block;
    background: var(--charcoal);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.72rem;
    font-family: var(--ff-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.text-wrapper h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.meta {
    font-size: 0.84rem;
    color: var(--mist);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta i { color: var(--blush); font-size: 0.9rem; }

.desc {
    font-size: 0.96rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 30px;
}

.tools li {
    background: var(--dust);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--ff-mono);
    color: #555;
    border: 1px solid var(--rule);
    transition: background 0.3s, color 0.3s;
}

.tools li:hover {
    background: var(--blush);
    color: var(--white);
    border-color: var(--blush);
}

.action-btn { margin-top: 8px; }

/* =========================================
   12. DESIGN WORKS
   ========================================= */
.design-section { background: var(--dust); }

.design-intro {
    text-align: center;
    margin-bottom: 60px;
    padding: 20px 0;
}

.design-intro-copy {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.design-intro-sub {
    font-size: 0.92rem;
    color: var(--mist);
}

.design-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(28,28,28,0.06);
    border: 1px solid var(--rule);
    transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.design-card:hover {
    box-shadow: 0 20px 60px rgba(28,28,28,0.1);
    transform: translateY(-4px);
}

.design-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.6s var(--ease-out), opacity 0.3s;
}

.design-img:hover {
    opacity: 0.93;
    transform: scale(1.02);
}

.card-body { padding: 36px; }

.design-badge {
    display: inline-block;
    background: var(--charcoal);
    color: var(--white);
    font-size: 0.72rem;
    font-family: var(--ff-mono);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.card-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.design-sub {
    font-size: 0.82rem;
    color: var(--blush);
    font-weight: 600;
    font-family: var(--ff-mono);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.design-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.design-tools span {
    background: var(--dust);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--ff-mono);
    color: #555;
    border: 1px solid var(--rule);
}

/* =========================================
   13. PLANNING SECTION
   ========================================= */
.plan-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 28px;
    margin-top: 40px;
    background: var(--dust);
    border: 1px solid var(--rule);
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--ff-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    transition: background 0.3s var(--ease-out), border-color 0.3s, color 0.3s, transform 0.2s;
}

.plan-toggle-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-toggle-bar:hover {
    background: var(--blush);
    border-color: var(--blush);
    color: var(--white);
    transform: translateY(-1px);
}

.plan-toggle-bar.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.plan-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.4s var(--ease-out);
}

/* Accordion */
.inline-plan-acc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.inline-plan-acc.open { max-height: 5000px; }

.inline-plan-inner {
    padding: 40px 0 80px;
}

.iplan-header {
    border-left: 3px solid var(--accent, var(--blush));
    padding-left: 20px;
    margin-bottom: 36px;
}

.iplan-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent, var(--blush));
    margin-bottom: 6px;
    font-family: var(--ff-mono);
}

.iplan-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

/* Concept / Target 등높이 — row 내부 col을 flex 컬럼으로 */
.inline-plan-inner .row {
    align-items: stretch;
}
.inline-plan-inner .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
.inline-plan-inner .row > [class*="col-"] > .plan-card {
    flex: 1;
    margin-bottom: 0;
}

/* Plan Cards */
.plan-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(28,28,28,0.05);
    border: 1px solid var(--rule);
    margin-bottom: 24px;
}

.plan-card-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.plan-card-row .plan-card {
    flex: 1;
    margin-bottom: 0;
}

.plan-badge {
    display: inline-block;
    background: #3a3a3a;
    color: var(--white);
    font-size: 0.72rem;
    font-family: var(--ff-mono);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.plan-text {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.9;
    margin: 0;
}

/* Color Palette */
.plan-colors {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.plan-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.3s;
}

.color-swatch:hover { transform: scale(1.1); }

.color-hex {
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--ff-mono);
    color: var(--ink);
}

.color-role {
    font-size: 0.72rem;
    color: var(--mist);
    font-family: var(--ff-mono);
}

/* Font System */
.plan-fonts {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: nowrap;
}

.plan-font-item { text-align: center; }

.font-preview-en {
    display: inline-block;
    font-size: 3rem;
    font-family: 'Jost', var(--ff-mono);
    font-weight: 700;
    color: #0000c5;
    line-height: 1;
}

.font-preview-ko {
    display: inline-block;
    font-size: 3rem;
    font-family: var(--ff-sans);
    font-weight: 700;
    color: #0000c5;
    line-height: 1;
}

.font-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 10px 0 4px;
    font-family: var(--ff-mono);
}

.font-role {
    font-size: 0.8rem;
    color: var(--mist);
    margin: 0;
}

.plan-font-divider {
    width: 1px;
    height: 80px;
    background: var(--rule);
    flex-shrink: 0;
}

/* Benchmarking Table */
.plan-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.plan-table thead tr {
    background: #0000c5;
    color: var(--white);
}

.plan-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-family: var(--ff-mono);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.plan-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule);
    color: #555;
    line-height: 1.6;
}

.plan-table tbody tr:last-child td { border-bottom: none; }
.plan-table tbody tr:hover { background: rgba(232,165,185,0.05); }

.plan-table .brand-name {
    font-weight: 700;
    color: #0000c5;
    white-space: nowrap;
}

/* Timeline */
.plan-timeline {
    position: relative;
    margin-top: 20px;
    padding-left: 0;
}

.plan-timeline::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, var(--blush), transparent);
}

.ptl-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
    position: relative;
}

.ptl-item:last-child { margin-bottom: 0; }

.ptl-period {
    width: 130px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 20px;
    font-size: 0.78rem;
    color: var(--mist);
    line-height: 1.5;
    padding-top: 2px;
    font-family: var(--ff-mono);
}

.ptl-period span {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0000c5;
    margin-top: 2px;
}

.ptl-dot {
    position: absolute;
    left: 133px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--blush);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--blush);
    flex-shrink: 0;
    z-index: 1;
}

.ptl-content { padding-left: 30px; }

.ptl-content strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: 3px;
}

.ptl-content p {
    font-size: 0.83rem;
    color: var(--mist);
    margin: 0;
}

/* =========================================
   14. STYLE GUIDE (Inline)
   ========================================= */
.sg-inline {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
}

.sg-inline-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ff-mono);
}

.sg-inline-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-inline-block {
    background: var(--dust);
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid var(--rule);
}

.sg-card-label {
    margin: 4px 0 6px;
    font-family: var(--ff-serif);
    font-weight: 600;
    font-size: 0.95rem;
}

.sg-card-label::after {
    content: '';
    display: block;
    width: 100%;
    height: 0.3px;
    background: var(--rule);
    margin: 4px 0;
}

.sg-colors-inline { display: flex; flex-direction: column; gap: 7px; }

.sg-ci {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    color: var(--ink);
    font-family: var(--ff-mono);
}

.sg-ci em { color: var(--mist); font-style: normal; margin-left: 4px; }

.sg-sw {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.sg-inline-font { margin: 0; }

.sg-fn {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    font-family: var(--ff-mono);
}

.sg-fn em { font-style: normal; color: var(--mist); margin-left: 4px; font-weight: 400; }

.sg-intent-sm {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sg-intent-sm li {
    font-size: 0.76rem;
    color: #555;
    line-height: 1.5;
    letter-spacing: -1px;
}

.sg-intent-sm li strong {
    color: var(--ink);
    margin-right: 4px;
}

/* =========================================
   15. FOOTER / CONTACT
   ========================================= */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 100px 0 70px;
    position: relative;
    overflow: hidden;
}

.footer-deco {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.footer-deco-text {
    position: absolute;
    top: -30px;
    right: -20px;
    font-family: var(--ff-serif);
    font-size: 10rem;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    letter-spacing: 10px;
    user-select: none;
    white-space: nowrap;
}

.footer-eyebrow {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-eyebrow::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--blush);
}

.footer-title {
    font-family: var(--ff-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.footer-title em {
    font-style: italic;
    color: var(--blush);
}

.footer-desc {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 32px;
}

.copyright {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: #555;
    letter-spacing: 1px;
}

/* Contact Buttons */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-btn {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s;
    gap: 16px;
}

.contact-btn .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--white);
    flex-shrink: 0;
    transition: background 0.3s, transform 0.3s;
}

.contact-btn .btn-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-btn .label {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}

.contact-btn .value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
}

.contact-arrow {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.25);
    transition: transform 0.3s var(--ease-out), color 0.3s;
    flex-shrink: 0;
}

.contact-btn:hover {
    background: rgba(255,255,255,0.09);
    transform: translateX(6px);
    border-color: rgba(255,255,255,0.15);
}

.contact-btn:hover .contact-arrow {
    transform: translateX(4px);
    color: var(--blush);
}

.contact-btn.email:hover .icon-circle {
    background: var(--blush);
}

.contact-btn.kakao:hover .icon-circle {
    background: #FEE500;
    color: #3C1E1E;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--blush);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.back-to-top:hover {
    background: var(--rose);
    transform: translateY(-4px);
    color: var(--white);
}

/* =========================================
   SNS Slide Preview (카드 내 미니 슬라이더)
   ========================================= */
.sns-slide-preview {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f0f8;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* 이미지 영역 */
.sns-slide-viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
}
.sns-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
    cursor: pointer;
}
.sns-slide-img.active {
    opacity: 1;
}

/* 도트 — 이미지 영역 하단 */
.sns-slide-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.sns-slide-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: width 0.3s, background 0.3s, border-radius 0.3s;
}
.sns-slide-dots span.active {
    width: 22px;
    border-radius: 3px;
    background: #F171B0;
}

/* 라벨 탭 — 이미지 바깥 하단 바 */
.sns-slide-labels {
    display: flex;
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.sns-slide-labels span {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}
.sns-slide-labels span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: #F171B0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.sns-slide-labels span.active {
    color: #F171B0;
}
.sns-slide-labels span.active::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .sns-slide-preview {
        min-height: 380px;
    }
    .sns-slide-labels span {
        font-size: 0.6rem;
        padding: 10px 0;
    }
}
/* =========================================
   16. IMAGE MODAL
   ========================================= */
.image-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
    padding: 60px 20px 20px;
    flex-direction: column;
    gap: 16px;
}

.image-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 85vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.92);
    transition: transform 0.45s var(--ease-out);
}

.image-modal.open .modal-content {
    transform: scale(1);
}

.modal-content.modal-large {
    max-width: 94vw;
    max-height: 86vh;
}

#caption {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 300;
    text-align: center;
    max-width: 600px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #ddd;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    line-height: 1;
}

.close-modal:hover {
    background: var(--blush);
    color: var(--white);
    border-color: var(--blush);
    transform: rotate(90deg);
}

/* =========================================
   Work Slider Modal
   ========================================= */
.work-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}
.work-modal-overlay.open {
    display: flex;
}
.work-modal-body {
    text-align: center;
    max-width: 85vw;
    max-height: 85vh;
    position: relative;
}
.work-modal-body img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: workFadeIn 0.3s ease;
}
@keyframes workFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
.work-modal-body p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 14px;
    letter-spacing: 0.5px;
}
#workModalCounter {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    letter-spacing: 2px;
}
.work-modal-close {
    position: absolute;
    top: 24px;
    right: 30px;
    color: rgba(255,255,255,0.6);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
}
.work-modal-close:hover { color: #fff; }
.work-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}
.work-modal-arrow:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.work-prev { left: 24px; }
.work-next { right: 24px; }

@media (max-width: 768px) {
    .work-modal-arrow { width: 40px; height: 40px; font-size: 1.2rem; }
    .work-prev { left: 10px; }
    .work-next { right: 10px; }
}

@keyframes modalZoom {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* =========================================
   17. UTILITY
   ========================================= */
.text-muted { color: #777 !important; }
.small { font-size: 0.9rem; }
.mt-4 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 16px !important; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.no-gutters { margin-right: 0; margin-left: 0; }
.no-gutters > [class*="col-"] { padding-right: 0; padding-left: 0; }

/* =========================================
   18. RESPONSIVE — TABLET (< 991px)
   ========================================= */
@media (max-width: 991px) {
    nav { height: 60px; }
    body { padding-top: 60px; }

    .mobile-menu-btn { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(253, 250, 246, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 20px 0 24px;
        box-shadow: 0 10px 30px rgba(28,28,28,0.1);
        border-top: 1px solid var(--rule);
        gap: 4px;
    }

    .nav-menu.active { display: flex; }

    .nav-menu li { display: block; width: 100%; text-align: center; }

    .nav-link {
        display: block;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .nav-link::after { display: none; }

    .contact-nav {
        display: inline-block;
        margin: 8px auto 0;
    }

    header { padding: 40px 0 60px; min-height: auto; }

    .scroll-hint { display: none; }

    .profile-ring { width: 210px; height: 210px; }
    .profile-img { width: 190px; height: 190px; }

    .text-wrapper { padding: 30px 10px 10px; }

    .section-padding { padding: 70px 0; }

    .project-card { margin-bottom: 60px; padding-bottom: 60px; }

    .plan-card-row { flex-direction: column; }
}

/* =========================================
   19. RESPONSIVE — MOBILE (< 767px)
   ========================================= */
@media (max-width: 767px) {
    header h1 { font-size: 2.2rem; }

    .description { font-size: 0.95rem; }

    .btn-group { gap: 12px; }
    .button { padding: 11px 22px; font-size: 0.78rem; }

    .profile-figure { margin-bottom: 30px; }
    .profile-ring { width: 180px; height: 180px; }
    .profile-img { width: 160px; height: 160px; }
    .profile-badge { display: none; }

    .section-num { font-size: 3.5rem; }

    .section-title { margin-bottom: 48px; }
    .section-title h2 { font-size: 1.7rem; }

    .info-box { padding: 24px 20px; }

    /* About 모바일 — 첫 번째 카드 하단 간격 */
    #about .row > [class*="col-"]:first-child { margin-bottom: 20px; }

    /* Skills */
    #skills .skills-row { gap: 4px; margin-bottom: 10px; }

    #skills .icon-box {
        width: 46px;
        height: 46px;
        font-size: 0.68rem;
        border-radius: 12px;
        margin-bottom: 6px;
    }

    #skills .icon-box.html,
    #skills .icon-box.js { font-size: 0.56rem; line-height: 1.3; }

    #skills .skill-item span { font-size: 0.6rem; }
    #skills .skill-meta { margin-top: 4px; }
    #skills .progress-wrap { width: 28px; height: 4px; }
    #skills .percent { font-size: 0.55rem; width: 22px; margin-left: 2px; }

    .text-wrapper { padding: 20px 8px 0; }

    /* Project */
    .project-card { margin-bottom: 50px; padding-bottom: 50px; }

    /* Design cards */
    .design-intro { padding: 24px 20px; }
    .design-intro-copy { font-size: 1.2rem; }

    /* Footer */
    footer { padding: 70px 0 60px; text-align: center; }
    .footer-eyebrow { justify-content: center; }
    .footer-eyebrow::before { display: none; }

    .contact-actions { margin-top: 36px; }
    .contact-btn { max-width: 100%; }
    .contact-btn:hover { transform: translateX(0) translateY(-3px); }

    /* Planning */
    .plan-card { padding: 22px 18px; }
    .plan-colors { gap: 14px; }
    .color-swatch { width: 48px; height: 48px; }
    .plan-timeline::before { left: 80px; }
    .ptl-period { width: 70px; }
    .ptl-dot { left: 73px; }
    .ptl-content { padding-left: 22px; }
    .plan-fonts { flex-wrap: wrap; gap: 16px; }

    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }

    /* Modal */
    .modal-content { max-width: 95vw; max-height: 70vh; }
    .close-modal { top: 12px; right: 16px; }
}
