/* ============================================
   SERVICES — refined (same tone as the project pages)
   fewer rules, no grey boxes or black fills, Medium headings, black text
   ============================================ */

/* ---------- HERO ---------- */
.sv-hero { border-bottom: none; padding-bottom: 72px; }
.sv-hero-title { font-weight: 500; }
.sv-hero-sub { opacity: 1; }

/* ---------- ACCORDION ---------- */
.sv-list { border-bottom: 1px solid rgba(0,0,0,0.12); }
.sv-item { border-top: 1px solid rgba(0,0,0,0.12); }
.sv-header { padding: 28px 40px; gap: 24px; transition: opacity 0.3s ease; }
.sv-header::before { display: none; }              /* no black fill on hover/open */
.sv-item.open .sv-header,
.sv-header:hover { color: var(--black); }
.sv-header:hover { opacity: 0.5; }
.sv-item.open .sv-header:hover { opacity: 1; }
.sv-num { font-size: 12px; font-weight: 500; opacity: 1; width: 24px; }
.sv-item.open .sv-num,
.sv-header:hover .sv-num { opacity: 1; }
.sv-title-wrap { gap: 12px; }
.sv-title-en { font-weight: 500; font-size: clamp(16px, 1.8vw, 24px); }
.sv-title-ko { opacity: 1; font-size: clamp(12px, 1vw, 14px); }
.sv-icon svg { width: 20px; height: 20px; }

/* body: aligned under the title, small bold column heads, plain list */
.sv-cols { padding: 4px 40px 44px 88px; }
.sv-col-title {
  font-family: 'Swiss 721', 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}
.sv-col-title::after { display: none; }
.sv-list-items { gap: 4px; }
.sv-list-items li { padding-left: 0; font-size: clamp(12px, 1vw, 14px); line-height: 1.55; }
.sv-list-items li::before { display: none; }
.sv-list-items li:hover { transform: none; }

/* ---------- MEMBERS ---------- */
.sv-members { border-bottom: none; padding: 120px 40px 40px; }
.sv-section-label { font-size: 12px; font-weight: 700; opacity: 1; margin-bottom: 16px; }
.sv-members-title,
.sv-partners-title { font-weight: 500; }
.sv-members-desc { opacity: 1; margin-bottom: 48px; }
.sv-members-grid { border-top: none; row-gap: 24px; }
.sv-member { border: none; padding: 0 32px 0 0; gap: 2px; }
.sv-member-en { font-weight: 500; }
.sv-member-ko { opacity: 1; }

