/*
Theme Name: Greg_Claude
Theme URI: https://greg.kr
Author: Greg
Author URI: https://greg.kr
Description: Greg Claude - Custom Post Type 기반 워드프레스 테마
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: greg-claude
Tags: custom-post-type, portfolio, responsive
*/


::selection { background: #fff55f; color: #000; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }


/* ── Avenir Next @font-face ── */
@font-face {
    font-family: 'AvenirNext';
    src: url('fonts/AvenirNextCyr-Demi.woff2') format('woff2'),
         url('fonts/AvenirNextCyr-Demi.woff')  format('woff'),
         url('fonts/AvenirNextCyr-Demi.ttf')   format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ── Switzer Variable @font-face ── */
@font-face {
    font-family: 'Switzer';
    src: url('fonts/Switzer-Variable.woff2') format('woff2 supports variations'),
         url('fonts/Switzer-Variable.woff2') format('woff2'),
         url('fonts/Switzer-Variable.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Switzer';
    src: url('fonts/Switzer-VariableItalic.woff2') format('woff2 supports variations'),
         url('fonts/Switzer-VariableItalic.woff2') format('woff2'),
         url('fonts/Switzer-VariableItalic.woff') format('woff');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}


/* ── CSS 변수 ── */
:root {
    --color-black:   #222222;
    --color-white:   #ffffff;
    --color-gray:    #888888;
    --color-light:   #f5f5f5;

    --font-sans:     'Switzer', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    --font-avenir:   'AvenirNext', 'Avenir Next', 'Avenir', sans-serif;

    --spacing-xs:    0.5rem;
    --spacing-sm:    1rem;
    --spacing-md:    2rem;
    --spacing-lg:    4rem;
    --spacing-xl:    8rem;

    --container-max: 1600px;
    --header-h:      64px;
    --padding-x:     max(16px, 2.5vw);

    --transition:    0.3s ease;
}

/* ── 컨테이너 ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}


/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,.08);
    transition: transform var(--transition);
}

.nav-close { display: none; }

.site-header.is-hidden { transform: translateY(-100%); }

/* WP admin bar — 로그인 시 헤더가 admin bar 아래에 위치 */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

/* 로고 */
.site-branding { flex-shrink: 0; }
.site-branding .custom-logo-link { display: block; }
.site-branding .custom-logo { height: 36px; width: auto; display: block; }
.site-branding .site-name { font-size: 1.485rem; font-weight: 600; letter-spacing: -0.03em; color: var(--color-black); font-family: var(--font-avenir); }

/* 네비게이션 */
.primary-menu { display: flex; gap: var(--spacing-md); list-style: none; margin: 0; padding: 0; }
.primary-menu > li > a {
    font-size: 1.107rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-black);
    position: relative;
}
.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    right: 50%;
    height: 1px;
    background: currentColor;
    transition: left 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                right 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.primary-menu > li.current-menu-item > a::after { left: 0; right: 0; }

/* 햄버거 바 (span 기반) */
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-black); transition: transform var(--transition), opacity var(--transition); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}

.site-branding { flex-shrink: 0; }

.primary-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-cta {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-black);
    background: #fff55f;
    padding: 0.45em 1.2em;
    border-radius: 999px;
    transition: opacity var(--transition);
}
.header-cta:hover { opacity: 0.75; }

/* Contact는 우측 CTA로 분리 — nav에서 숨김 */
.primary-menu > li:last-child { display: none; }

.menu-toggle { display: none; }

.site-logo .logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-black);
}

.primary-menu { display: flex; gap: var(--spacing-md); }

.primary-menu > li > a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-black);
    position: relative;
    z-index: 1;
}

/* 물방울 blob */
.nav-blob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2em;
    border-radius: 999px;
    background: rgba(0,0,0,0.07);
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    left: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: transform var(--transition), opacity var(--transition);
}


/* ============================================================
   Hero
   ============================================================ */
.section-hero,
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--header-h) var(--padding-x) 0;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.hero-desc {
    font-size: 1rem;
    color: var(--color-gray);
    max-width: 480px;
    margin: 0 auto;
}


/* ============================================================
   Section 공통
   ============================================================ */
.section-work,
.section-news,
.section-blog { padding: var(--spacing-xl) 0; }

.section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-lg);
}

.section-more { margin-top: var(--spacing-lg); text-align: center; }

.btn-more {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid var(--color-black);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition);
}

.btn-more:hover { background: var(--color-black); color: var(--color-white); }


/* ============================================================
   Grid Checkerboard (Work)
   ============================================================ */
.grid-checkerboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(0,0,0,.08);
}

.work-item { background: var(--color-white); overflow: hidden; }
.work-item-link { display: block; overflow: hidden; }

.work-item-thumb {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.work-item-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-item-link:hover .work-item-thumb img { transform: scale(1.04); }

.work-item-info { padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-md); }

.work-item-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.25rem; }

.work-item-cat {
    font-size: 0.75rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ============================================================
   Grid List (News / Blog)
   ============================================================ */
.grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.list-item a { display: flex; gap: var(--spacing-sm); }

.news-item-thumb,
.blog-item-thumb { flex: 0 0 200px; aspect-ratio: 3 / 2; overflow: hidden; }

.news-item-thumb img,
.blog-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.news-item-info,
.blog-item-info { flex: 1; }

.news-item-date,
.blog-item-date { font-size: 0.75rem; color: var(--color-gray); display: block; margin-bottom: 0.5rem; }

.news-item-title,
.blog-item-title { font-size: 1rem; font-weight: 500; line-height: 1.4; margin-bottom: 0.5rem; }

.news-item-excerpt,
.blog-item-excerpt { font-size: 0.875rem; color: var(--color-gray); line-height: 1.6; }


/* ============================================================
   Archive Header
   ============================================================ */
.archive-header {
    padding: calc(var(--header-h) + var(--spacing-lg)) var(--padding-x) var(--spacing-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.archive-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}


/* ============================================================
   Filter Tabs (archive-work)
   ============================================================ */
.filter-tabs {
    display: flex;
    gap: var(--spacing-sm);
    padding: 0 var(--padding-x);
    max-width: var(--container-max);
    margin: 0 auto var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-tab {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border: 1px solid transparent;
    transition: border-color var(--transition);
}

.filter-tab:hover,
.filter-tab.is-active { border-color: var(--color-black); }


/* ============================================================
   Page Intro (About / Work / News / Insights 상단 인트로)
   ============================================================ */
.page-intro-wrap {
    padding: 0 var(--padding-x);
    max-width: var(--container-max);
    margin: 0 auto 3rem;
}

.page-intro-title {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.page-intro-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    max-width: 720px;
    font-weight: 400;
    color: var(--color-black);
}


/* ============================================================
   Single Work
   ============================================================ */
.work-header {
    padding: calc(var(--header-h) + var(--spacing-lg)) var(--padding-x) var(--spacing-md);
    max-width: var(--container-max);
    margin: 0 auto;
}

.work-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.work-title {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.work-hero-image { width: 100%; margin-bottom: var(--spacing-lg); }
.work-hero-image img { width: 100%; height: auto; }

.work-content {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    padding: 0 var(--padding-x);
    font-size: 1rem;
    line-height: 1.8;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    padding: 0 var(--padding-x);
}

.work-tag { font-size: 0.75rem; padding: 0.25rem 0.75rem; background: var(--color-light); }

.work-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--padding-x);
    border-top: 1px solid rgba(0,0,0,.08);
}

.work-nav a { font-size: 0.875rem; }

.work-nav .nav-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-gray);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}


