/*
 * main.css — 양소영 Eunice Yang 포트폴리오 (호텔 디지털마케팅)
 * 의존성 없는 정적 스타일. 기준 화면: 데스크톱 1440px / 모바일 390px.
 * 색 이름은 Figma Variables 이름을 그대로 따릅니다.
 */

:root {
    --brand-primary: #142438;
    --action-accent: #19323a;
    --bg-default: #faf7f2;
    --bg-subtle: #f5f2eb;
    --bg-surface: #ffffff;
    --text-primary: #142438;
    --text-secondary: #5a6270;
    --text-inverse: #ffffff;
    --border-subtle: #e2ddd5;

    --font-serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
    --font-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

    --wrap: 1200px;
    --gutter: 24px;
    --section-y: 128px;
    --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg-default);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    background: var(--brand-primary); color: var(--text-inverse); padding: 8px 14px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--action-accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
    font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--text-secondary); margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 28px; border-radius: var(--radius);
    font: 500 15px/1 var(--font-sans); letter-spacing: .02em; text-decoration: none;
    border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--brand-primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--action-accent); }
.btn-ghost { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-ghost:hover { background: var(--brand-primary); color: var(--text-inverse); }
.btn-line {
    min-height: 0; padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
    color: var(--action-accent); background: none;
}
.btn-line:hover { color: var(--brand-primary); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 242, .92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.brand-name { font-family: var(--font-serif); font-size: 20px; }
.brand-sub { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-secondary); }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 14px; letter-spacing: .06em; color: var(--text-secondary); }
.site-nav a:not(.btn):hover { color: var(--brand-primary); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 152px 0 144px; border-bottom: 1px solid var(--border-subtle); }
.hero-title {
    font-family: var(--font-serif); font-weight: 500;
    font-size: 64px; line-height: 1.3; letter-spacing: -.01em; max-width: 900px;
}
.hero-lead { margin-top: 36px; max-width: 640px; font-size: 18px; color: var(--text-secondary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips li {
    font-size: 13px; padding: 6px 14px; border: 1px solid var(--border-subtle);
    background: var(--bg-surface); border-radius: 999px; color: var(--text-secondary);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-subtle { background: var(--bg-subtle); }
.section-navy { background: var(--brand-primary); color: var(--text-inverse); }
.section-navy .eyebrow { color: rgba(255, 255, 255, .6); }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-title { font-family: var(--font-serif); font-size: 40px; line-height: 1.35; }
.section-lead { margin-top: 20px; color: var(--text-secondary); }

/* ---------- Cases ---------- */
.cases { display: grid; gap: 96px; }
.case { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.case:nth-child(even) .case-cover { order: 2; }
.case-cover {
    position: relative; aspect-ratio: 1 / 1; padding: 36px;
    display: flex; flex-direction: column; justify-content: space-between;
    border: 1px solid var(--border-subtle);
}
.cover-navy { background: var(--brand-primary); color: var(--text-inverse); }
.cover-teal { background: var(--action-accent); color: var(--text-inverse); }
.cover-cream { background: var(--bg-surface); color: var(--brand-primary); }
.cover-subtle { background: var(--bg-subtle); color: var(--brand-primary); }
.case-no { font-size: 13px; letter-spacing: .2em; opacity: .7; padding-bottom: 16px; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 25%, transparent); }
.case-mark { font-family: var(--font-serif); font-size: 44px; line-height: 1.15; }
.case-mark small { display: block; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 8px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
    font-size: 12px; padding: 4px 10px; border: 1px solid var(--border-subtle);
    background: var(--bg-surface); color: var(--text-secondary);
}
.tag-live { border-color: var(--action-accent); color: var(--action-accent); }
.tag-concept { border-style: dashed; }
.case-title { font-family: var(--font-serif); font-size: 30px; line-height: 1.4; }
.case-desc { margin-top: 16px; font-size: 17px; color: var(--text-secondary); }
.case-meta { margin-top: 32px; border-top: 1px solid var(--border-subtle); }
.case-meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.case-meta dt { font-size: 13px; letter-spacing: .06em; color: var(--text-secondary); padding-top: 2px; }
.case-meta dd { font-size: 15px; }
.case-meta a { color: var(--action-accent); }
.note {
    margin: 20px 0 28px; padding-left: 14px; border-left: 2px solid var(--border-subtle);
    font-size: 13px; color: var(--text-secondary);
}

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { border-top: 1px solid var(--brand-primary); padding-top: 24px; }
.step-no { font-size: 13px; letter-spacing: .2em; color: var(--text-secondary); }
.steps h3 { font-family: var(--font-serif); font-size: 24px; margin: 12px 0 12px; }
.steps p { font-size: 15px; color: var(--text-secondary); }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap { background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: 40px 32px; }
.cap h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 20px; }
.cap li { padding: 10px 0; border-top: 1px solid var(--border-subtle); font-size: 15px; color: var(--text-secondary); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: 96px; }
.about-text p:not(.eyebrow) { margin-top: 20px; font-size: 17px; color: rgba(255, 255, 255, .82); }
.about-text .section-title { margin-bottom: 12px; }
.career { align-self: end; }
.career > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.career > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.career dt { font-size: 13px; letter-spacing: .06em; color: rgba(255, 255, 255, .6); padding-top: 3px; }
.career strong { display: block; font-weight: 500; }
.career span { font-size: 14px; color: rgba(255, 255, 255, .7); }
.career-detail { margin-top: 12px; }
.career-detail li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.career-detail li + li { margin-top: 6px; }
.career-detail + strong { margin-top: 18px; }
.career a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.career-detail li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1px; background: rgba(255, 255, 255, .5); }

/* ---------- Archive ---------- */
.archive { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.archive img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border: 1px solid var(--border-subtle); background: var(--bg-subtle); }
.archive .tag-archive { display: inline-block; margin-top: 16px; }
.archive .tag-archive + h3 { margin-top: 8px; }
.archive h3 { margin-top: 16px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.archive h3 a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.archive picture { display: block; }
.archive p { margin-top: 4px; font-size: 13px; color: var(--text-secondary); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 96px; }
.contact-text > p:not(.eyebrow) { margin-top: 20px; color: var(--text-secondary); }
.contact-links { margin: 32px 0; }
.contact-links li { padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.contact-links li:last-child { border-bottom: 1px solid var(--border-subtle); }
.contact-links a { text-decoration: none; }
.contact-links a:hover { color: var(--action-accent); text-decoration: underline; }
.contact-form { background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; font: 400 16px/1.5 var(--font-sans); color: var(--text-primary);
    padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--bg-default);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action-accent); background: var(--bg-surface); }
.field [aria-invalid="true"] { border-color: #a33a3a; }
.form-status { min-height: 1.5em; font-size: 14px; color: var(--action-accent); margin-bottom: 12px; }
.form-status.is-error { color: #a33a3a; }
.form-hint { margin-top: 12px; font-size: 12px; color: var(--text-secondary); }
.contact-form .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 40px 0 120px; font-size: 13px; color: var(--text-secondary); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ================================================================
 * AI 브랜드 상담 도우미
 * ================================================================ */
.ai-chat { position: fixed; right: 24px; bottom: 24px; z-index: 60; font-family: var(--font-sans); }
.ai-chat-toggle {
    display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px;
    background: var(--brand-primary); color: var(--text-inverse); border: 0; border-radius: 999px;
    font: 500 14px/1 var(--font-sans); cursor: pointer; box-shadow: 0 8px 24px rgba(20, 36, 56, .2);
}
.ai-chat-toggle:hover { background: var(--action-accent); }
.ai-chat-icon { width: 20px; height: 20px; }
.ai-chat-open .ai-chat-toggle { display: none; }

.ai-chat-panel {
    position: absolute; right: 0; bottom: 0; width: 380px; height: min(600px, calc(100vh - 48px));
    display: flex; flex-direction: column; background: var(--bg-surface);
    border: 1px solid var(--border-subtle); box-shadow: 0 20px 48px rgba(20, 36, 56, .18);
    animation: aiChatIn .2s ease-out;
}
.ai-chat-panel[hidden] { display: none; }
@keyframes aiChatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ai-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--brand-primary); color: var(--text-inverse); }
.ai-chat-title { font-family: var(--font-serif); font-size: 17px; }
.ai-chat-sub { font-size: 12px; color: rgba(255, 255, 255, .7); }
.ai-chat-close { width: 36px; height: 36px; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; }
.ai-chat-close svg { width: 100%; height: 100%; }

.ai-chat-log { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-default); display: flex; flex-direction: column; gap: 10px; }
.ai-chat-row { display: flex; }
.ai-chat-row-user { justify-content: flex-end; }
.ai-chat-bubble { max-width: 85%; padding: 10px 14px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.ai-chat-bubble-bot { background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.ai-chat-bubble-user { background: var(--action-accent); color: var(--text-inverse); }
.ai-chat-typing { display: inline-flex; gap: 4px; }
.ai-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); animation: aiDot 1s infinite ease-in-out; }
.ai-chat-typing span:nth-child(2) { animation-delay: .15s; }
.ai-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.ai-chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; background: var(--bg-surface); }
.ai-chat-quick:empty { display: none; }
.ai-chat-chip {
    font: 400 13px/1.3 var(--font-sans); padding: 6px 12px; cursor: pointer;
    border: 1px solid var(--border-subtle); background: var(--bg-default); color: var(--brand-primary); border-radius: 999px;
}
.ai-chat-chip:hover { border-color: var(--action-accent); }
.ai-chat-form { display: flex; gap: 8px; padding: 12px 16px; background: var(--bg-surface); }
.ai-chat-input {
    flex: 1; resize: none; font: 400 15px/1.5 var(--font-sans); padding: 10px 12px;
    border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--bg-default); color: var(--text-primary);
}
.ai-chat-input:focus { outline: none; border-color: var(--action-accent); }
.ai-chat-send { width: 44px; border: 0; background: var(--brand-primary); color: var(--text-inverse); cursor: pointer; padding: 11px; border-radius: var(--radius); }
.ai-chat-send:disabled { opacity: .5; cursor: default; }
.ai-chat-note { padding: 0 16px 12px; font-size: 11px; color: var(--text-secondary); background: var(--bg-surface); }

