/* ==========================================================================
   DREVV — Editorial Studio (V4)
   index.html · portfolio.html 공용. (styles.css는 index-v1/v2 백업 전용)

   Shape rule: 이미지·패널 20px / 버튼·칩 pill / 입력창 12px
   Accent: 코발트 1색만 사용
   ========================================================================== */

:root {
    --bg: #F3F3F0;
    --surface: #FFFFFF;
    --surface-2: #E8E8E4;
    --ink: #131416;
    --ink-2: #3A3D42;
    --ink-3: #5F636A;
    --line: rgba(19, 20, 22, 0.12);
    --line-strong: rgba(19, 20, 22, 0.28);
    --accent: #2A47F5;
    --accent-hover: #1E38D6;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(42, 71, 245, 0.08);
    --shadow: 0 24px 48px -28px rgba(19, 20, 22, 0.28);

    --f-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    --f-display: 'Geist', 'Pretendard Variable', Pretendard, -apple-system, system-ui, sans-serif;

    --max: 1240px;
    --gutter: clamp(20px, 4vw, 48px);
    --header-h: 68px;
    --r-panel: 20px;
    --r-input: 12px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 220ms;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0F1012;
        --surface: #17181B;
        --surface-2: #212328;
        --ink: #F1F1EE;
        --ink-2: #C8CACE;
        --ink-3: #9A9EA5;
        --line: rgba(255, 255, 255, 0.12);
        --line-strong: rgba(255, 255, 255, 0.3);
        --accent: #7088FF;
        --accent-hover: #8CA0FF;
        --accent-ink: #0F1012;
        --accent-soft: rgba(112, 136, 255, 0.12);
        --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7);
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--f-sans);
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    padding: 10px 16px; border-radius: 999px;
    background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600;
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px; padding: 0 26px;
    border: 1px solid transparent; border-radius: 999px;
    font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 6px 6px 6px 11px; border-radius: 2px; background: var(--accent-ink); }
.brand-word { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 14px; border-radius: 999px;
    font-size: 15px; font-weight: 500; color: var(--ink-2);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.is-active { color: var(--ink); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 15px; margin-left: 8px; }

.menu-toggle {
    display: none; width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; cursor: pointer; border-radius: 999px;
    align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
    position: relative; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--bg); border-bottom: 1px solid var(--line);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur);
    }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav-link { padding: 14px 4px; border-radius: 0; font-size: 18px; border-bottom: 1px solid var(--line); }
    .nav-link:hover { background: none; }
    .nav .btn { margin: 20px 0 0; height: 52px; font-size: 16px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(88px, 11vw, 160px) 0; }
.section-title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.22; }
.section-lead { margin-top: 20px; max-width: 34em; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-3); }
.eyebrow { display: inline-block; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: -0.005em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-title {
    font-size: clamp(44px, 7.4vw, 108px);
    line-height: 1.12;
    letter-spacing: -0.045em;
    font-weight: 800;
}
.hero-title .accent { color: var(--accent); }
.hero-foot {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
    margin-top: clamp(28px, 3.4vw, 44px);
}
.hero-sub { max-width: 30em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--ink-2); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-reel {
    display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(12px, 1.6vw, 20px);
    margin-top: clamp(44px, 5.4vw, 72px);
    align-items: start;
}
.reel-item { border-radius: var(--r-panel); overflow: hidden; background: var(--surface-2); }
.reel-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.reel-item:nth-child(1) { aspect-ratio: 16 / 10; }
.reel-item:nth-child(2) { aspect-ratio: 4 / 5; margin-top: clamp(24px, 4vw, 56px); }
.reel-item:nth-child(3) { aspect-ratio: 4 / 5; }
.reel-item img { transition: transform 700ms var(--ease); }
.reel-item:hover img { transform: scale(1.03); }

@media (max-width: 860px) {
    .hero-foot { grid-template-columns: 1fr; }
    .hero-reel { grid-template-columns: 1fr 1fr; }
    .reel-item:nth-child(1) { grid-column: 1 / -1; }
    .reel-item:nth-child(2) { margin-top: 0; }
}

/* ---------- Services: editorial index ---------- */
.service-list { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-strong); }
.service {
    display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 32px;
    padding: clamp(28px, 3.4vw, 44px) 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.service-num { padding-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.service-title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; transition: color var(--dur) var(--ease); }
.service:hover .service-title { color: var(--accent); }
.service-body p { font-size: 17px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-3);
}

@media (max-width: 760px) {
    .service { grid-template-columns: 1fr; gap: 12px; }
    .service-num { padding-top: 0; }
}

