/* 크리티컬 대표홈페이지 — project 화면 스타일 (원본 Vue 컴포넌트 scoped 스타일을 전역으로 옮김) */

/* ── components/CtaBlock.vue ── */
.cta {
  padding: 40px 0 120px;
}
.cta__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 64px;
  overflow: hidden;
  border-radius: var(--radius-eng);
  background:
    radial-gradient(50% 120% at 100% 100%, rgba(237, 28, 46, 0.2), transparent 70%),
    var(--ink);
  color: #fff;
}
.cta__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}
.cta__title {
  margin-top: 10px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
  word-break: keep-all;
  white-space: pre-line; /* 제목에 넣은 줄바꿈 위치를 그대로 표시 */
  text-wrap: balance;
}
.cta__lead {
  margin-top: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  word-break: keep-all;
}
.cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}
.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.cta__btn:hover {
  border-color: #fff;
}
.cta__btn.is-primary {
  border-color: var(--brand);
  background: var(--brand);
}
.cta__btn.is-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.cta__btn i {
  font-style: normal;
}
.cta__btn:not(.is-primary) {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .cta {
    padding: 24px 0 72px;
  }
  .cta__box {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 36px 24px;
    border-radius: var(--radius-eng);
  }
  .cta__actions {
    flex-direction: column;
  }
  .cta__btn {
    justify-content: center;
    height: 52px;
  }
}

/* ── views/portfolio-detail/modules/PdSummary.vue ── */
.pd-sum {
  padding: calc(var(--header-h) + 56px) 0 0;
}
.pd-sum__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mute);
}
.pd-sum__back i {
  font-style: normal;
  transition: transform 0.25s var(--ease);
}
.pd-sum__back:hover {
  color: var(--ink);
}
.pd-sum__back:hover i {
  transform: translateX(-3px);
}
.pd-sum__head {
  margin-top: 28px;
  animation: pd-rise 0.9s var(--ease) both;
}
.pd-sum__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}
.pd-sum__badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
}
.pd-sum__title {
  margin-top: 16px;
  font-size: clamp(30px, 3.6vw, 54px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.05em;
  word-break: keep-all;
}
.pd-sum__lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.7;
  color: var(--mute);
  word-break: keep-all;
}
.pd-sum__facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
  animation: pd-rise 0.9s var(--ease) 0.15s both;
}
.pd-sum__facts > div {
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid var(--line);
}
.pd-sum__facts dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--mute);
}
.pd-sum__facts dd {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}
.pd-sum__link {
  color: var(--brand);
  text-decoration: underline;
}
.pd-sum__link i {
  font-style: normal;
}
.pd-sum__none {
  color: var(--mute);
  font-weight: 500;
}
.pd-sum__cover {
  margin-top: 56px;
  overflow: hidden;
  border-radius: var(--radius-eng);
  background: var(--paper);
  animation: pd-rise 1s var(--ease) 0.3s both;
}
.pd-sum__cover img,
.pd-sum__cover video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@keyframes pd-rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pd-sum__head,
  .pd-sum__facts,
  .pd-sum__cover {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .pd-sum__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .pd-sum {
    padding-top: calc(var(--header-h) + 24px);
  }
  .pd-sum__head {
    margin-top: 16px;
  }
  .pd-sum__facts {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .pd-sum__facts > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: baseline;
    padding: 14px 0;
  }
  .pd-sum__facts dd {
    margin-top: 0;
    font-size: 15px;
  }
  .pd-sum__cover {
    margin-top: 32px;
    border-radius: var(--radius-eng);
  }
}

/* ── views/portfolio-detail/modules/PdFigures.vue ── */
.pd-fig {
  padding-top: 20px;
}
.pd-fig__box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-eng);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(237, 28, 46, 0.28), transparent 70%),
    var(--dark);
  color: #fff;
}
.pd-fig__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px 36px;
}
.pd-fig__item + .pd-fig__item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
/* 보이는 순서: 숫자 → 항목명 → 설명 */
.pd-fig__item dt {
  order: 2;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
}
.pd-fig__item dd {
  display: contents;
}
.pd-fig__item b {
  order: 1;
  font-family: var(--font-display);
  font-size: clamp(44px, 4vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.pd-fig__item b small {
  margin-left: 2px;
  font-size: 0.5em;
  color: var(--gold);
}
.pd-fig__item span {
  order: 3;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .pd-fig__box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-fig__item:nth-child(3) {
    border-left: 0;
  }
  .pd-fig__item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}
@media (max-width: 768px) {
  .pd-fig {
    padding-top: 12px;
  }
  .pd-fig__item {
    padding: 24px 18px;
  }
  .pd-fig__item dt {
    font-size: 15px;
  }
  .pd-fig__item b {
    font-size: 38px;
  }
  .pd-fig__item span {
    font-size: 13px;
  }
}

/* ── views/portfolio-detail/modules/PdStory.vue ── */
.pd-story {
  padding: 40px 0 0;
}
.pd-block {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}
.pd-list {
  display: grid;
  gap: 16px;
}
.pd-list li {
  position: relative;
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: keep-all;
}
.pd-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 2px;
  background: var(--ink);
}
.pd-list.is-result li::before {
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.pd-steps {
  display: grid;
  gap: 14px;
}
.pd-steps li {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-eng);
  background: var(--paper);
}
.pd-steps__no {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
}
.pd-steps b {
  font-size: 18px;
  font-weight: 700;
}
.pd-steps p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--mute);
  word-break: keep-all;
}

