/* ============================================================
   pages.css — 페이지별 스타일
   홈 / 작품 상세 / 회사소개 / 뉴스·채용 / 문의 / 404
   ============================================================ */

/* ============ 홈 — 히어로 ============ */
.hero {
  position: relative;
  height: min(62svh, 52vw);
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10,11,13,.78) 0%, rgba(10,11,13,.18) 46%, rgba(10,11,13,.34) 100%);
}

.hero-copy {
  position: relative;
  padding: 0 var(--pad) clamp(36px, 7vh, 80px);
  max-width: 1100px;
  color: var(--on-dark);
}

.hero-ttl {
  margin: 0;
  font-size: clamp(28px, 5.2vw, 62px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--on-dark);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 26px 13px 22px;
  border: 1px solid rgba(251,250,248,.55);
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--on-dark);
  background: rgba(10,11,13,.22);
  cursor: pointer;
  font-family: inherit;
  transition: background .25s, color .25s, border-color .25s;
}
.hero-cta:hover {
  background: var(--on-dark);
  color: #14161A;
  border-color: var(--on-dark);
}
.hero-cta .tri {
  width: 0; height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

@media (max-width: 1100px) {
  .hero { height: min(56svh, 100vw); }
  .hero-ttl { font-size: clamp(26px, 7vw, 40px); }
}

/* ============ 홈 — 분야 (WHAT WE DO) ============ */
.caps { padding: clamp(52px, 9vw, 110px) var(--pad) clamp(20px, 4vw, 44px); }

.caps-head { max-width: 900px; margin: 0 0 clamp(28px, 5vw, 54px); }
.caps-ttl {
  margin: 10px 0 0;
  font-size: clamp(26px, 4.6vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1280px) { .caps-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px)  { .caps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .caps-grid { grid-template-columns: repeat(2, 1fr); } }

.cap {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  background: var(--panel);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.cap:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(20,22,26,.1);
}

.cap-vis {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--shade);
}
.cap-vis img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.cap:hover .cap-vis img { transform: scale(1.05); }

.cap-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 24px;
  min-height: 0;
}
.cap-ttl {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
.cap-en {
  margin: 4px 0 0;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--dim);
  text-transform: uppercase;
}
.cap-desc {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(20,22,26,.66);
  word-break: keep-all;
}
.cap-sub {
  margin: auto 0 0;
  padding-top: 14px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
}

/* ============ 홈 — 하단 CTA ============ */
.cta-band {
  margin-top: clamp(52px, 9vw, 110px);
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 34px;
  padding: clamp(44px, 8vw, 92px) var(--pad);
}
.cta-txt {
  margin: 0;
  font-size: clamp(20px, 3.4vw, 38px);
  letter-spacing: -0.02em;
}
.cta-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ============ 작품 상세 ============ */
.detail { position: relative; }
.detail section { padding-left: var(--pad); padding-right: var(--pad); }

.dhero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 34vw) 1fr;
  align-items: stretch;
  min-height: min(72svh, 700px);
  overflow: hidden;
  padding: 0;
  background: var(--stage);
}
.dhero-poster {
  position: relative;
  aspect-ratio: var(--poster);
  overflow: hidden;
  background: var(--stage);
}

.dhero-vid,
.dhero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dhero .ph { position: absolute; inset: 0; background: var(--stage); }

.dhero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10,11,13,.88) 0%, rgba(10,11,13,.2) 52%, rgba(10,11,13,.3) 100%);
}

/* 비교 슬라이더가 히어로일 때 */
.dhero-bd {
  height: 100%;
  aspect-ratio: var(--poster);
  max-width: 100%;
}
.dhero:has(.dhero-bd) .dhero-veil { display: none; }
.dhero:has(.dhero-bd) .dhero-copy {
  background: linear-gradient(to top, rgba(10,11,13,.9), transparent);
}

.dhero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px) var(--pad);
  color: var(--on-dark);
}

.dcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(251,250,248,.55);
}
.dcrumb a {
  color: rgba(251,250,248,.85);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.dcrumb a:hover { color: var(--on-dark); border-bottom-color: rgba(251,250,248,.7); }

.dttl {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--on-dark);
}
.dsub {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--on-dark-dim);
}
.dsub .dot { margin: 0 8px; }

.dbody { padding-top: clamp(36px, 6vw, 72px); max-width: 760px; }
.dsyn {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.9;
  color: rgba(20,22,26,.82);
  word-break: keep-all;
}

.ddisc { padding-top: clamp(32px, 5vw, 60px); }
.dchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.dchip {
  padding: 7px 15px;
  border: 1px solid rgba(20,22,26,.22);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(20,22,26,.72);
}

/* 브레이크다운 목록 */
.dbd { padding-top: clamp(40px, 7vw, 88px); }
.bd-item { margin: 14px 0 0; }
.bd-frame { aspect-ratio: var(--poster); max-width: 560px; }