/* ---------- PARTNERS ---------- */
.sv-partners { padding: 120px 40px 120px; }
.sv-partners-header { margin-bottom: 40px; }
.sv-partners-grid { background: none; gap: 40px; }
.sv-partner-card { padding: 0; gap: 12px; }
.sv-partner-name { font-weight: 500; font-size: clamp(18px, 1.8vw, 24px); }
.sv-partner-tags { gap: 0; }
.sv-partner-tags span {
  background: none;
  padding: 0;
  border-radius: 0;
  font-family: 'Swiss 721', 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.sv-partner-tags span:not(:last-child)::after { content: '\00a0·\00a0'; }
.sv-partner-desc { opacity: 1; border-top: none; padding-top: 0; margin-top: 4px; font-size: clamp(12px, 1vw, 14px); }

@media (max-width: 900px) {
  .sv-hero { padding-bottom: 48px; }
  .sv-header { padding: 22px 20px; gap: 16px; }
  .sv-title-en { font-size: 17px; }
  .sv-cols { padding: 0 20px 32px 60px; row-gap: 20px; }
  .sv-members { padding: 72px 20px 24px; }
  .sv-members-grid { row-gap: 18px; }
  .sv-member { padding-right: 16px; }
  .sv-member:nth-child(3n),
  .sv-member:nth-child(2n) { border: none; }
  .sv-partners { padding: 72px 20px 72px; }
  .sv-partners-grid { gap: 32px; }
}

/* ---------- HOVER: point-color fill + reveal sub content (PC only) ---------- */
@media (min-width: 769px) and (hover: hover) {
  .sv-item { transition: background 0.35s ease; }
  .sv-item:hover { background: var(--accent); }
  .sv-item:hover .sv-header,
  .sv-item:hover .sv-header:hover { color: var(--black); opacity: 1; }
  .sv-item:hover .sv-body { max-height: 800px; background: transparent; }
  .sv-item:hover .sv-icon { transform: rotate(45deg); }
  .sv-item:hover .sv-col-title,
  .sv-item:hover .sv-list-items li { opacity: 1; transform: translateY(0); color: var(--black); }
}

/* ============================================
   PC — Figma 회사소개서 8–15p 기준 (검은 배경, 가운데 정렬)
   모바일(768px 이하)은 기존 .sv-mobile 아코디언 그대로
   ============================================ */
.sv2 { display: none; }
@media (min-width: 769px) {
  .services-page { background: #000; color: #fff; }
  .services-page main { padding-top: 0; }
  .sv-mobile { display: none; }
  .sv2 { display: block; }

  .sv2 sup { font-size: 0.55em; font-weight: 400; vertical-align: top; position: relative; top: -0.05em; margin-right: 0.15em; }
  .sv2 .en { font-family: 'Swiss 721', sans-serif; font-weight: 700; letter-spacing: -0.035em; }
  .sv2 .kr { font-family: 'Pretendard Variable', Pretendard, sans-serif; font-weight: 500; letter-spacing: -0.02em; }

  .sv2-label {
    font-family: 'Swiss 721', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .sv2-lead {
    margin-top: 18px;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
  }

  /* 8p — 서비스 목록 */
  .sv2-intro {
    min-height: 100vh;
    padding: 96px 40px 80px;
    display: flex;
    flex-direction: column;
  }
  .sv2-index {
    margin: auto -40px;            /* 화면 폭 전체 사용 (사진 꽉 차게) */
    padding: 56px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  /* 서비스 제목 = 아코디언 버튼 (하나만 열림) */
  .sv2-acc { width: 100%; text-align: center; }
  .sv2-acc-head {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.6em;
    font-size: clamp(30px, 2.65vw, 44px);
    line-height: 1.18;
    color: #fff;
    cursor: inherit;
    transition: color 0.3s var(--transition);
  }
  .sv2-acc-head sup { margin-right: -0.35em; }
  .sv2-acc-head .kr { font-size: 0.68em; font-weight: 400; }
  .sv2-acc-head:hover,
  .sv2-acc.open .sv2-acc-head { color: var(--accent); }

  .sv2-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--transition);
  }
  .sv2-acc.open .sv2-acc-panel { grid-template-rows: 1fr; }
  .sv2-acc-inner {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .sv2-acc.open .sv2-acc-inner { opacity: 1; transition-delay: 0.15s; }

  .sv2-cols {
    display: flex;
    justify-content: center;
    gap: clamp(64px, 8vw, 140px);
    margin: 36px 40px 0;
    text-align: left;
  }
  .sv2-col h3 {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: clamp(18px, 1.55vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .sv2-col li {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: clamp(13px, 1.05vw, 16px);
    font-weight: 400;
    line-height: 1.65;
  }
  .sv2-photo { margin: 48px 0 56px; }
  .sv2-photo img { width: 100%; aspect-ratio: 1431 / 210; object-fit: cover; }

  /* 14p — MEMBERS */
  .sv2-members { padding: 120px 40px 120px; }
  .sv2-roles { margin-top: 72px; }
  .sv2-roles li {
    display: flex;
    align-items: baseline;
    gap: 0.45em;
    font-size: clamp(18px, 1.875vw, 32px);   /* 기존의 1/2 */
    line-height: 1.4;
  }
  .sv2-roles .kr { font-size: max(11px, 0.33em); font-weight: 600; }   /* 기존의 1/2 */

  /* 15p — OUR PARTNERS (형광 그린 대신 포인트 컬러) */
  .sv2-partners { padding: 120px 40px 140px; }
  .sv2-partners-img { display: block; width: 100%; max-width: 1000px; height: auto; margin: 72px auto 0; }   /* 회사소개서 91p 표 그대로 (SVG) */
  .sv2-chart, .sv2-cluster { zoom: 0.75; }   /* 표 전체를 비율 그대로 축소 */
  .sv2-chart {
    --line: rgba(255,255,255,0.85);
    margin: 72px auto 0;
    max-width: 1250px;
    display: grid;
    grid-template-columns: 1fr 2.6fr 1fr;
    align-items: end;
    gap: 0 7%;
    position: relative;
    text-align: center;
  }
  .sv2-chart::before {              /* 좌우 박스 ↔ 가운데를 잇는 선 */
    content: '';
    position: absolute;
    left: 10%; right: 10%;
    top: calc(100% - 290px / 2 - 2px);
    height: 1px;
    background: var(--line);
    z-index: 0;
  }
  .pc-side, .pc-cells > div {
    position: relative;
    z-index: 1;
    background: #000;
    border: 1px solid var(--line);
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 290px;
  }
  .sv2-chart strong {
    font-family: 'Swiss 721', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.25vw, 19px);
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
  .pc-side strong { font-size: clamp(18px, 1.75vw, 26px); }
  .sv2-chart b {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-weight: 600;
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.35;
  }
  .sv2-chart p, .sv2-chart small {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: clamp(12px, 0.95vw, 14px);
    line-height: 1.5;
  }
  .sv2-chart small { font-size: 11px; opacity: 0.85; margin-top: 6px; }
  .pc-logo {
    background: var(--accent);
    display: grid;
    place-items: center;
    height: 104px;
  }
  .pc-logo img { width: 92px; }     /* 검정 로고 그대로 */
  .pc-cells { display: grid; grid-template-columns: repeat(3, 1fr); }
  .pc-cells > div + div { border-left: none; }

  .sv2-cluster {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    max-width: 1250px;
    margin: 0 auto;
    padding-top: 74px;
    position: relative;
    text-align: center;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.35;
  }
  .sv2-cluster::before {            /* 가운데에서 내려와 가로로 퍼지는 선 */
    content: '';
    position: absolute;
    left: 50%; top: 0;
    height: 46px;
    border-left: 1px solid rgba(255,255,255,0.85);
  }
  .sv2-cluster::after {
    content: '';
    position: absolute;
    left: calc(100% / 18); right: calc(100% / 18); top: 46px;
    border-top: 1px solid rgba(255,255,255,0.85);
  }
  .sv2-cluster li { position: relative; }
  .sv2-cluster li::before {
    content: '';
    position: absolute;
    left: 50%; top: -28px;
    height: 20px;
    border-left: 1px solid rgba(255,255,255,0.85);
  }
  .sv2-cluster strong {
    display: block;
    font-family: 'Swiss 721', sans-serif;
    font-weight: 700;
    font-size: clamp(12px, 1.1vw, 16px);
    line-height: 1.1;
    margin-bottom: 4px;
  }
}

/* ============================================
   모바일 — PC와 같은 구성 (검은 배경, 가운데 정렬 아코디언, MEMBERS, OUR PARTNERS)
   PC(.sv2) 레이아웃을 그대로 쓰고 크기·배치만 모바일에 맞춤. PC 규칙은 건드리지 않음.
   ============================================ */
@media (max-width: 768px) {
  .services-page { background: #000; color: #fff; }
  .services-page main { padding-top: 0; }
  .sv-mobile { display: none; }
  .sv2 { display: block; }

  .sv2 sup { font-size: 0.55em; font-weight: 400; vertical-align: top; position: relative; top: -0.05em; margin-right: 0.15em; }
  .sv2 .en { font-family: 'Swiss 721', sans-serif; font-weight: 700; letter-spacing: -0.035em; }
  .sv2 .kr { font-family: 'Pretendard Variable', Pretendard, sans-serif; font-weight: 500; letter-spacing: -0.02em; }

  .sv2-label {
    font-family: 'Swiss 721', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .sv2-lead {
    margin-top: 14px;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
  }

  /* 서비스 목록 */
  .sv2-intro { padding: 84px 20px 48px; }
  .sv2-index {
    margin: 40px -20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .sv2-acc { width: 100%; text-align: center; }
  .sv2-acc-head {
    appearance: none;
    background: none;
    border: none;
    padding: 0 20px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 0.5em;
    font-size: clamp(19px, 5.6vw, 26px);
    line-height: 1.2;
    color: #fff;
    transition: color 0.3s var(--transition);
  }
  .sv2-acc-head sup { margin-right: -0.3em; }
  .sv2-acc-head .kr { font-size: 0.62em; font-weight: 400; }
  .sv2-acc.open .sv2-acc-head { color: var(--accent); }

  .sv2-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--transition);
  }
  .sv2-acc.open .sv2-acc-panel { grid-template-rows: 1fr; }
  .sv2-acc-inner {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .sv2-acc.open .sv2-acc-inner { opacity: 1; transition-delay: 0.15s; }

  .sv2-cols {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 24px 20px 0;
    text-align: left;
  }
  .sv2-col h3 {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  .sv2-col li {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
  }
  .sv2-photo { margin: 28px 0 32px; }
  .sv2-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

  /* MEMBERS */
  .sv2-members { padding: 80px 20px; }
  .sv2-roles { margin-top: 40px; }
  .sv2-roles li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.45em;
    font-size: clamp(22px, 6.4vw, 30px);
    line-height: 1.12;
    margin-bottom: 6px;
  }
  .sv2-roles .kr { font-size: max(12px, 0.42em); font-weight: 600; }

  /* OUR PARTNERS — PC와 같은 표를 PC 최소폭(920px) 기준으로 그린 뒤 화면 폭에 맞춰 통째로 축소 (--pz는 services.html 스크립트가 계산) */
  .sv2-partners { padding: 80px 20px 100px; }
  .sv2-partners-img { display: block; width: 100%; height: auto; margin: 32px auto 0; }
  .sv2-chart, .sv2-cluster { width: 920px; max-width: none; zoom: var(--pz, 0.36); }
  .sv2-chart {
    --line: rgba(255,255,255,0.85);
    margin: 72px auto 0;
    display: grid;
    grid-template-columns: 1fr 2.6fr 1fr;
    align-items: end;
    gap: 0 7%;
    position: relative;
    text-align: center;
  }
  .sv2-chart::before {              /* 좌우 박스 ↔ 가운데를 잇는 선 */
    content: '';
    position: absolute;
    left: 10%; right: 10%;
    top: calc(100% - 290px / 2 - 2px);
    height: 1px;
    background: var(--line);
    z-index: 0;
  }
  .pc-side, .pc-cells > div {
    position: relative;
    z-index: 1;
    background: #000;
    border: 1px solid var(--line);
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 290px;
  }
  .sv2-chart strong {
    font-family: 'Swiss 721', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.25vw, 19px);
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
  .pc-side strong { font-size: clamp(18px, 1.75vw, 26px); }
  .sv2-chart b {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-weight: 600;
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.35;
  }
  .sv2-chart p, .sv2-chart small {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: clamp(12px, 0.95vw, 14px);
    line-height: 1.5;
  }
  .sv2-chart small { font-size: 11px; opacity: 0.85; margin-top: 6px; }
  .pc-logo {
    background: var(--accent);
    display: grid;
    place-items: center;
    height: 104px;
  }
  .pc-logo img { width: 92px; }     /* 검정 로고 그대로 */
  .pc-cells { display: grid; grid-template-columns: repeat(3, 1fr); }
  .pc-cells > div + div { border-left: none; }

  .sv2-cluster {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    margin: 0 auto;
    padding-top: 74px;
    position: relative;
    text-align: center;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.35;
  }
  .sv2-cluster::before {            /* 가운데에서 내려와 가로로 퍼지는 선 */
    content: '';
    position: absolute;
    left: 50%; top: 0;
    height: 46px;
    border-left: 1px solid rgba(255,255,255,0.85);
  }
  .sv2-cluster::after {
    content: '';
    position: absolute;
    left: calc(100% / 18); right: calc(100% / 18); top: 46px;
    border-top: 1px solid rgba(255,255,255,0.85);
  }
  .sv2-cluster li { position: relative; }
  .sv2-cluster li::before {
    content: '';
    position: absolute;
    left: 50%; top: -28px;
    height: 20px;
    border-left: 1px solid rgba(255,255,255,0.85);
  }
  .sv2-cluster strong {
    display: block;
    font-family: 'Swiss 721', sans-serif;
    font-weight: 700;
    font-size: clamp(12px, 1.1vw, 16px);
    line-height: 1.1;
    margin-bottom: 4px;
  }
}

/* 서비스 설명 2줄 (회사소개서 15–19p) — 펼친 패널 맨 위 */
.sv2-desc {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.75;
}
@media (min-width: 769px) {
  .sv2-desc { margin: 28px 40px 0; font-size: 15px; line-height: 1.7; text-align: center; }
}
@media (max-width: 768px) {
  .sv2-desc { margin: 18px 0 0; font-size: 13px; line-height: 1.6; text-align: left; }
  .sv2-desc br { display: none; }
}
.sv2-desc { word-break: keep-all; }

/* ============================================
   SERVICES (PC) — 펼친 서비스 내용을 회사소개서 15–19p와 같게
   1920px 기준 수치를 vw로 환산: 설명 16 Medium · 항목 제목 = 선 1px 알약(322×60, 26 SemiBold)
   · 항목 18 Regular 가운데 정렬 · 칸 간격 200 · 알약↔항목 35 · 설명↔칸 98
   덱처럼 사진은 표시하지 않음
   ============================================ */
@media (min-width: 769px) {
  .sv2-desc {
    margin: clamp(28px, 2.45vw, 47px) auto 0;
    max-width: 62vw;
    font-size: clamp(13px, 0.833vw, 16px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.02em;
    opacity: 1;
  }
  .sv2-cols {
    gap: 10.4vw;
    margin: clamp(48px, 5.1vw, 98px) 40px 0;
    text-align: center;
  }
  .sv2-col { width: 16.8vw; min-width: 220px; }
  .sv2-col h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(44px, 3.125vw, 60px);
    margin-bottom: clamp(22px, 1.82vw, 35px);
    border: 1px solid #fff;
    border-radius: 999px;
    font-size: clamp(17px, 1.354vw, 26px);
    font-weight: 600;
    letter-spacing: -0.022em;
    white-space: nowrap;
  }
  .sv2-col li {
    font-size: clamp(13px, 0.94vw, 18px);
    line-height: 1.4;
    letter-spacing: -0.02em;
  }
  .sv2-photo { display: none; }
  .sv2-acc-inner::after { content: ""; display: block; height: clamp(48px, 4.2vw, 80px); }
}