@media (max-width: 768px) {
  .pd-story {
    padding-top: 16px;
  }
  .pd-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .pd-list li {
    font-size: 16px;
  }
  .pd-steps li {
    gap: 14px;
    padding: 18px;
  }
  .pd-steps__no {
    font-size: 18px;
  }
  .pd-steps b {
    font-size: 16px;
  }
  .pd-steps p {
    font-size: 15px;
  }
}

/* ── views/portfolio-detail/modules/PdFeatures.vue ── */
.pd-feat {
  padding: 90px 0 32px;
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
}
.pd-feat__head {
  margin-bottom: 24px;
}
.pd-feat__row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
  padding: 56px 0;
}
.pd-feat__row.is-flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}
.pd-feat__row.is-flip .pd-feat__shot {
  order: 2;
}

/* 브라우저 창 */
.pd-feat__shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-eng);
  background: #fff;
  box-shadow:
    0 2px 6px rgba(17, 19, 24, 0.04),
    0 30px 70px rgba(17, 19, 24, 0.12);
}
/* 앱 — 장면 이미지 자체에 배경이 있어 테두리 · 그림자를 줄임 */
.pd-feat__shot.is-app {
  border: 0;
  box-shadow: 0 20px 50px rgba(17, 19, 24, 0.08);
}
.pd-feat__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fafafb;
}
.pd-feat__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e2e3e6;
}
.pd-feat__bar i:first-child {
  background: #ff6159;
}
.pd-feat__bar i:nth-child(2) {
  background: #ffbd2e;
}
.pd-feat__bar i:nth-child(3) {
  background: #28c941;
}
.pd-feat__bar span {
  flex: 1;
  max-width: 320px;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-feat__shot img,
.pd-feat__shot video {
  display: block;
  width: 100%;
  height: auto;
}

/* 설명 */
.pd-feat__no {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pd-feat__no b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.pd-feat__no span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
}
.pd-feat__title {
  margin-top: 18px;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.pd-feat__desc {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--mute);
  word-break: keep-all;
}
.pd-feat__points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pd-feat__points li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  word-break: keep-all;
}
/* 체크 표시 */
.pd-feat__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
}
.pd-feat__points li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .pd-feat__row,
  .pd-feat__row.is-flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .pd-feat__row.is-flip .pd-feat__shot {
    order: 0;
  }
}
@media (max-width: 768px) {
  .pd-feat {
    padding: 64px 0 16px;
  }
  .pd-feat__row {
    padding: 32px 0;
  }
  .pd-feat__bar {
    height: 30px;
    padding: 0 10px;
    gap: 5px;
  }
  .pd-feat__bar i {
    width: 8px;
    height: 8px;
  }
  .pd-feat__bar span {
    margin-left: 6px;
    padding: 2px 10px;
    font-size: 11px;
  }
  .pd-feat__title {
    margin-top: 14px;
    font-size: 22px;
  }
  .pd-feat__desc {
    margin-top: 12px;
    font-size: 15px;
  }
  .pd-feat__points {
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
  }
  .pd-feat__points li {
    font-size: 15px;
  }
}

/* ── views/portfolio-detail/modules/PdGallery.vue ── */
.pd-gal {
  padding: 80px 0 64px;
}
.pd-gal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 16px;
  margin-top: 36px;
}
.pd-gal__img {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-eng);
  background: var(--paper);
}
.pd-gal__grid img,
.pd-gal__grid video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 6.4;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.pd-gal__grid li:hover img {
  transform: scale(1.05);
}
.pd-gal__grid figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  word-break: keep-all;
}
@media (max-width: 768px) {
  .pd-gal {
    padding: 56px 0 48px;
  }
  .pd-gal__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .pd-gal__grid figcaption {
    margin-top: 8px;
    font-size: 14px;
  }
}

/* ── views/portfolio-detail/modules/PdPager.vue ── */
.pd-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
}
.pd-pager__item {
  display: grid;
  gap: 8px;
  min-height: 44px;
  padding: 16px 0;
}
.pd-pager__item.is-next {
  grid-column: 3;
  text-align: right;
}
.pd-pager__dir {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.pd-pager__dir i {
  font-style: normal;
}
.pd-pager__item b {
  font-size: 18px;
  font-weight: 700;
  word-break: keep-all;
  transition: color 0.25s;
}
.pd-pager__item:hover b {
  color: var(--brand);
}
.pd-pager__all {
  grid-column: 2;
  display: grid;
  place-items: center;
  min-width: 88px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.25s;
}
.pd-pager__all:hover {
  border-color: var(--ink);
}
@media (max-width: 768px) {
  .pd-pager {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding-bottom: 48px;
  }
  .pd-pager__item {
    grid-row: 1;
  }
  .pd-pager__item.is-next {
    grid-column: 2;
  }
  .pd-pager__item b {
    font-size: 15px;
  }
  .pd-pager__all {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ── views/portfolio-detail/index.vue ── */
.pd {
  overflow-x: clip;
}
/* 섹션 공통 소제목 */
.pd .pd-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.pd .pd-title {
  margin-top: 12px;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