/* ============================================================
   Single Blog / News
   ============================================================ */
.single-blog .container,
.single-news .container {
    padding-top: calc(var(--header-h) + var(--spacing-lg));
    max-width: 900px;
}

.blog-header time,
.news-header time { font-size: 0.75rem; color: var(--color-gray); display: block; margin-bottom: 0.75rem; }

.blog-title,
.news-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.blog-thumbnail,
.news-thumbnail { margin-bottom: var(--spacing-lg); }

.blog-content,
.news-content { font-size: 1rem; line-height: 1.9; margin-bottom: var(--spacing-lg); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(0,0,0,.08);
    font-size: 0.875rem;
}


/* ============================================================
   Posts Grid (index.php)
   ============================================================ */
.archive-page { padding-top: calc(var(--header-h) + var(--spacing-lg)); }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: 0 var(--padding-x);
    max-width: var(--container-max);
    margin: 0 auto;
}

.post-card-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { padding: var(--spacing-sm) 0; }
.post-card-title a { font-size: 1rem; font-weight: 500; }


/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #1a1a1a;
    color: #fff;
}

/* 상단 */
.footer-top {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-top-inner {
    padding: 5rem var(--padding-x) 5.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    box-sizing: border-box;
}
.footer-tagline {
    font-size: clamp(2.2rem, 4vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
}
.footer-tagline p { margin: 0; }

/* 뉴스레터 */
.footer-subscribe {
    padding-top: 0.5rem;
    text-align: right;
}
.footer-subscribe-label {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.footer-subscribe-row {
    display: flex;
    border-radius: 60px;
    overflow: hidden;
    background: #fff;
    max-width: 440px;
    margin-left: auto;
    text-align: left;
}
.footer-subscribe-row input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.9rem 1.5rem;
    font-size: 0.88rem;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
    min-width: 0;
}
.footer-subscribe-row input::placeholder { color: rgba(0,0,0,0.35); }
.footer-subscribe-row button {
    flex-shrink: 0;
    background: #fff55f;
    color: #1a1a1a;
    border: none;
    padding: 0 1.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    font-family: inherit;
    cursor: pointer;
    border-radius: 60px;
    margin: 4px;
    transition: opacity 0.2s;
}
.footer-subscribe-row button:hover { opacity: 0.75; }
.footer-subscribe-thanks {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}
.footer-subscribe-error {
    font-size: 0.78rem;
    color: #f88;
    margin: 0.75rem 0 0;
}

/* 중단 */
.footer-mid { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-mid-inner {
    padding: 3.5rem var(--padding-x);
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    box-sizing: border-box;
}
.footer-info-label {
    display: block;
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.75rem;
}
.footer-info-val {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
}
.footer-info-val a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-info-val a:hover { color: #fff; }

/* 하단 */
.footer-bottom-inner {
    padding: 1.75rem var(--padding-x);
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.footer-copy {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.02em;
    font-family: var(--font-avenir);
}
.footer-copy-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.footer-staff {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-family: var(--font-avenir);
    transition: color 0.2s;
}
.footer-staff:hover { color: #fff; }
.footer-bottom-links {
    display: flex;
    gap: 2rem;
}
.footer-bottom-links a {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom-links a:hover { color: #fff; }
.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.footer-socials a:hover { color: #fff; }

/* 브랜드 리빌 — 푸터 스크롤 시 하단에서 노출 */
.footer-top,
.footer-mid,
.footer-bottom {
    position: relative;
    z-index: 2;
    background: #1a1a1a;
}
.footer-brand-reveal {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: #f0f0f0;
    padding: 5rem var(--padding-x) 2.5rem;
    overflow: hidden;
    text-align: center;
}
.footer-brand-text {
    font-family: var(--font-avenir);
    font-size: clamp(5rem, 12vw, 16rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: #1a1a1a;
    white-space: nowrap;
    display: block;
}

/* 반응형 */
@media (max-width: 900px) {
    .footer-top-inner { grid-template-columns: 1fr; gap: 3rem; padding-bottom: 4rem; }
    .footer-mid-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-mid-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom-links { display: none; }
    .footer-bottom-inner { flex-wrap: wrap; gap: 1rem; }
    .footer-brand-text { font-size: 16vw; }
}


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-list   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 56px; }

    .header-inner { justify-content: space-between; }

    .primary-nav { position: static; transform: none; }

    .menu-toggle { display: flex; }

    .header-cta { display: none; }

    /* 모바일에서 Contact를 다시 nav에 표시 */
    .primary-menu > li:last-child { display: list-item; }

    .primary-nav {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: #fff;
        padding: calc(var(--header-h) + 3.5rem) var(--padding-x) 3rem;
        z-index: 99;
        transform: translateY(-10px);
        transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .primary-nav.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    body.menu-open { overflow: hidden; }

    .primary-menu { flex: 1; flex-direction: column; gap: 0; }
    .primary-menu > li { border-bottom: 1px solid rgba(0,0,0,0.08); }
    .primary-menu > li > a {
        font-size: clamp(2rem, 11vw, 3rem);
        font-weight: 400;
        letter-spacing: -0.03em;
        line-height: 1;
        padding: 1rem 0;
        display: block;
        color: var(--color-black);
    }
    .primary-menu > li > a::after { display: none; }

    /* 마지막 항목(Contact) — PC의 Work with us와 같은 노란 알약, 하단 중앙 배치 */
    .primary-menu > li:last-child {
        border-bottom: none;
        margin-top: auto;
        padding-top: 3rem;
        text-align: center;
    }
    .primary-menu > li:last-child > a {
        display: inline-block;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        line-height: 1;
        background: #fff55f;
        color: var(--color-black);
        padding: 0.85em 1.8em;
        border-radius: 999px;
        transition: opacity var(--transition);
    }
    .primary-menu > li:last-child > a:hover { opacity: 0.75; }

    .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .primary-nav.is-open .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: calc(var(--header-h) / 2 - 22px);
        right: var(--padding-x);
        width: 44px;
        height: 44px;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 50%;
        cursor: pointer;
        color: var(--color-black);
        padding: 0;
        z-index: 110;
    }
    body.admin-bar .primary-nav.is-open .nav-close {
        top: calc(32px + var(--header-h) / 2 - 22px);
    }

    body { font-weight: 350; }

    .grid-checkerboard,
    .posts-grid { grid-template-columns: 1fr; }

    /* footer-inner removed */
}
/* ============================================================
   Greg_Claude — custom.css
   Gregco copy 테마 PHP 인라인 CSS 통합
   ============================================================ */


/* ── Scroll animation (from Gregco copy footer.php) ── */
.up-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), opacity 0.7s cubic-bezier(0.16,1,0.3,1);
}


/* ── Section divider line (from Gregco copy .line_greg) ── */
.line-greg {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.25);
    width: 0;
    margin-top: var(--spacing-lg);
    margin-bottom: 1.5em;
    animation: draw-line 2s forwards;
}

@keyframes draw-line {
    to { width: 100%; }
}


/* ── Section header grid (from Gregco copy .subtitle) ── */
.section-head {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 3rem;
    padding-bottom: 1.5em;
    align-items: end;
}

.section-head .section-title {
    grid-column: 1 / 3;
    font-size: clamp(1.5rem, 3vw, 3em);
    line-height: 1;
    margin-bottom: 0;
}

.section-head .section-more {
    grid-column: 3 / 5;
    text-align: right;
    font-size: clamp(1.5rem, 3vw, 3em);
}

@media screen and (max-width: 768px) {
    .section-head .section-title,
    .section-head .section-more { font-size: 1.5rem; }
}

@media screen and (max-width: 575px) {
    .section-head .section-title,
    .section-head .section-more { font-size: 1.2rem; }
}


/* ============================================================
   Single Work
   ============================================================ */
.single-work {
    padding-top: var(--header-h);
}

.work-hero {
    width: 100%;
    overflow: hidden;
    max-height: 80vh;
}

.work-hero img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
}

.work-single-wrap {
    padding: 3rem var(--padding-x) var(--spacing-xl);
    max-width: var(--container-max);
    margin: 0 auto;
}

.work-single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    padding-bottom: 2rem;
}

.work-single-title {
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.work-single-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
    align-items: flex-end;
    padding-bottom: 0.5rem;
}

.work-meta-tag {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 4px 14px;
}

.work-single-desc {
    padding: 2rem 0 3rem;
    max-width: 720px;
}

.work-single-desc p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.85;
    color: var(--color-black);
    margin-bottom: 1.25rem;
}

.work-single-content .entry-content {
    border-top: 1px solid rgba(0,0,0,0.12);
    padding-top: 3rem;
}

.work-single-content .entry-content p {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.95;
    margin-bottom: 1.6em;
    max-width: 760px;
}

.work-single-content .entry-content h2 {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 3rem 0 1rem;
    max-width: 760px;
}

.work-single-content .entry-content img,
.work-single-content .entry-content figure {
    max-width: 100%;
    margin: 2.5rem 0;
    border-radius: 4px;
}

.work-single-content .entry-content hr,
.work-single-content .entry-content .wp-block-separator {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.12);
    margin: 3rem 0;
}

.work-post-nav {
    border-top: 1px solid rgba(0,0,0,0.12);
    padding: 2rem var(--padding-x) 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.work-post-nav .nav-links {
    display: flex;
    justify-content: space-between;
}

.work-post-nav .nav-previous a,
.work-post-nav .nav-next a {
    font-size: 0.85rem;
    color: var(--color-black);
    transition: opacity var(--transition);
}

.work-post-nav .nav-previous a:hover,
.work-post-nav .nav-next a:hover { opacity: 0.45; }

@media (max-width: 768px) {
    .work-hero img { height: 55vw; }
    .work-single-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}


/* ── Work grid (from Gregco copy front-page.php .gallery-grid) ── */
.work-grid {
    margin-top: 1em;
}

.work-item-thumb img {
    width: 100%;
    object-fit: cover;
    height: auto;
    border-radius: 8px;
}

.work-item.no-image .work-item-thumb,
.work-item.no-image {
    min-height: 500px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
}

.work-item.no-image .work-item-title,
.work-item.no-image .work-item-body { padding: 10px; }

.work-item.no-image p {
    margin-top: 3em;
    margin-left: 2em;
    margin-right: 2em;
}

@media screen and (max-width: 600px) {
    .work-item.no-image { min-height: 300px; }
}


/* ── News / Blog (from Gregco copy front-page.php) ── */
.post-content:last-child { border-bottom: none; }

.news-item-excerpt a,
.blog-item-excerpt a,
.news-excerpt a {
    font-size: 0.8rem;
    line-height: 1.1;
}

.spacer {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem var(--padding-x);
}
.spacer p { line-height: 1.7; font-size: clamp(0.95rem, 1.1vw, 1.1rem); color: var(--color-gray); }


/* ── Tag pills (from Gregco copy single.php .tag_bubble) ── */
.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0.75rem;
}

.work-tag,
.tag-pill {
    display: inline-block;
    background-color: #000000;
    border: 1px solid #000000;
    padding: 5px 12px;
    margin: 2px 2px 2px 0;
    border-radius: 15px;
    font-size: 0.7rem;
    color: #ffffff;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 0.3s;
}

.work-tag:hover,
.tag-pill:hover {
    background-color: #333333;
    color: #ffffff;
}


/* ── Single post newsform grid layout ── */
.grid-newsform {
    display: grid;
    grid-template-columns: 25% 50% auto;
    gap: 0 15px;
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
}

.newsform-title { grid-column: 2 / 3; grid-row: 1; padding-bottom: 2rem; }
.newsform-summary { grid-column: 2 / 3; grid-row: 2; padding-bottom: 3rem; border-top: 1px solid rgba(0,0,0,0.12); padding-top: 2rem; }
.newsform-content { grid-column: 2 / 3; grid-row: 3; }

/* 제목 */
.newsform-title .entry-title {
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

/* 서브타이틀 */
.newsform-title .insight-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 400;
    color: var(--color-gray);
    letter-spacing: -0.01em;
    line-height: 1.6;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* 카테고리 태그 + 날짜 */
.newsform-title .tagging {
    margin-bottom: 1.5rem;
}
.newsform-title time {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
    display: block;
    margin-top: 1.5rem;
}

/* 리드 문단 */
.newsform-summary p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.85;
    color: var(--color-black);
    margin-right: 0;
    margin-bottom: 0;
    font-weight: 400;
}

/* 본문 */
.newsform-content {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.95;
    letter-spacing: 0.005em;
    padding-bottom: var(--spacing-lg);
}
.newsform-content p {
    margin-bottom: 1.6em;
    color: var(--color-black);
}
.newsform-content h2 {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}
.newsform-content hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.12);
    margin: 3rem 0;
}
.newsform-content code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.88em;
    background: rgba(0,0,0,0.04);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}