/* 스틸 갤러리 */
.dgal { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(20px, 3vw, 40px); }
.dgal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 14px;
  align-items: start;
}


/* 크레딧 · 수상 */
.dcred, .dawd { padding-top: clamp(40px, 7vw, 88px); }
.cred-list { margin: 14px 0 0; max-width: 640px; }
.cred-row {
  display: flex;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cred-row dt { color: var(--dim); margin: 0; min-width: 90px; }
.cred-row dd { margin: 0; }

.awd-list { margin: 14px 0 0; padding: 0; list-style: none; max-width: 720px; }
.awd-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.awd-y { color: var(--dim); margin-right: 14px; }
.awd-c { color: var(--dim); margin-left: 8px; font-size: 13px; }

/* ============ 회사소개 ============ */
.prose {
  padding: clamp(28px, 5vw, 56px) var(--pad) 0;
  max-width: 760px;
}
.prose p {
  margin: 0 0 1.4em;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.9;
  color: rgba(20,22,26,.82);
}

.what, .tl { padding: clamp(36px, 6vw, 76px) var(--pad) 0; }

.tl-list { margin: 14px 0 0; padding: 0; list-style: none; max-width: 720px; }
.tl-list li {
  display: flex;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.tl-y { color: var(--dim); font-size: 13px; min-width: 60px; }
.tl-t { font-size: 15px; }
.tl-note { margin: 18px 0 0; font-size: 13px; color: var(--dim); }

/* ============ 뉴스 · 채용 ============ */
.list-sec { padding: clamp(20px, 4vw, 40px) var(--pad) clamp(60px, 9vw, 110px); }
.rows { margin: 0; padding: 0; list-style: none; }
.row { border-bottom: 1px solid var(--line); }
.row a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  transition: opacity .2s;
}
.row a:hover { opacity: .62; }
.row-d { color: var(--dim); font-size: 12px; letter-spacing: .06em; min-width: 94px; }
.row-t { flex: 1; font-size: clamp(15px, 1.9vw, 20px); line-height: 1.4; }
.row-m { color: var(--dim); font-size: 12px; letter-spacing: .05em; text-align: right; }
.row-x { color: var(--dim); font-size: 12px; }
.row-closed { margin-left: 10px; color: rgba(20,22,26,.35); }
.rows .empty { padding: 40px 0; color: var(--dim); border: 0; }

.post-ttl {
  margin: 0 0 8px;
  font-size: clamp(24px, 4.4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

@media (max-width: 640px) {
  .row a { flex-wrap: wrap; gap: 6px 16px; }
  .row-m { text-align: left; width: 100%; }
}

/* ============ 문의 폼 ============ */
.form-sec {
  padding: clamp(24px, 4vw, 48px) var(--pad) clamp(60px, 9vw, 110px);
  max-width: 620px;
}
.cform { display: flex; flex-direction: column; gap: 18px; }
.cform label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
}
.cform input,
.cform textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(20,22,26,.24);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  padding: 10px 0;
  border-radius: 0;
}
.cform input:focus,
.cform textarea:focus { outline: none; border-bottom-color: var(--paper); }
.cform textarea { resize: vertical; line-height: 1.7; }
.cform button {
  align-self: flex-start;
  margin-top: 10px;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  padding: 13px 30px;
  border-radius: 100px;
  font: inherit;
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: opacity .2s;
}
.cform button:hover { opacity: .82; }
.hp { position: absolute; left: -9999px; }
.ok { font-size: 16px; }
.err { font-size: 13px; color: #C0392B; margin: 0 0 14px; }

/* ============ 404 ============ */
.nf {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62svh;
  padding: clamp(48px, 10vw, 120px) var(--pad);
  max-width: 720px;
}
.nf-code {
  margin: 0;
  font-size: clamp(52px, 11vw, 120px);
  line-height: .95;
  letter-spacing: -0.04em;
  color: var(--line);
}
.nf-ttl {
  margin: 18px 0 10px;
  font-size: clamp(22px, 3.6vw, 38px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.nf-sub { margin: 0 0 32px; font-size: 15px; line-height: 1.7; color: var(--dim); }
.nf-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* 작품 상세 — 영상 보기 */
.dplay {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 10px 20px 10px 17px;
  border: 1px solid rgba(251,250,248,.32);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--on-dark);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .25s, color .25s, border-color .25s;
}
.dplay:hover {
  background: var(--on-dark);
  color: #14161A;
  border-color: var(--on-dark);
}
.dplay .tri {
  width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* 버튼이 폭을 다 먹지 않게 */
.dhero-copy { align-items: flex-start; }
.dplay { align-self: flex-start; width: auto; flex: 0 0 auto; }

/* dhero-poster-fit — 상세 히어로는 원본 비율 유지 */
.dhero > .dhero-poster {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stage);
}
.dhero > .dhero-poster > .dhero-img {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78svh, 900px);
  object-fit: contain;
}