/* ---------- Products: asymmetric pair ---------- */
.products { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.product {
    position: relative; display: flex; flex-direction: column;
    border-radius: var(--r-panel); overflow: hidden;
    padding: clamp(28px, 3.4vw, 44px);
    min-height: 560px;
}
.product--main { background: var(--accent); color: var(--accent-ink); }
.product--main h3, .product--main .product-kind { color: var(--accent-ink); }
.product--side { background: var(--surface); border: 1px solid var(--line); }
.product-kind { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.product--main .product-kind { opacity: 0.8; }
.product h3 { margin-top: 12px; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 800; }
.product-desc { margin-top: 16px; max-width: 26em; font-size: 17px; }
.product--main .product-desc { opacity: 0.9; }
.product--side .product-desc { color: var(--ink-2); }
.product-media {
    margin-top: auto; padding-top: 56px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end;
}
.product-name { display: flex; align-items: center; gap: 16px; }
.product-name img { width: clamp(48px, 5vw, 64px); height: auto; border-radius: 14px; flex: none; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.store-link {
    display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px;
    background: var(--accent-ink); color: var(--accent); font-size: 15px; font-weight: 600;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.store-link:hover { opacity: 0.9; }
.store-link:active { transform: scale(0.98); }
.store-link--plain { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.shot {
    aspect-ratio: 600 / 1298; border-radius: 18px;
    background: color-mix(in srgb, var(--accent-ink) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-ink) 26%, transparent);
    overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:nth-child(2) { transform: translateY(-24px); }
.product-facts { margin-top: auto; padding-top: 32px; display: grid; gap: 0; }
.product-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.product-facts dt { color: var(--ink-3); }
.product-facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.also { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 15px; color: var(--ink-3); }
.also strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
    .products { grid-template-columns: 1fr; }
    .product { min-height: 0; }
}

/* ---------- Startup support panel ---------- */
.support {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px);
    padding: clamp(36px, 5.4vw, 80px);
    border-radius: var(--r-panel);
    background: var(--ink); color: var(--bg);
}
.support .eyebrow { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.support h2 { color: var(--bg); font-size: clamp(30px, 3.8vw, 48px); line-height: 1.25; }
.support-lead { margin-top: 20px; color: color-mix(in srgb, var(--bg) 78%, transparent); font-size: 18px; max-width: 26em; }
.support .btn { margin-top: 36px; background: var(--bg); color: var(--ink); }
.support .btn:hover { background: var(--surface-2); }
.support-steps { display: grid; gap: 0; align-content: start; }
.support-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
.support-step:last-child { border-bottom: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
.support-step .num { font-size: 15px; font-weight: 600; color: color-mix(in srgb, var(--bg) 60%, transparent); padding-top: 3px; }
.support-step h3 { color: var(--bg); font-size: 21px; line-height: 1.4; }
.support-step p { margin-top: 6px; font-size: 16px; color: color-mix(in srgb, var(--bg) 72%, transparent); }

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

/* ---------- Work bento ---------- */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.work-count { margin-top: 16px; font-size: 17px; color: var(--ink-3); }
.work-count strong { color: var(--ink); font-weight: 600; }
.work-grid {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px;
    margin-top: clamp(40px, 5vw, 64px);
}
.work-card { display: block; }
.work-card:nth-child(1) { grid-column: 1 / 8; grid-row: span 2; }
.work-card:nth-child(2), .work-card:nth-child(3) { grid-column: 8 / 13; }
.work-card:nth-child(4) { grid-column: 1 / 7; }
.work-card:nth-child(5) { grid-column: 7 / 13; }
.work-thumb {
    position: relative; border-radius: var(--r-panel); overflow: hidden;
    aspect-ratio: 16 / 10; background-size: cover; background-position: top center;
}
.work-card:nth-child(1) .work-thumb { aspect-ratio: auto; height: calc(100% - 64px); min-height: 360px; }
.work-card:nth-child(1) .work-thumb-img { background-position: left top; }
.work-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.work-thumb-img { position: absolute; inset: 0; background-size: cover; background-position: top center; transition: transform 700ms var(--ease); }
.work-card:hover .work-thumb-img { transform: scale(1.03); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 2px 0; }
.work-title { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.work-kind { flex: none; font-size: 14px; color: var(--ink-3); }
.work-kind.is-app { color: var(--accent); font-weight: 600; }

@media (max-width: 760px) {
    .work-grid { grid-template-columns: 1fr; }
    .work-card:nth-child(n) { grid-column: auto; grid-row: auto; }
    .work-card:nth-child(1) .work-thumb { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 72px); counter-reset: step; }
.process-step { padding: 28px 28px 0 0; border-top: 2px solid var(--ink); }
.process-step + .process-step { padding-left: 0; }
.process-step h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.04em; }
.process-when { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.process-step p { margin-top: 16px; font-size: 16px; color: var(--ink-2); max-width: 15em; }

@media (max-width: 860px) {
    .process { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .process-step { padding-right: 0; }
}
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-statement { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.38; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
.about-statement em { font-style: normal; color: var(--accent); }
.about-text { margin-top: 28px; max-width: 32em; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stat strong { display: block; font-family: var(--f-display); font-size: clamp(44px, 5vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-3); }
.facts { border-top: 1px solid var(--line-strong); }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); }
.facts a:hover { color: var(--accent); }

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

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-direct { margin-top: 36px; display: grid; gap: 4px; }
.contact-direct a { font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); width: fit-content; border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease); }
.contact-direct a:hover { border-color: var(--ink); }
.contact-note { margin-top: 20px; font-size: 15px; color: var(--ink-3); }

.form { display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 13px 16px;
    border: 1px solid var(--line-strong); border-radius: var(--r-input);
    background: var(--bg); color: var(--ink);
    font: inherit; font-size: 16px; letter-spacing: -0.01em;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px; background-repeat: no-repeat;
}
.field-error { display: none; font-size: 14px; color: #D23A2A; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #D23A2A; }
.field.is-invalid .field-error { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-helper { font-size: 14px; color: var(--ink-3); max-width: 24em; }
.submit-button[disabled] { opacity: 0.6; cursor: progress; }

@media (prefers-color-scheme: dark) { .field-error { color: #FF7A6B; } .field.is-invalid input, .field.is-invalid textarea { border-color: #FF7A6B; } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 112px) 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin-top: 16px; max-width: 22em; font-size: 15px; color: var(--ink-3); }
.footer-col h2 { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.footer-col ul { margin-top: 14px; display: grid; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--ink-3); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-info { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ink-3); }
.footer-info strong { font-weight: 600; color: var(--ink-2); margin-right: 6px; }
.footer-bottom { margin-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }

@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Notification ---------- */
.notification {
    position: fixed; left: 50%; bottom: 24px; z-index: 90;
    transform: translateX(-50%);
    max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 14px;
    background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500;
    box-shadow: var(--shadow);
    animation: toastIn 260ms var(--ease);
}
.notification--error { background: #B42318; color: #fff; }
.notification.is-leaving { animation: toastOut 200ms var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Portfolio page ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 0; }
.page-title { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.1; letter-spacing: -0.045em; font-weight: 800; }
.page-lead { margin-top: 20px; max-width: 32em; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-3); }

.portfolio-controls { margin-top: clamp(40px, 5vw, 56px); display: grid; gap: 16px; }
.portfolio-type { display: inline-flex; width: fit-content; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.portfolio-type-btn {
    min-width: 92px; height: 44px; padding: 0 20px;
    border: 0; border-radius: 999px; background: transparent;
    font-size: 15px; font-weight: 600; color: var(--ink-3); cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.portfolio-type-btn:hover { color: var(--ink); }
.portfolio-type-btn.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(19, 20, 22, 0.14); }
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.portfolio-filter-btn {
    height: 38px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: transparent;
    font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.portfolio-filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.portfolio-filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.portfolio-filter-btn[hidden] { display: none; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; margin-top: 48px; }
.portfolio-card { display: block; }
.portfolio-card.is-hidden { display: none; }
.portfolio-thumb {
    position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-panel); overflow: hidden;
    background-color: var(--surface-2); background-size: cover; background-position: top center;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.portfolio-card:hover .portfolio-thumb { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.portfolio-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 12px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink);
    font-size: 13px; font-weight: 600;
}
.portfolio-title { margin-top: 16px; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); }
.portfolio-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--ink-3); }
.portfolio-tag + .portfolio-tag::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.portfolio-empty { padding: 80px 0; text-align: center; font-size: 16px; color: var(--ink-3); }
.portfolio-more { margin-top: 80px; font-size: 15px; color: var(--ink-3); text-align: center; }

@media (max-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
    .js .reveal.is-visible { opacity: 1; transform: none; }
    .hero-title, .hero-foot, .hero-reel { animation: rise 900ms var(--ease) both; }
    .hero-foot { animation-delay: 120ms; }
    .hero-reel { animation-delay: 240ms; }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