.newsform-content .insight-closing {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.85;
    color: var(--color-gray);
    font-style: italic;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .grid-newsform { grid-template-columns: 8% 84% auto; }
}

@media (max-width: 600px) {
    .grid-newsform {
        grid-template-columns: 1fr;
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-lg);
    }
    .newsform-title,
    .newsform-summary,
    .newsform-content { grid-column: 1; grid-row: auto; }
}


/* ── Client logo slider (from Gregco copy front-page.php) ── */
.logo-slider {
    overflow: hidden;
    padding: 30px 0 0 0;
    white-space: nowrap;
    position: relative;
}

.logo-slider:hover .logos-slide { animation-play-state: paused; }

.logos-slide {
    display: inline-block;
    animation: logo-slide 45s infinite linear;
}

.logos-slide img {
    display: inline-block;
    width: auto;
    height: 135px;
    margin: 0 40px;
    vertical-align: middle;
}

@keyframes logo-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}


/* ── Front-page: 섹션 간격 (라인 제거 후 여백으로 구분) ── */
.front-page .subtitle {
    padding-top: 6rem;
}

/* ── Front-page: 다크 섹션 (Clients) ── */
.fp-dark-section {
    background: #f0f0f0;
    padding: 6rem 0;
    margin-top: 6rem;
}
.subtitle--dark,
.fp-dark-section .subtitle--dark {
    padding-top: 0;
}
.subtitle--dark .title,
.subtitle--dark .view-more {
    color: var(--color-black);
}
.subtitle--dark .view-more { opacity: 0.6; }
.subtitle--dark .view-more:hover { opacity: 1; }
.fp-dark-section .logos-slide img {
    filter: none;
    opacity: 0.75;
}
.fp-dark-section .logos-slide img:hover { opacity: 1; }

