/* 프로젝트 상세 페이지 */
.page-project .menu a.active { color: var(--blue); }
.page-project main .wrap,
.page-project .project-tabs .wrap {
  width: min(1180px, calc(100% - 48px));
}

.project-hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: var(--subpage-hero-h); display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(4,17,34,.95) 0%, rgba(6,28,53,.86) 48%, rgba(6,28,53,.4) 100%),
    url("../images/project.jpg") right center / cover no-repeat;
}
.project-hero:after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, transparent 48%, rgba(255,255,255,.06));
}
.project-hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 56px;
  box-sizing: border-box;
}
.project-hero-copy { max-width: 760px; }
.project-kicker {
  font-size: 12px; font-weight: 900; letter-spacing: .22em; color: #9bd652;
}
.project-hero h1 {
  font-size: clamp(36px, 5vw, 64px); line-height: 1.14;
  letter-spacing: -.05em; margin: 20px 0 22px;
}
.project-hero p {
  max-width: 700px; color: #d4dfeb; font-size: 17px; line-height: 1.8; margin: 0;
}
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.project-actions a {
  padding: 15px 22px; border-radius: 10px; font-weight: 900;
  transition: transform .2s, background .2s;
}
.project-primary { background: #fff; color: var(--navy); }
.project-primary:hover { transform: translateY(-2px); }
.project-secondary { color: #fff; border: 1px solid rgba(255,255,255,.5); }
.project-secondary:hover { background: rgba(255,255,255,.1); }

.project-tabs {
  position: sticky; top: var(--header-h, 84px); z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(7,25,52,.06);
}
.project-tabs-inner { display: flex; justify-content: center; }
.project-tabs a {
  padding: 20px 42px; font-weight: 800; color: #556174;
  border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.project-tabs a:hover { color: var(--blue); border-color: var(--blue); }

.project-section {
  padding: 100px 0;
  scroll-margin-top: calc(var(--header-h) + 68px);
}
.cases-section { background: #f6f8fb; }
.process-section {
  background:
    linear-gradient(135deg, rgba(7,27,52,.94), rgba(16,47,85,.9)),
    url("../images/process-factory.jpg") center / cover no-repeat;
  color: #fff;
}

.project-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 36px; margin-bottom: 44px;
}
.project-heading > div { max-width: 620px; }
.project-heading span {
  display: block; color: var(--blue); font-size: 12px; font-weight: 900;
  letter-spacing: .17em; margin-bottom: 12px;
}
.project-heading h2 {
  font-size: clamp(30px, 3.8vw, 42px); letter-spacing: -.045em; margin: 0;
}
.project-heading p {
  max-width: 480px; color: var(--muted); line-height: 1.75; margin: 0; font-size: 15px;
}
.project-heading.light span { color: #9bd652; }
.project-heading.light p { color: #c3cfdd; }

.timeline { position: relative; padding-left: 120px; }
.timeline:before {
  content: ""; position: absolute; left: 80px; top: 15px; bottom: 15px;
  width: 2px; background: #dce4ec;
}
.timeline article {
  position: relative; display: grid; grid-template-columns: 100px 1fr;
  gap: 28px; margin-bottom: 20px;
}
.timeline article:before {
  content: ""; position: absolute; left: -45px; top: 28px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #83c33f; box-shadow: 0 0 0 7px #eef5e7;
}
.timeline-year {
  font-size: 22px; font-weight: 900; color: var(--navy); padding-top: 18px;
}
.timeline-body {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px;
  background: #fff; box-shadow: 0 8px 25px rgba(7,25,52,.05);
}
.timeline-body h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.02em; }
.timeline-body p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 15px; }

.case-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px;
}
.case-card {
  display: block; width: 100%; font: inherit; color: inherit; text-align: left;
  background: #fff; border: 1px solid #e0e6ed; border-radius: 20px;
  padding: 0 0 26px; overflow: hidden; min-height: 270px;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 8px 24px rgba(7,25,52,.045);
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.case-photo {
  height: 150px; overflow: hidden; background: #e8eef4;
}
.case-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform .4s;
}
.case-card:hover .case-photo img { transform: scale(1.05); }
.case-body { padding: 22px 26px 0; }
.case-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.case-top span {
  font-size: 11px; color: var(--blue); font-weight: 900; letter-spacing: .1em;
}
.case-top b {
  font-size: 12px; padding: 7px 10px; border-radius: 20px;
  background: #edf4e6; color: #5c932c; white-space: nowrap;
}
.case-card h3 {
  font-size: 20px; line-height: 1.45; margin: 18px 0 12px; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.case-card p { color: var(--muted); line-height: 1.7; margin: 0; font-size: 14px; }
.case-card ul {
  display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0 0; gap: 8px;
}
.case-card li {
  font-size: 11px; color: #677386; background: #f2f5f8;
  padding: 7px 10px; border-radius: 7px;
}
.case-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: 13px; font-weight: 800; color: var(--blue);
}
.case-more:after { content: "→"; }
body.case-modal-open { overflow: hidden; }
.case-modal {
  position: fixed; inset: 0; z-index: 10050;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px 16px;
}
.case-modal.is-open {
  display: flex !important;
}
.case-modal-backdrop {
  position: absolute; inset: 0; background: rgba(4, 17, 34, .72);
}
.case-modal-dialog {
  position: relative; z-index: 1; width: min(920px, 100%);
  max-height: min(90vh, 880px); overflow: auto; background: #fff;
  border-radius: 22px; box-shadow: 0 24px 80px rgba(4, 17, 34, .35);
  outline: none;
}
.case-modal-close {
  position: sticky; top: 14px; float: right; z-index: 2;
  margin: 14px 14px 0 0; width: 40px; height: 40px; border: 0;
  border-radius: 50%; background: rgba(7, 25, 52, .82); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.case-modal-media { height: 240px; background: #e8eef4; }
.case-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-modal-body { padding: 32px 36px 40px; }
.case-modal-kicker {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
}
.case-modal-kicker span {
  font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--blue);
}
.case-modal-kicker b {
  font-size: 12px; padding: 7px 10px; border-radius: 20px;
  background: #edf4e6; color: #5c932c;
}
.case-modal-body h2 {
  font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin: 14px 0 16px; line-height: 1.3;
}
.case-modal-tags {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px;
}
.case-modal-tags li {
  font-size: 12px; color: #677386; background: #f2f5f8; padding: 7px 10px; border-radius: 7px;
}
.case-modal-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin: 0 0 28px;
}
.case-modal-facts div {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #f7f9fc;
}
.case-modal-facts dt {
  font-size: 11px; font-weight: 800; color: #7b8797; letter-spacing: .04em; margin: 0 0 6px;
}
.case-modal-facts dd { margin: 0; font-size: 14px; font-weight: 800; color: var(--navy); line-height: 1.45; }
.case-modal-detail p {
  margin: 0 0 14px; color: var(--muted); line-height: 1.8; font-size: 15px;
}
.case-modal-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px;
}
.case-modal-split section {
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fff;
}
.case-modal-split h3 {
  margin: 0 0 12px; font-size: 15px; color: var(--navy);
}
.case-modal-split ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; font-size: 14px; }
.case-modal-cta {
  display: inline-flex; margin-top: 26px; background: var(--navy); color: #fff;
  padding: 14px 20px; border-radius: 10px; font-weight: 900;
}
.case-modal-cta:hover { transform: translateY(-1px); }

