/* =========================================================
   FIT CMS 추가 스타일 — 포트폴리오 · 영상 · 갤러리 · 추가 블록 · 히어로 이미지
   기본 토큰은 styles.css (:root) + 관리자 테마(<style>) 를 따른다
   ========================================================= */

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #26262c; }
.nav__work { position: relative; }

/* ---------- 히어로 ---------- */
.hero--image { background: linear-gradient(180deg, rgba(11, 11, 12, .55), rgba(11, 11, 12, .82)), var(--hero-bg) center / cover no-repeat, var(--ink); }
.hero--image::before { display: none; }
.hero--center .hero__inner { text-align: center; }
.hero--center .hero__frame { margin-left: 0; }
.hero--center .hero__bottom { flex-direction: column; align-items: center; }
.hero--center .hero__actions { justify-content: center; }

/* ---------- About 이미지 ---------- */
.about__image { margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius, 20px); overflow: hidden; }
.about__image img { width: 100%; height: auto; display: block; }

/* ---------- 서비스 그리드형 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.svc-card { background: #fff; border-radius: var(--radius, 20px); padding: 32px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.svc-card__en { font-family: var(--f-en); font-stretch: 112%; font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; margin-top: 18px; }
.svc-card__ko { font-weight: 700; color: var(--mute); }
.svc-card__desc { color: #34332f; font-size: 16px; margin: 8px 0 14px; }
.svc-card .tags { margin-top: auto; }

/* ---------- 포트폴리오 ---------- */
.work { background: var(--paper); }
.work__lead { margin-top: 18px; color: var(--mute); font-size: 18px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.work-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.work-card[hidden] { display: none; }
.work-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius, 20px); overflow: hidden; background: var(--paper-2); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .45s var(--ease-out, ease-out); }
/* 큰 이미지가 위에서부터 끊겨 그려지지 않도록, 다 받은 뒤 한 번에 페이드 (script.js) */
.js-imgfade .work-card__media img:not(.is-loaded) { opacity: 0; }
.work-card__ph { position: absolute; inset: 0; display: grid; place-items: center; }
.work-card__ph::after { content: ""; width: 56px; height: 64px; background: var(--accent); opacity: .5; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.work-card__play { position: absolute; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; background: rgba(11, 11, 12, .72); backdrop-filter: blur(6px); }
.work-card__play::after { content: ""; position: absolute; left: 21px; top: 17px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.work-card__meta { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--f-en); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.work-card__title { font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.work-card__client { color: var(--mute); font-size: 15px; }
.work__more { margin-top: clamp(40px, 5vw, 64px); }
.work-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.work-filter button { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform var(--press, 160ms) var(--ease-out, ease-out); }
.work-filter button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .work-filter button:hover { border-color: var(--ink); }
  .work-card:hover .work-card__media img { transform: scale(1.04); }
}
.work-filter button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.work-empty { padding: 80px 0; color: var(--mute); font-size: 18px; text-align: center; }
.work--page { padding-top: 0; }

/* 서브 페이지 머리 */
.page-head { background: var(--ink); color: var(--paper); padding: calc(var(--header-h) + clamp(72px, 10vw, 140px)) 0 clamp(56px, 7vw, 96px); margin-bottom: clamp(56px, 7vw, 96px); }
.page-head__eyebrow { color: var(--accent); margin-bottom: 20px; }
.page-head__title { font-family: var(--f-en); font-stretch: 115%; font-weight: 800; font-size: clamp(48px, 9vw, 140px); line-height: 1; letter-spacing: -0.045em; }
.page-head__title em { font-style: normal; color: var(--accent); }
.page-head__lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 21px); color: rgba(244, 242, 236, .78); max-width: 40em; }