/* ============================================================
   Front-page: Hero 태그라인
   ============================================================ */
.hero-section {
    padding-bottom: 2rem;
}

.site-tagline {
    font-size: calc(2.5rem + 5vw);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
    padding: calc(var(--header-h) + 2rem) var(--padding-x) 0;
    max-width: var(--container-max);
    margin: 0 auto;
    box-sizing: border-box;
}

.sp_text { display: block; }

.hero-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--color-black);
    background: none;
    cursor: pointer;
    margin: 5rem auto 0;
    color: var(--color-black);
    transition: background var(--transition), color var(--transition);
    animation: float-btn 2.4s ease-in-out infinite;
}

.hero-scroll-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

@keyframes float-btn {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .site-tagline { font-size: calc(2.5rem + 2vw); }
    .hero-section { padding-bottom: 0.5rem; }
    .hero-scroll-btn { margin-top: 3rem; }
}


/* ============================================================
   Front-page: line_greg (스크롤 트리거 버전)
   ============================================================ */
.line_greg {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.25);
    width: calc(100% - var(--padding-x) * 2);
    margin-left: var(--padding-x);
    margin-right: var(--padding-x);
    transform: scaleX(0);
    transform-origin: left center;
    margin-top: 3rem;
    margin-bottom: 1.5em;
}

.line_greg.animate-line_greg {
    animation: drawLine 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes drawLine {
    to { transform: scaleX(1); }
}


/* ============================================================
   Front-page: subtitle (Work / News / 섹션 헤더)
   ============================================================ */
.subtitle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 3rem;
    padding: 0 var(--padding-x) 1em;
    max-width: 1300px;
    margin: 0 auto;
}