.process-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px;
}
.process-grid article {
  position: relative; padding: 26px 18px; min-height: 270px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.055);
}
.process-grid article b {
  color: #9bd652; font-size: 10px; letter-spacing: .15em;
}
.process-grid article span {
  display: block; font-size: 46px; line-height: 1;
  color: #fff; font-weight: 900; margin: 18px 0;
}
.process-grid h3 { font-size: 17px; margin: 0 0 12px; }
.process-grid p {
  color: #bdcad9; line-height: 1.7; font-size: 14px; margin: 0;
}
.process-note {
  margin-top: 20px; border-radius: 17px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: 26px 30px; display: flex; gap: 36px; align-items: center;
}
.process-note strong {
  white-space: nowrap; color: #9bd652; font-size: 12px; letter-spacing: .12em;
}
.process-note p { margin: 0; color: #c5d0dd; line-height: 1.7; }

.project-cta { padding: 90px 0 100px; }
.project-cta-inner {
  background: linear-gradient(135deg, #edf3f8, #fff);
  border: 1px solid var(--line); border-radius: 23px; padding: 40px 46px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.project-cta span {
  color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .15em;
}
.project-cta h2 {
  font-size: clamp(22px, 2.8vw, 30px); margin: 10px 0; line-height: 1.35;
}
.project-cta p { margin: 0; color: var(--muted); line-height: 1.7; }
.project-cta a {
  flex: 0 0 auto; background: var(--navy); color: #fff;
  padding: 16px 24px; border-radius: 10px; font-weight: 900; white-space: nowrap;
  transition: transform .2s;
}
.project-cta a:hover { transform: translateY(-2px); }

@media (max-width: 1020px) {
  .project-hero { min-height: auto; height: auto; }
  .project-hero-inner { flex-direction: column; align-items: flex-start; min-height: auto; height: auto; padding: 64px 0; }
  .project-heading { flex-direction: column; align-items: flex-start; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-modal-facts { grid-template-columns: 1fr 1fr; }
  .case-modal-body { padding: 24px; }
  .process-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .process-grid article { min-height: auto; }
  .project-tabs-inner { overflow-x: auto; justify-content: flex-start; }
  .project-tabs a { padding: 16px 20px; font-size: 13px; white-space: nowrap; }
}

@media (max-width: 640px) {
  .project-hero-inner { padding: 64px 0; }
  .project-actions { flex-direction: column; }
  .project-actions a { text-align: center; }
  .project-tabs-inner { overflow-x: auto; justify-content: flex-start; }
  .project-tabs a { white-space: nowrap; padding: 16px 14px; }
  .project-section { padding: 72px 0; }
  .timeline { padding-left: 0; }
  .timeline:before,
  .timeline article:before { display: none; }
  .timeline article { grid-template-columns: 1fr; gap: 8px; }
  .timeline-year { padding-top: 0; }
  .case-grid,
  .process-grid { grid-template-columns: 1fr; }
  .case-modal { padding: 10px; }
  .case-modal-media { height: 180px; }
  .case-modal-facts,
  .case-modal-split { grid-template-columns: 1fr; }
  .process-note,
  .project-cta-inner { flex-direction: column; align-items: flex-start; }
  .process-note strong { white-space: normal; }
  .project-cta-inner { padding: 28px 22px; }
  .project-hero h1 br { display: none; }
}