/* ---------- 케이스(상세) ---------- */
.case-head { background: var(--ink); color: var(--paper); padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(48px, 6vw, 80px); }
.case-head__back { display: inline-block; margin-bottom: 32px; font-family: var(--f-en); font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--mute-d); }
.case-head__back:hover { color: var(--accent); }
.case-head__title { font-size: clamp(36px, 6vw, 84px); font-weight: 800; line-height: 1.12; letter-spacing: -0.04em; max-width: 18em; }
.case-head__title em { font-style: normal; color: var(--accent); }
.case-head__summary { margin-top: 24px; font-size: clamp(17px, 1.7vw, 22px); color: rgba(244, 242, 236, .8); max-width: 40em; }
.case-head__meta { margin: clamp(36px, 5vw, 56px) 0 0; display: flex; flex-wrap: wrap; gap: 16px 56px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.case-head__meta dt { font-family: var(--f-en); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-d); margin-bottom: 6px; }
.case-head__meta dd { margin: 0; font-weight: 600; }
.case-cover { margin-top: clamp(32px, 4vw, 56px); }
.case-cover img { width: 100%; height: auto; border-radius: var(--radius, 20px); display: block; }
.case-sec { margin-top: clamp(56px, 7vw, 96px); }
.case-sec__label { font-family: var(--f-en); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.case-sec__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.case-body > div { display: grid; gap: 18px; font-size: 18px; color: #34332f; max-width: 46em; }
.case-body em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 60%, rgba(var(--accent-rgb), .45) 60%); }
.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(80px, 10vw, 140px); margin-bottom: clamp(80px, 10vw, 140px); padding-top: 32px; border-top: 1.5px solid var(--ink); }
.case-nav a { display: grid; gap: 6px; }
.case-nav a:hover b { color: var(--accent); }
.case-nav small { font-family: var(--f-en); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--mute); }
.case-nav b { font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.02em; transition: color .2s; }
.case-nav__next { text-align: right; }

/* ---------- 영상 ---------- */
.vid { margin: 0 0 24px; }
.vid__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius, 20px); overflow: hidden; background: #000; }
.vid__frame iframe, .vid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid figcaption, .gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--mute); }
.block-video--contained .vid { max-width: 960px; margin-inline: auto; }
.block-video .label { margin-bottom: 20px; }

/* ---------- 갤러리 ---------- */
.gallery { display: grid; gap: clamp(16px, 2vw, 28px); }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius, 20px); overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .gallery a:hover img { transform: scale(1.02); } }

/* ---------- 텍스트+이미지 블록 ---------- */
.block-ti__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.block-ti__grid--solo { grid-template-columns: minmax(0, 46em); }
.block-ti--left .block-ti__media { order: -1; }
.block-ti__body { display: grid; gap: 16px; margin: 28px 0 32px; font-size: 18px; color: #3a3935; }
.block-ti__media img { width: 100%; height: auto; display: block; border-radius: var(--radius, 20px); }

/* ---------- 배너 ---------- */
.banner { padding: clamp(72px, 10vw, 128px) 0; }
.banner--dark { background: var(--ink); color: var(--paper); }
.banner--accent { background: var(--accent); color: var(--accent-ink); }
.banner--image { background: linear-gradient(90deg, rgba(11, 11, 12, .85), rgba(11, 11, 12, .45)), var(--banner-bg) center / cover no-repeat; color: var(--paper); }
.banner__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.banner__title { font-size: clamp(32px, 5vw, 68px); font-weight: 800; line-height: 1.15; letter-spacing: -0.04em; }
.banner__title em { font-style: normal; color: var(--accent); }
.banner--accent .banner__title em { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.banner__lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); opacity: .82; max-width: 36em; }

/* ---------- 라이트박스 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11, 11, 12, .92); display: grid; place-items: center; padding: 4vw; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default; }
.lightbox__close { position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(244, 242, 236, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

@media (max-width: 860px) {
  .gallery--2, .gallery--3 { grid-template-columns: 1fr; }
  .block-ti__grid { grid-template-columns: 1fr; }
  .block-ti--left .block-ti__media { order: 0; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav__next { text-align: left; }
}

/* 로고 육각형은 브랜드 고정색 — 관리자에서 포인트 컬러를 바꿔도 로고는 바뀌지 않는다 (로고 가이드: 브랜드 외 색상 금지) */
.logo__hex { fill: #E94E8F; }

/* ---------- 언어 전환 KO  EN — 현재 언어는 포인트 컬러 ---------- */
.lang { display: inline-flex; align-items: center; gap: 14px; margin-left: 28px; font-family: var(--f-en); font-size: 13px; font-weight: 700; letter-spacing: .08em; position: relative; z-index: 2; }
.lang a { padding: 6px 0; color: rgba(244, 242, 236, .55); transition: color .2s; }
.lang a:hover { color: var(--paper); }
.lang a.is-on { color: var(--accent); }
@media (min-width: 861px) { .header__inner .nav { margin-left: auto; } }   /* 메뉴·언어 전환을 오른쪽에 함께 정렬 */
@media (max-width: 860px) {
  .header__inner .lang { margin-left: auto; margin-right: 14px; }
}