.subtitle h2.title {
    grid-column: 1 / 3;
    font-size: clamp(1.5rem, 3vw, 3em);
    line-height: 1;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.view-more {
    grid-column: 3 / 5;
    text-align: right;
    font-size: clamp(1.5rem, 3vw, 3em);
    font-weight: 400;
    letter-spacing: -0.03em;
    align-self: end;
}

@media screen and (max-width: 768px) {
    .subtitle h2.title,
    .view-more { font-size: 1.5rem; }
}

@media screen and (max-width: 575px) {
    .subtitle h2.title,
    .view-more { font-size: 1.2rem; }
}


/* ============================================================
   Front-page: gallery-grid (Work 가로 스크롤)
   ============================================================ */
.gallery-grid {
    overflow: hidden;
    margin-top: 1em;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 var(--padding-x);
    will-change: transform;
}

.gallery-item {
    flex: 0 0 auto;
    width: clamp(260px, 36vw, 520px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-item.no-image {
    aspect-ratio: 1 / 1;
    align-self: flex-start;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 4px;
}

.gallery-item.no-image p {
    margin: 3em 2em 0;
}

.gallery-title {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 400;
    margin-top: 0.75em;
    color: var(--color-black);
    letter-spacing: -0.01em;
}

.gallery-description {
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    color: var(--color-gray);
    margin-top: 0.3em;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gallery-item { width: 72vw; }
}

@media (max-width: 480px) {
    .gallery-item { width: 82vw; }
}


/* ============================================================
   Front-page: 홈 중간 임팩트 섹션
   ============================================================ */
.fp-impact {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem var(--padding-x) 5rem;
    text-align: left;
}
/* 헤드라인 — Statement급 풀폭 디스플레이 */
.fp-impact-headline {
    font-size: clamp(2.2rem, 5.8vw, 4.8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--color-black);
    margin: 0 0 3rem;
}
/* 본문 — 60ch 가독 폭, 키워드 형광펜 */
.fp-impact-body {
    max-width: 60ch;
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.9;
    color: #333;
    margin: 0 0 2.5rem;
    font-weight: 400;
}
.fp-impact-body em {
    font-style: normal;
    font-weight: 600;
    color: var(--color-black);
    background: linear-gradient(180deg, transparent 62%, #fff55f 62%);
    padding: 0 0.08em;
}
/* CTA — 검정 알약, About와 통일 */
.fp-impact-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.95em 2.2em;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--color-black);
    border: 1px solid var(--color-black);
    border-radius: 60px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.fp-impact-cta:hover { opacity: 0.85; }
.fp-impact-cta svg { flex-shrink: 0; transition: transform 0.2s; }
.fp-impact-cta:hover svg { transform: translateX(3px); }

@media (max-width: 700px) {
    .fp-impact { padding: 2.5rem var(--padding-x) 3rem; }
    .fp-impact-headline { line-height: 1.15; margin-bottom: 2rem; }
    .fp-impact-body br { display: none; }
}


/* ============================================================
   Front-page: 포지셔닝 (감도보다 데이터)
   ============================================================ */
.fp-positioning {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem var(--padding-x) 5.5rem;
}
.fp-positioning-eyebrow {
    display: block;
    font-family: var(--font-avenir, 'AvenirNext', sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}
.fp-positioning-headline {
    font-size: clamp(2.4rem, 6.5vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: var(--color-black);
    margin: 0 0 2.5rem;
    word-break: keep-all;
}
.fp-positioning-headline em {
    font-style: normal;
    font-weight: 600;
    background: linear-gradient(180deg, transparent 62%, #fff55f 62%);
    padding: 0 0.06em;
}
.fp-positioning-body {
    max-width: 60ch;
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.85;
    color: #333;
    margin: 0 0 2.5rem auto;
    text-align: right;
    word-break: keep-all;
    opacity: 0;
    transform: translateY(20px);
    animation: fp-positioning-fade-up 0.7s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes fp-positioning-fade-up {
    to { opacity: 1; transform: translateY(0); }
}
.fp-positioning-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.7rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.fp-positioning-services li {
    font-family: var(--font-avenir, 'AvenirNext', sans-serif), 'Pretendard', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-black);
    padding: 0.55em 1.1em;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 60px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.fp-positioning-services li:hover {
    background: var(--color-black);
    color: #fff;
    border-color: var(--color-black);
}

@media (max-width: 700px) {
    .fp-positioning { padding: 3rem var(--padding-x) 3.5rem; }
    .fp-positioning-eyebrow { margin-bottom: 1.5rem; }
    .fp-positioning-headline { margin-bottom: 1.75rem; line-height: 1.15; }
    .fp-positioning-body br { display: none; }
    .fp-positioning-services li { font-size: 0.85rem; padding: 0.5em 0.95em; }
}


/* ============================================================
   Front-page: Our Roles
   ============================================================ */
/* What We Do — 2x2 그리드 wrapper */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 0;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--padding-x);
    box-sizing: border-box;
    counter-reset: fp-services;
}

/* 각 서비스 항목 — 번호 + 제목·본문 vertical stack */
.flex {
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 1.25rem;
    row-gap: 0.75rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    counter-increment: fp-services;
    transition: background 0.25s;
}
.flex::before {
    content: "0" counter(fp-services);
    font-family: var(--font-avenir, 'AvenirNext', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #999;
    padding-top: 0.55em;
    transition: color 0.25s;
}
.flex:hover::before { color: var(--color-black); }

.box1 {
    grid-column: 2;
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: var(--color-black);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0;
}
.flex:hover .box1 {
    transform: translateX(4px);
}

.box2 {
    grid-column: 2;
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    color: #555;
    line-height: 1.8;
    padding-top: 0.5rem;
}

@media (max-width: 800px) {
    .services-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
    .flex {
        grid-template-columns: 2.5rem 1fr;
        column-gap: 1rem;
        padding: 1.5rem 0;
    }
    .flex::before { padding-top: 0.4em; }
}


/* ============================================================
   Front-page: subtitle eyebrow (영어 섹션 캡션)
   ============================================================ */
.subtitle-eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    font-family: var(--font-avenir, 'AvenirNext', sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #777;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}
.subtitle-eyebrow.up-on-scroll {
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s cubic-bezier(0.16,1,0.3,1);
}
.subtitle:has(.subtitle-eyebrow) h2.title,
.subtitle:has(.subtitle-eyebrow) .view-more {
    grid-row: 2;
}
.subtitle:has(.subtitle-eyebrow) {
    margin-top: 2.5rem;
}


/* ============================================================
   Front-page: News post-row
   ============================================================ */
.post-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--padding-x) 6rem;
}

.post-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid rgba(0,0,0,.1);
    padding: 1.5rem 0;
    position: relative;
}

.post-row:first-child { border-top: none; }

.post-content { flex: 1; }

.news-title {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.25em;
}

.news-title a { color: var(--color-black); }
.news-title a:hover { opacity: 0.5; }

.news-date {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-bottom: 0.5em;
}

.news-excerpt a {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.5;
}

.tagging {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.5em;
    padding: 0;
}

.tagging li {
    display: inline-block;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
}

/* 호버 이미지 — .ima는 데이터 컨테이너, 실제 표시는 JS가 body에 생성 */
.ima { display: none; }


/* ============================================================
   Insights Archive
   ============================================================ */
.insights-list {
    padding: 0 var(--padding-x);
    max-width: var(--container-max);
    margin: 0 auto;
}

.insights-item {
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: 4rem;
    align-items: start;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.insights-item:first-child { border-top: 1px solid rgba(0,0,0,0.1); }

.insights-item-image {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--color-light);
}
.insights-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.insights-item:hover .insights-item-image img { transform: scale(1.06); }

.insights-item-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-light);
}

.insights-item-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.insights-item-cats {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.insights-item-cats li {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.insights-item-title {
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.insights-item-title a { color: var(--color-black); }
.insights-item-title a:hover { opacity: 0.6; }

.insights-item-excerpt {
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    line-height: 1.75;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.insights-item-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.insights-item-date {
    font-size: 0.78rem;
    color: var(--color-gray);
    letter-spacing: 0.02em;
}

.insights-item-comment-count {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gray);
    padding: 0.2em 0.6em;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 2px;
}

.insights-pagination {
    padding: 3rem var(--padding-x);
}

.insights-empty {
    max-width: calc(var(--container-max) * 0.6);
    padding: 0 var(--padding-x);
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.insights-empty span {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray);
}
.insights-empty-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--color-black);
    margin: 0;
    line-height: 1.2;
}
.insights-empty-desc {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    color: var(--color-gray);
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .insights-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }
    .insights-item-image { aspect-ratio: 16 / 9; }
}

/* ============================================================
   Insights Single — 2컬럼 (좌: 제목+이미지 / 우: 본문)
   ============================================================ */
.insights-single-grid {
    display: grid;
    grid-template-columns: 38% 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 5rem;
    align-items: start;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-x) var(--spacing-xl);
}

.insights-single-left-top {
    grid-column: 1;
    grid-row: 1;
}

.insights-single-left-bottom {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
}

.insights-single-right {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.insights-single-cats {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.insights-single-cats li {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.insights-single-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.insights-single-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 400;
    color: var(--color-gray);
    letter-spacing: -0.01em;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.insights-single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.insights-single-date {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.insights-single-comment-count {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gray);
    text-decoration: none;
    padding: 0.25em 0.7em;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
}
.insights-single-comment-count:hover {
    border-color: var(--color-black);
    color: var(--color-black);
}

.insights-single-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.insights-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 우 컬럼 — 본문 */
.insights-single-lead {
    margin-bottom: 2.5rem;
}
.insights-single-lead p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.85;
    color: var(--color-black);
    font-weight: 400;
}

.insights-single-right .entry-content {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.95;
    letter-spacing: 0.005em;
}
.insights-single-right .entry-content p {
    margin-bottom: 1.6em;
    color: var(--color-black);
}
.insights-single-right .entry-content h2 {
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-black);
}
.insights-single-right .entry-content hr,
.insights-single-right .entry-content .wp-block-separator {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.12);
    margin: 2.5rem 0;
    background: none;
}
.insights-single-right .entry-content code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.88em;
    background: rgba(0,0,0,0.04);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}