/* ================================================================
 * Tablet ≤ 1024
 * ================================================================ */
@media (max-width: 1024px) {
    :root { --section-y: 104px; }
    .hero-title { font-size: 52px; }
    .case { gap: 40px; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
    .archive { grid-template-columns: repeat(2, 1fr); }
    .about, .contact { gap: 56px; }
}

/* ================================================================
 * Mobile ≤ 768 (기준 390)
 * ================================================================ */
@media (max-width: 768px) {
    :root { --gutter: 20px; --section-y: 80px; }
    body { font-size: 15px; }

    .header-inner { height: 64px; }
    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 6px;
        width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
    }
    .nav-toggle-bar { display: block; height: 1.5px; background: var(--brand-primary); transition: transform .2s; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-of-type { transform: translateY(3.75px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 64px; display: none;
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
        background: var(--bg-default); border-bottom: 1px solid var(--border-subtle);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border-subtle); font-size: 15px; }
    .site-nav .btn { margin-top: 16px; min-height: 48px; }

    .hero { padding: 72px 0 80px; }
    .hero-title { font-size: 34px; line-height: 1.4; }
    .hero-lead { font-size: 16px; margin-top: 24px; }
    .hero-cta { margin-top: 36px; }
    .hero-cta .btn { flex: 1 1 100%; }

    .section-head { margin-bottom: 40px; }
    .section-title { font-size: 28px; }

    .cases { gap: 72px; }
    .case { grid-template-columns: 1fr; gap: 28px; }
    .case:nth-child(even) .case-cover { order: 0; }
    .case-cover { aspect-ratio: 16 / 10; padding: 24px; }
    .case-mark { font-size: 32px; }
    .case-title { font-size: 23px; }
    .case-desc { font-size: 15px; }
    .case-meta > div { grid-template-columns: 1fr; gap: 4px; }

    .steps { grid-template-columns: 1fr; gap: 32px; }
    .caps { grid-template-columns: 1fr; }
    .cap { padding: 28px 24px; }

    .about, .contact { grid-template-columns: 1fr; gap: 48px; }
    .career > div { grid-template-columns: 1fr; gap: 4px; }

    .archive { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .archive h3 { font-size: 14px; }

    .contact-form { padding: 24px 20px; }

    .ai-chat { right: 16px; bottom: 16px; }
    .ai-chat-open { left: 0; right: 0; bottom: 0; top: 0; }
    .ai-chat-panel { position: fixed; inset: 0; width: auto; height: 100%; border: 0; }
}

/* ---------- Tools used (case cards) ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tools li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; }
.tools img { width: 16px; height: 16px; flex: none; }

/* ---------- Hero photo ---------- */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-subtle); }