.insights-single-right .entry-content .insight-closing {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.85;
    color: var(--color-gray);
    font-style: italic;
    margin-top: 1rem;
}

.insights-post-nav {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.12);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.insights-nav-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--color-black);
}
.insights-nav-item:hover .insights-nav-title { opacity: 0.5; }

.insights-nav-label {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.insights-nav-title {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: opacity 0.2s;
}

.insights-nav-prev {
    text-align: right;
}

.insights-nav-empty { display: block; }

.insights-nav-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em 1.4em;
    border: 1px solid rgba(0,0,0,0.2);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-black);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.insights-nav-list:hover {
    background: var(--color-black);
    color: var(--color-white);
}

@media (max-width: 600px) {
    .insights-post-nav {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
    }
    .insights-nav-list { justify-self: start; }
    .insights-nav-next { text-align: left; }
}

/* ── Insights 저자 ── */
.insights-single-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.insights-single-author img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
}
.insights-single-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.insights-single-author-name {
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-black);
}
.insights-single-author-role {
    font-size: 1.17rem;
    color: var(--color-gray);
    letter-spacing: 0.01em;
}

/* ── Insights 댓글 ── */
/* ── Insights 댓글 ── */
.insights-comments {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.12);
}

.insights-comments-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

/* 댓글 목록 */
.insights-comment-list {
    margin-bottom: 3.5rem;
}

.insights-comment {
    padding: 1.5rem 0;
}

.insights-comment-thread {
    border-top: 1px solid rgba(0,0,0,0.08);
}
.insights-comment-thread:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.insights-comment-thread > .insights-comment {
    border-top: none;
}

/* 대댓글 묶음 */
.insights-replies {
    margin-left: 1.5rem;
    border-left: 2px solid rgba(0,0,0,0.07);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.insights-comment--reply {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 1.25rem 0;
}
.insights-comment--reply:first-child { border-top: none; padding-top: 0.75rem; }

/* 답글 뱃지 */
.insights-reply-badge {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

/* 답글 버튼 */
.insights-reply-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-family: inherit;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    cursor: pointer;
    transition: color 0.2s;
}
.insights-reply-btn:hover { color: var(--color-black); }

/* 인라인 답글 폼 */
.insights-inline-reply {
    margin: 0.75rem 0 1rem 1.5rem;
    padding: 1.5rem;
    background: #f7f7f7;
    border-left: 2px solid rgba(0,0,0,0.1);
}
.insights-reply-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.insights-inline-reply-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.25rem;
}
.insights-reply-cancel {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    font-family: inherit;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    cursor: pointer;
    transition: color 0.2s;
}
.insights-reply-cancel:hover { color: var(--color-black); }

.insights-comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.insights-comment-author {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-black);
}

.insights-comment-date {
    font-size: 0.72rem;
    color: var(--color-gray);
    letter-spacing: 0.02em;
}

.insights-comment-body p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-black);
    margin: 0;
}

/* 댓글 폼 */
.insights-comment-form-wrap {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.insights-comment-form-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.insights-comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.insights-comment-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.insights-comment-field label {
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-gray);
}
.insights-comment-field label span {
    color: var(--color-gray);
}

.insights-comment-field input,
.insights-comment-field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    border-radius: 0;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
    outline: none;
    color: var(--color-black);
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.insights-comment-field input:focus,
.insights-comment-field textarea:focus {
    border-bottom-color: var(--color-black);
}

.insights-comment-field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.65;
}

.insights-email-note {
    font-size: 0.7rem;
    color: var(--color-gray);
    margin-top: 0.3rem;
}

.insights-comment-submit-wrap {
    margin-top: 0.5rem;
}

.insights-comment-submit {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: 0.8em 2.2em;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}
.insights-comment-submit:hover { opacity: 0.65; }

@media (max-width: 900px) {
    .insights-single-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }
    .insights-single-left-top,
    .insights-single-left-bottom,
    .insights-single-right {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ============================================================
   Insights — ACF fields (archive 공용)
   ============================================================ */
.insight-subtitle {
    font-size: 1rem;
    color: var(--color-gray);
    margin-top: 0.25em;
    margin-bottom: 0.5em;
}

.insight-source {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-top: 0.75em;
    font-style: italic;
}

.insight-key-points h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray);
    margin-bottom: 0.75em;
}


/* ============================================================
   Work archive — horizontal scroll
   ============================================================ */
.work-horizontal-section {
    overflow: hidden;
    position: relative;
}
.work-horizontal-track {
    display: flex;
    gap: 1.5rem;
    padding: 2rem var(--padding-x) 4rem;
    width: max-content;
    will-change: transform;
}
.work-horizontal-track .template-gallery-item {
    width: 32vw;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .work-horizontal-track .template-gallery-item { width: 72vw; }
}
@media (max-width: 480px) {
    .work-horizontal-track .template-gallery-item { width: 85vw; }
}


/* ============================================================
   404
   ============================================================ */
.page-404 {
    padding-top: calc(var(--header-h) + 2rem);
    min-height: 90svh;
}

.error-404-inner {
    padding: 6rem var(--padding-x) 6rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.error-404-code {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
}

.error-404-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 2.5rem;
}

.error-404-desc {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.error-404-back {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--color-black);
    border-bottom: 1px solid var(--color-black);
    padding-bottom: 2px;
    transition: opacity var(--transition);
}

.error-404-back:hover { opacity: 0.4; }

/* ============================================================
   Journal — Archive
   ============================================================ */
.archive-journal {
    padding: calc(var(--header-h) + 4rem) 0 8rem;
}
.journal-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-x);
    box-sizing: border-box;
}

.journal-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 3rem;
    flex-wrap: wrap;
}
.journal-title {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
}
.journal-desc {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.5;
    max-width: 32rem;
    margin: 0;
    padding-bottom: 0.5rem;
}

/* Filter pills */
.journal-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 3rem;
}
.journal-filter-btn {
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 60px;
    padding: 0.45em 1.1em;
    font-size: 0.85rem;
    color: var(--color-gray);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.journal-filter-btn:hover {
    border-color: var(--color-black);
    color: var(--color-black);
}
.journal-filter-btn.is-active {
    background: var(--color-black);
    border-color: var(--color-black);
    color: #fff;
}

/* Featured: 1 large hero post */
.journal-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 1rem 0 5rem;
    text-decoration: none;
    color: inherit;
}
.journal-featured-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}
.journal-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.journal-featured:hover .journal-featured-media img { transform: scale(1.04); }
.journal-featured-placeholder { width: 100%; height: 100%; background: #f0f0f0; }

.journal-featured-body { padding-right: 2rem; }
.journal-featured-cat {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 1rem;
}
.journal-featured-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 1.2rem;
    color: var(--color-black);
}
.journal-featured-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray);
    margin: 0 0 1.5rem;
}
.journal-featured-date {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--color-gray);
}

/* 3-column square tile grid */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 2rem;
    padding-top: 2rem;
}
.journal-tile {
    text-decoration: none;
    color: inherit;
    display: block;
}
.journal-tile-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
    margin-bottom: 1rem;
}
.journal-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.journal-tile:hover .journal-tile-media img { transform: scale(1.05); }
.journal-tile-placeholder { width: 100%; height: 100%; background: #f0f0f0; }

.journal-tile-body { padding: 0 0.2rem; }
.journal-tile-cat {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}
.journal-tile-title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: var(--color-black);
}
.journal-tile-date {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--color-gray);
}

/* Pagination */
.journal-pagination {
    margin-top: 5rem;
    text-align: center;
}
.journal-pagination .page-numbers {
    display: inline-block;
    padding: 0.4em 0.8em;
    margin: 0 0.2em;
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.journal-pagination .page-numbers:hover { color: var(--color-black); }
.journal-pagination .page-numbers.current {
    color: var(--color-black);
    border-bottom: 1px solid var(--color-black);
}

/* Empty */
.journal-empty {
    padding: 6rem 0;
    text-align: center;
    color: var(--color-gray);
}

/* Responsive */
@media (max-width: 1000px) {
    .journal-featured {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 4rem;
    }
    .journal-featured-body { padding-right: 0; }
    .journal-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 1.5rem; }
}
@media (max-width: 600px) {
    .journal-header { gap: 1rem; padding-bottom: 2rem; }
    .journal-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   Journal — Single (Saffron-style)
   ============================================================ */
.single-journal {
    padding: calc(var(--header-h) + 4rem) 0 8rem;
}
.journal-single-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-x);
    box-sizing: border-box;
}

/* Header bar: category (left) | date · read time (right) */
.journal-article-header {
    padding-bottom: 1rem;
}
.journal-article-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 0;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.journal-article-cat a {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    color: var(--color-black);
    text-decoration: none;
    transition: opacity 0.2s;
}
.journal-article-cat a:hover { opacity: 0.6; }
.journal-article-cat-mark {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    background: var(--color-black);
}
.journal-article-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    color: var(--color-black);
}
.journal-article-divider { color: var(--color-gray); }
.journal-article-readtime { color: var(--color-black); }

/* Work single — 카테고리·태그 알약 (archive-work 필터 알약과 동일 모양) */
.work-single-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 2rem;
}
.work-single-pill {
    display: inline-block;
    background: none;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 60px;
    padding: 0.5em 1.43em;
    font-size: 0.97rem;
    letter-spacing: 0.03em;
    color: var(--color-gray);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.work-single-pill:hover {
    border-color: var(--color-black);
    color: var(--color-black);
}

/* Big left-aligned title */
.journal-article-title {
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 0 0 2rem;
    text-transform: uppercase;
    text-indent: 3em;
}
/* 제목 두 줄(`||`)이 따로 아래서 위로 올라오는 애니메이션 */
.journal-article-title-line {
    display: block;
    opacity: 0;
    transform: translateY(60px);
    animation: journal-title-rise 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.journal-article-title-line:first-child  { animation-delay: 0.15s; }
.journal-article-title-line:nth-child(2) { animation-delay: 0.40s; }
.journal-article-title-line:nth-child(3) { animation-delay: 0.65s; }
/* 첫 줄에만 text-indent 적용 (전체 H1의 text-indent는 줄별로 의미 없음) */
.journal-article-title-line:first-child { text-indent: inherit; }
.journal-article-title-line:not(:first-child) { text-indent: 0; }
@keyframes journal-title-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* Large hero below title */
.journal-article-hero {
    width: 100%;
    margin: 0 0 2rem;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
}
.journal-article-hero img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* Body — heading on left, paragraphs on right; figures full-width */
.journal-article-body {
    max-width: none;
    margin: 0;
}

.journal-article-body .entry-section {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    column-gap: 4rem;
    row-gap: 0.4em;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 0.5rem;
}
.journal-article-body .entry-section + .entry-section {
    margin-top: 0;
}
.journal-article-body .entry-section > * {
    grid-column: 2;
    margin: 0 0 0.5em;
}
.journal-article-body .entry-section > *:last-child { margin-bottom: 0; }

/* 모든 헤딩은 기본적으로 본문 인라인 스타일 (`>>` 마커 없으면 좌측으로 안 빠짐) */
.journal-article-body .entry-section > h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 1.5em 0 0.5em;
}
.journal-article-body .entry-section > h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 1.3em 0 0.4em;
}
.journal-article-body .entry-section > h4,
.journal-article-body .entry-section > h5,
.journal-article-body .entry-section > h6 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin: 1.2em 0 0.4em;
}