/* ---------- Secondary links ---------- */
.site-nav a.nav-sub { padding-left: 36px; border-left: 1px solid var(--border-subtle); }
.text-link { color: inherit; text-underline-offset: 4px; }
.section-navy .text-link { color: var(--text-inverse); }

/* ---------- Teaching page ---------- */
.page-intro { padding: 120px 0 96px; border-bottom: 1px solid var(--border-subtle); }
.page-intro-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: center; }
.page-intro .hero-title { font-size: 52px; }
.page-intro figure { margin: 0; }
.page-intro figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.page-intro figcaption { margin-top: 10px; font-size: 12px; color: var(--text-secondary); }
.teach-year { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--border-subtle); }
.teach-year:last-child { border-bottom: 1px solid var(--border-subtle); }
.teach-year h2 { font-family: var(--font-serif); font-size: 32px; font-weight: 500; }
.teach-list > li + li { margin-top: 28px; }
.teach-title { font-family: var(--font-serif); font-size: 22px; line-height: 1.45; }
.teach-meta { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.teach-desc { margin-top: 10px; font-size: 15px; }
.teach-list .tag { display: inline-block; margin-left: 8px; vertical-align: 3px; }
.teach-updated { margin-top: 32px; font-size: 13px; color: var(--text-secondary); }

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
    .page-intro-inner { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
}
@media (max-width: 768px) {
    .hero-inner, .page-intro-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo, .page-intro figure { order: -1; max-width: 240px; }
    .site-nav a.nav-sub { padding-left: 0; border-left: 0; }
    .page-intro { padding: 64px 0 72px; }
    .page-intro .hero-title { font-size: 32px; }
    .teach-year { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
    .teach-year h2 { font-size: 26px; }
    .teach-title { font-size: 19px; }
}
.teach-section { padding-top: 64px; }
.teach-year:first-child { border-top: 0; padding-top: 0; }
.about-portrait { margin: 0 0 32px; width: 200px; }
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 768px) { .about-portrait { width: 160px; } }

/* ---------- Case study pages (work/*.html) ---------- */
.cs-cover { padding: 96px 0 64px; border-bottom: 1px solid var(--border-subtle); }
.cs-cover .eyebrow a { color: inherit; text-decoration: none; }
.cs-cover .eyebrow a:hover { text-decoration: underline; }
.cs-cover-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; margin-top: 24px; }
.cs-cover .case-cover { aspect-ratio: 4 / 3; }
.cs-title { font-family: var(--font-serif); font-weight: 500; font-size: 48px; line-height: 1.35; }
.cs-quote { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--brand-primary); font-size: 16px; max-width: 640px; }
.cs-meta { margin-top: 56px; }
.cs-content { padding-top: 32px; padding-bottom: 96px; }
.cs-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--border-subtle); }
.cs-h { font-family: var(--font-serif); font-size: 26px; font-weight: 500; line-height: 1.4; }
.cs-no { display: block; font-family: var(--font-sans); font-size: 13px; letter-spacing: .2em; color: var(--text-secondary); margin-bottom: 8px; }
.cs-body { max-width: 760px; font-size: 17px; }
.cs-body > p + p, .cs-body > * + .cs-kv { margin-top: 16px; }
.cs-kv > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.cs-kv dt { font-size: 13px; color: var(--text-secondary); padding-top: 3px; }
.cs-kv dd { font-size: 15px; }
.cs-points { counter-reset: p; }
.cs-points li { counter-increment: p; position: relative; padding-left: 44px; }
.cs-points li + li { margin-top: 28px; }
.cs-points li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 4px; font-size: 13px; letter-spacing: .1em; color: var(--text-secondary); }
.cs-points h3, .cs-screens h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
.cs-points p, .cs-screens p { margin-top: 6px; font-size: 15px; color: var(--text-secondary); }
.cs-label { font-size: 13px; letter-spacing: .06em; color: var(--text-secondary); margin-bottom: 12px; }
.flow { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.flow li { position: relative; display: inline-flex; align-items: center; font-size: 14px; padding: 8px 14px; border: 1px solid var(--border-subtle); background: var(--bg-surface); }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.cs-screens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cs-screens li { padding: 24px; background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.cs-list li { position: relative; padding-left: 16px; font-size: 15px; }
.cs-list li + li { margin-top: 10px; }
.cs-list li::before { content: "–"; position: absolute; left: 0; color: var(--text-secondary); }
.cs-small { margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.cs-small a { color: var(--action-accent); }
.cs-honest { margin-top: 48px; padding: 20px 24px; background: var(--bg-subtle); font-size: 14px; color: var(--text-secondary); }
.cs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cs-next { border-top: 1px solid var(--border-subtle); background: var(--brand-primary); }
.cs-next a { display: block; padding: 56px 0; color: var(--text-inverse); text-decoration: none; }
.cs-next .eyebrow { color: rgba(255, 255, 255, .6); }
.cs-next-title { display: block; margin-top: 8px; font-family: var(--font-serif); font-size: 30px; }
.cs-next a:hover .cs-next-title { text-decoration: underline; text-underline-offset: 6px; }
.case-more { margin-left: 24px; vertical-align: middle; }

@media (max-width: 1024px) {
    .cs-cover-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
    .cs-section { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 768px) {
    .cs-cover { padding: 48px 0 48px; }
    .cs-cover-grid { grid-template-columns: 1fr; gap: 32px; }
    .cs-cover .case-cover { order: -1; aspect-ratio: 16 / 10; }
    .cs-title { font-size: 30px; }
    .cs-meta { margin-top: 40px; }
    .cs-section { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
    .cs-h { font-size: 22px; }
    .cs-body { font-size: 16px; }
    .cs-screens { grid-template-columns: 1fr; }
    .flow { flex-direction: column; align-items: flex-start; gap: 24px; }
    .flow li:not(:last-child)::after { content: "↓"; right: auto; left: 16px; top: auto; bottom: -22px; transform: none; }
    .cs-actions .btn { flex: 1 1 100%; }
    .cs-next-title { font-size: 22px; }
    .case-more { margin-left: 0; margin-top: 8px; }
}
.teach-cert { margin-top: 16px; font-size: 14px; color: var(--text-secondary); }
.teach-cert strong { font-weight: 500; color: var(--text-primary); margin-right: 6px; }
.tool-groups > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; }
.tool-groups > div + div { margin-top: 10px; }
.tool-groups dt { font-size: 13px; padding-top: 2px; opacity: .7; }
.section-navy .tools img { filter: brightness(0) invert(1); }
@media (max-width: 768px) { .tool-groups > div { grid-template-columns: 1fr; gap: 4px; } }
.archive .archive-note { margin-top: 6px; font-size: 12px; opacity: .8; }
/* Earlier Work 상세 */
.cs-cover-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--border-subtle); }
.cs-body:has(.cs-shots) { max-width: none; }
.cs-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cs-shots img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; border: 1px solid var(--border-subtle); box-shadow: 0 12px 32px rgba(20, 36, 56, .12); }
.cs-shots figcaption { margin-top: 14px; display: grid; gap: 4px; }
.cs-shots .cs-step { font-size: 12px; letter-spacing: .12em; color: var(--text-secondary); }
.cs-shots strong { font-family: var(--font-serif); font-weight: 500; font-size: 18px; }
.cs-shots figcaption span:last-child { font-size: 14px; color: var(--text-secondary); }
.cs-swatches { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.cs-swatches li { display: grid; gap: 6px; font-size: 13px; }
.cs-swatch { display: block; width: 72px; height: 72px; border: 1px solid var(--border-subtle); }
.cs-swatch-label { color: var(--text-secondary); }
@media (max-width: 768px) {
    .cs-shots { grid-template-columns: 1fr; gap: 40px; max-width: 360px; }
}

/* Brand & Content Works: 이미지 없는 타이포 커버 (STILL STORIES) */
.archive-cover { position: relative; aspect-ratio: 1 / 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: var(--brand-primary); color: var(--text-inverse); text-decoration: none; overflow: hidden; }
.archive-cover::after { content: ""; position: absolute; right: -18%; bottom: -18%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 28px rgba(255,255,255,.04), 0 0 0 56px rgba(255,255,255,.03); }
.archive-cover-top { font-size: 11px; letter-spacing: .2em; opacity: .7; }
.archive-cover-mark { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 26px; line-height: 1.25; letter-spacing: .04em; }
.archive-cover:hover .archive-cover-mark { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 768px) { .archive-cover { padding: 16px; } .archive-cover-mark { font-size: 20px; } }

/* 상세: 뮤직비디오 썸네일 카드 (iframe 대신 가벼운 링크 카드) */
.mv-cover::after { content: ""; position: absolute; right: -12%; bottom: -16%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 32px rgba(255,255,255,.04), 0 0 0 64px rgba(255,255,255,.03); }
.mv-cover { position: relative; overflow: hidden; }
.cs-body:has(.mv-cards) { max-width: none; }
.mv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.mv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-primary); border: 1px solid var(--border-subtle); }
.mv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mv-thumb:hover img, .mv-thumb:focus-visible img { transform: scale(1.03); }
.mv-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(20,36,56,.82); }
.mv-play::after { content: ""; position: absolute; left: 21px; top: 17px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.mv-no { margin-top: 16px; font-size: 12px; letter-spacing: .2em; color: var(--text-secondary); }
.mv-title { margin-top: 4px; font-family: var(--font-serif); font-size: 18px; font-weight: 500; line-height: 1.45; }
.mv-desc { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
@media (max-width: 1024px) { .mv-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .mv-cards { grid-template-columns: 1fr; gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .mv-thumb img { transition: none; } }

/* 상세: 비교 슬라이더 (반얀트리 리디자인) */
.cs-cover-cta { margin-top: 28px; }
.cs-body:has(.cmp) { max-width: none; }
.cmp { position: relative; }
.cmp-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.cmp-track::-webkit-scrollbar { display: none; }
.cmp-slide { flex: 0 0 100%; scroll-snap-align: start; }
.cmp-frame { height: min(72vh, 720px); overflow-y: auto; border: 1px solid var(--border-subtle); background: var(--bg-subtle); box-shadow: 0 12px 32px rgba(20,36,56,.10); overscroll-behavior: contain; }
.cmp-frame img { width: 100%; height: auto; display: block; }
.cmp-frame-m { max-width: 390px; margin: 0 auto; }
.cmp-cap { margin-top: 16px; font-size: 14px; color: var(--text-secondary); }
.cmp-cap strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 500; color: var(--text-primary); }
.cmp-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.cmp-btn { width: 44px; height: 44px; border: 1px solid var(--border-subtle); background: var(--bg-surface); border-radius: 50%; font-size: 16px; cursor: pointer; }
.cmp-btn:disabled { opacity: .35; cursor: default; }
.cmp-dots { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cmp-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--text-secondary); background: transparent; cursor: pointer; }
.cmp-dots button[aria-current="true"] { background: var(--text-primary); border-color: var(--text-primary); }
.cmp-live { margin-top: 24px; }
.cs-points { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: pt; }
.cs-points li { counter-increment: pt; position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--border-subtle); }
.cs-points li::before { content: counter(pt, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-size: 13px; color: var(--text-secondary); }
.cs-points strong { display: block; font-weight: 500; }
.cs-points span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-secondary); }
@media (max-width: 768px) {
    .cmp-frame { height: 64vh; }
}
.archive .archive-note a { color: inherit; text-underline-offset: 3px; }