/* `>>` 마커: 어떤 태그든 좌측 컬럼으로 이동 (사이즈는 원래 태그 유지) */
.journal-article-body .entry-section > .entry-left-marker {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start;
    margin: 0 !important;
    padding-right: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* `>>` 마커 섹션은 우측 본문이 마커 끝 지점에서 시작 (JS가 padding-top 측정 적용) */
/* 마커 없는 일반 섹션: 단일 컬럼, 가독성 폭 760px */
.journal-article-body .entry-section--lead {
    display: block;
    max-width: 760px;
    margin: 0 auto 1rem;
}
.journal-article-body .entry-section--lead > * {
    grid-column: auto;
    margin: 0 0 1em;
    padding-top: 0 !important;
}

/* 통사진 — full-width images */
.journal-article-body > figure,
.journal-article-body > .wp-block-image,
.journal-article-body > .wp-block-gallery,
.journal-article-body > img,
.journal-article-body > .journal-portrait-pair {
    width: 100%;
    margin: 2rem 0;
}
.journal-article-body > figure img,
.journal-article-body > .wp-block-image img,
.journal-article-body > img {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
}

/* 세로 사진 두 개 짝짓기 */
.journal-portrait-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.journal-portrait-pair > figure,
.journal-portrait-pair > .wp-block-image,
.journal-portrait-pair > img {
    margin: 0;
    width: 100%;
}
.journal-portrait-pair img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 700px) {
    .journal-portrait-pair {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 800px) {
    .journal-article-body .entry-section {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 1rem;
    }
    .journal-article-body .entry-section > *,
    .journal-article-body .entry-section > h2,
    .journal-article-body .entry-section > h3,
    .journal-article-body .entry-section > .entry-left-marker {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    .journal-article-body .entry-section > h2,
    .journal-article-body .entry-section > h3,
    .journal-article-body .entry-section > .entry-left-marker {
        margin-bottom: 0.5rem !important;
    }
    /* 모바일: H2 → 본문 추가 간격 제거 (1컬럼 스택이라 불필요) */
    .journal-article-body .entry-section:has(> h2) > h2 + * {
        padding-top: 0 !important;
    }
    .journal-article-body .entry-section:has(> h2) {
        margin-top: 0;
    }
}

.journal-article-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--color-black);
}
.journal-article-body p { margin: 0 0 1.4em; }
.journal-article-body h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin: 2.5em 0 0.8em;
    letter-spacing: -0.02em;
}
.journal-article-body h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 2em 0 0.6em;
}
.journal-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5em 0;
}

.journal-article-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 760px;
    margin: 5rem auto 0;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* ── Related (Saffron 스타일) ── */
.journal-related {
    max-width: var(--container-max);
    margin: 7rem auto 0;
    padding: 0 var(--padding-x);
    box-sizing: border-box;
}
.journal-related-label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}
.journal-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}
.journal-related-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
.journal-related-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 1.2rem;
}
.journal-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.journal-related-card:hover .journal-related-media img {
    transform: scale(1.04);
}
.journal-related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 0.8rem;
}
.journal-related-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    color: var(--color-black);
}
.journal-related-cat-mark {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    background: var(--color-black);
}
.journal-related-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.journal-related-excerpt {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-gray);
    margin: 0;
}

@media (max-width: 900px) {
    .journal-related-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .journal-related { margin-top: 4rem; }
}

/* ── 목록보기 알약 버튼 ── */
.journal-list-btn-wrap {
    display: flex;
    justify-content: center;
    margin: 4rem 0 2rem;
    padding: 0 var(--padding-x);
}
.journal-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.75em 1.7em;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--color-black);
    background: none;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 60px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.journal-list-btn:hover {
    background: var(--color-black);
    color: #fff;
    border-color: var(--color-black);
}
.journal-list-btn svg { flex-shrink: 0; }
.journal-nav-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}
.journal-nav-item:hover { opacity: 0.6; }
.journal-nav-prev { text-align: right; }
.journal-nav-empty { display: block; }
.journal-nav-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 0.4rem;
}
.journal-nav-title {
    display: block;
    font-size: 0.95rem;
    color: var(--color-black);
    line-height: 1.3;
}
.journal-nav-list {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gray);
    padding-bottom: 2px;
}
.journal-nav-list:hover { color: var(--color-black); border-color: var(--color-black); }

@media (max-width: 700px) {
    .single-journal { padding: calc(var(--header-h) + 0.75rem) 0 5rem; }
    .journal-article-header { padding-bottom: 0.6rem; }
    .journal-article-bar { padding-bottom: 0; }
    .journal-article-title { margin: 0 0 1.25rem; text-indent: 2em; }
    .journal-article-title-line { transform: translateY(20px); }
    .journal-article-hero { margin: 0 0 2rem; }
    .journal-article-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .journal-nav-prev { text-align: center; }
}

/* ── Page Transition Overlay ── */
#page-transition {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#page-transition.is-visible   { opacity: 1; pointer-events: all; }
#page-transition.is-hidden    { opacity: 0; pointer-events: none; }


/* ============================================================
   Mobile Card Page (Member CPT, /card/{slug}/)
   ============================================================ */
.card-page {
    background: var(--color-white);
    min-height: calc(100vh - var(--header-h));
    padding: calc(var(--header-h) + 2rem) var(--padding-x) 4rem;
}
.card-container {
    max-width: 420px;
    margin: 0 auto;
}

/* 프로필 */
.card-profile {
    text-align: center;
    padding: 1.5rem 0 2rem;
}
.card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff55f;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-avatar-fallback {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-black);
    font-family: var(--font-avenir);
}
.card-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-black);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}
.card-role {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 0.25rem;
}
.card-company {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.08em;
    font-family: var(--font-avenir);
    text-transform: uppercase;
    margin: 0;
}

/* 액션 3-grid */
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.card-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.card-action:hover { background: #f4f4f0; }
.card-action-primary {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}
.card-action-primary:hover { background: #000; color: var(--color-white); }
.card-action svg { width: 20px; height: 20px; }

/* 정보 리스트 */
.card-info { margin-bottom: 2rem; }
.card-info dl {
    margin: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.card-info-row {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.card-info-row dt {
    font-size: 0.7rem;
    color: #999;
    width: 64px;
    flex-shrink: 0;
    letter-spacing: 0.08em;
    margin: 0;
    font-family: var(--font-avenir);
    text-transform: uppercase;
}
.card-info-row dd {
    font-size: 0.875rem;
    color: var(--color-black);
    margin: 0;
    flex: 1;
    line-height: 1.5;
    word-break: break-all;
}
.card-info-row dd a { color: inherit; text-decoration: none; }
.card-info-row dd a:hover { text-decoration: underline; }

/* QR */
.card-qr {
    text-align: center;
    padding: 2rem 0 1rem;
}
.card-qr-label {
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.12em;
    font-family: var(--font-avenir);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.card-qr-desc {
    font-size: 0.8rem;
    color: var(--color-black);
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}
.card-qr-wrap { display: flex; justify-content: center; margin-bottom: 0.875rem; }
#card-qr-code {
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    display: inline-block;
    line-height: 0;
}
#card-qr-code img,
#card-qr-code canvas { display: block; width: 180px; height: 180px; }
.card-qr-url {
    font-size: 0.7rem;
    color: #999;
    font-family: ui-monospace, Menlo, monospace;
    letter-spacing: 0.02em;
    margin: 0;
}
