/* con05 — AI 관리자 소개: 취소선 문구 + 헤드라인 → ADMIN 마퀴 띠(커서 오버레이) → 5개 원(가운데 큰 원 허브) */
/* 모바일 접힘 의도: 세로 흐름 유지, 원 5개는 큰 원 위 / 작은 원 4개 2x2 로 접거나 wrap, 마퀴는 높이만 축소, 패딩 1/5 */

/* 섹션 높이(966)는 패딩 + 흐름으로 만든다 — 문구 2블록 → 마퀴 띠 → 원 행 */
.con05_iner {
  padding-top: calc(var(--px) * 116);
  padding-bottom: calc(var(--px) * 8);
}

/* 취소선 문구: 크롭 실측 글자색 #E3E3E3 = 검정 opacity 0.1098 (문구·말줄임 이미지·가로선이 한 불투명도를 공유) */
.con05__strike {
  padding-left: calc(var(--px) * 6);
  opacity: 0.1098;
}

/* 1줄째만 가로선 1px (PSD 선 opacity 0.102 ≈ 부모 불투명도와 같다) */
.con05__strike-bar {
  position: absolute;
  left: calc(var(--px) * -54);
  right: calc(var(--px) * -43);
  top: 50%;
  height: 1px;
  background: #000;
  transform-origin: left center;
  --strike-red: #e5232d; /* 선이 그어지는 동안의 색 — 문구가 희미해지면 위 #000 으로 돌아온다(ani_con05.js) */
}

/* 말줄임 점 3개 이미지(Gulim … 글리프 대체) — 텍스트 중앙선에 앉힌다 */
.con05__ellipsis {
  display: inline-block;
  vertical-align: middle;
}

.con05__lead {
  padding-left: calc(var(--px) * 10);
  margin-top: calc(var(--px) * 26);
}

/* 마퀴 띠: 풀폭, 높이는 타일(112)이 만든다. 타일 시작을 -66 으로 당겨 시안 ADMIN 위치(788)에 맞춘다 */
.con05__band {
  width: 100%;
  margin-top: calc(var(--px) * 95);
}

.con05__marquee {
  display: flex;
  width: 100%;
}

/* 라이브러리 .v-marquee-half 의 20s 를 이 트랙에서만 덮는다. 세트당 타일 3개(2562) ≥ 뷰포트 1905 + 시작 오프셋 66 */
.con05__track.v-marquee-half {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  margin-left: calc(var(--px) * -64);
  animation-duration: 20s;
}

.con05__tile {
  flex-shrink: 0;
}

/* 원 행: 큰 원(허브)이 가운데, 작은 원 2+2. 간격은 부모 gap */
.con05__flow {
  gap: calc(var(--px) * 21);
  padding-left: calc(var(--px) * 6);
  margin-top: calc(var(--px) * 48);
}

.con05__circle {
  width: calc(var(--px) * 133);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f0f3f9;
  box-shadow: 0 0 calc(var(--px) * 40) rgba(30, 33, 172, 0.14);
}

/* 큰 원 외곽 — 고정 헤일로 배경은 없애고 바깥으로 퍼지는 파동(.con05__plate::before/::after)만 남긴다 */
.con05__hub {
  padding: calc(var(--px) * 31.5);
  border-radius: 50%;
}

.con05__plate {
  border-radius: 50%;
}

/* 큰 원 면 — 이미지 대신 CSS 그라데이션. 색은 원래 이미지(con05_04.png)에서 찍은 두 색만 쓴다:
   위 rgb(50,53,204) ≈ var(--primary), 아래 rgb(33,35,140) ≈ primary 68% + 검정(여기서는 명암 차이를 키우려고 56%). 흰색·밝은 색은 섞지 않는다.
   바닥은 위→아래 세로 그라데이션이고, 그 위 위쪽 색 덩어리와 아래쪽 색 덩어리가 서로 반대로 천천히 흘러 다닌다
   (background-position 만 움직인다). 지름 311 */
.con05__plate-img {
  --plate-top: var(--primary);
  --plate-bottom: color-mix(in srgb, var(--primary) 56%, black); /* 원본(68%)보다 한 단계 더 어둡게 — 두 색의 명암 차이를 조금 키운다 */
  width: calc(var(--px) * 311);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--plate-top) 0, transparent 56%) no-repeat,
    radial-gradient(circle at 50% 50%, var(--plate-bottom) 0, transparent 58%) no-repeat,
    linear-gradient(180deg, var(--plate-top) 0%, var(--plate-bottom) 100%);
  background-size: 170% 170%, 150% 150%, 100% 100%;
  background-position: 0% 0%, 100% 100%, 0 0;
  animation: con05-plate-flow 9s ease-in-out infinite;
}

@keyframes con05-plate-flow {
  0%, 100% { background-position: 0% 0%, 100% 100%, 0 0; }
  33% { background-position: 100% 30%, 0% 70%, 0 0; }
  66% { background-position: 40% 100%, 60% 0%, 0 0; }
}

/* 허브 판 바깥으로 퍼지는 파동 — 링 2개가 반 주기 어긋나 끊김 없이 계속 퍼진다(CSS keyframes) */
.con05__plate::before,
.con05__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  animation: con05-plate-ripple 3.2s ease-out infinite;
}

.con05__plate::after {
  animation-delay: -1.6s;
}

@keyframes con05-plate-ripple {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 38%, transparent); }
  to { box-shadow: 0 0 0 calc(var(--px) * 46) color-mix(in srgb, var(--primary) 0%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .con05__plate::before,
  .con05__plate::after,
  .con05__plate-img {
    animation: none;
  }
}

/* IMG:AUTO con05 */
/* Derived from section HTML (tools/img-size-to-css.js · unit=--px) — regenerated, do not edit */
/* Exception: fix a value and append an OVR comment; regeneration preserves it */
.con05__ellipsis {
    width: calc(var(--px)*34);
    aspect-ratio: 34 / 5;
}

.con05__tile {
    width: calc(var(--px)*854);
    aspect-ratio: 854 / 112;
}

/* /IMG:AUTO con05 END */

/* FONT:AUTO con05 */
/* derived from spec.json (tools/spec-font-to-css.js · unit=--px) — regenerated, do not edit */
/* exception: edit line-height · letter-spacing and append an OVR comment; regeneration preserves it */
.con05 {
    font-family: var(--font-wanted);
    text-align: center;
}

.con05__strike,
.con05__lead {
    font-size: var(--titleXL);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1.19;
    color: #000000;
}

.con05__circle-label {
    font-size: var(--subheadS);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.26;
    color: #000000;
}

.con05__plate-text {
    font-size: var(--headM);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1.32;
    color: #ffffff;
}
/* /FONT:AUTO con05 END */

/* INK:AUTO con05 */
.con05__strike-line { margin-top: calc(var(--px) * -6.72); margin-bottom: calc(var(--px) * -7.28); } /* base 0,0 */
.con05__strike { margin-top: calc(var(--px) * -6.72); margin-bottom: calc(var(--px) * -6.73); } /* base 0,0 */
.con05__lead { margin-top: calc(var(--px) * 19.28); margin-bottom: calc(var(--px) * -6.73); } /* base 26,0 */
/* /INK:AUTO con05 END */

/* con05 모바일 — 항목 카드 4장 → 점선 → 관리자 카드 한 장 (원형 · 궤도 방사형을 버리고 다시 만듦) */
@media (max-width: 599px) {
  .con05_iner {
    padding-top: 12vw;
    padding-bottom: 10vw;
  }

  /* 취소선 문구: 보조 위계 — 읽힐 만큼 진하게, 줄은 굵게 */
  .con05__strike {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    font-size: var(--headM);
    line-height: 1.5;
    opacity: 0.45;
  }

  .con05__strike-line {
    margin-top: 0;
    margin-bottom: 0;
  }

  .con05__strike-bar {
    inset-block: 0;
    margin-block: auto;
    left: -3vw;
    right: -3vw;
    height: 2px;
  }

  .con05__ellipsis {
    width: 5vw;
  }

  /* 헤드라인: 주 위계 */
  .con05__lead {
    padding-left: 0;
    margin-top: 3vw;
    margin-bottom: 0;
    line-height: 1.3;
  }

  /* 흐름: 항목 카드 4장(2×2)이 점선을 타고 아래 관리자 카드 한 장으로 모인다 — 원 · 궤도 없이 카드 + 연결선 */
  .con05__flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    counter-reset: item;
    width: 88vw;
    margin-top: 8vw;
    padding-left: 0;
    gap: 2.6667vw;
  }

  /* 항목 카드: [번호 칩 · 이름] 한 줄 (왼쪽 정렬 — 훑어 읽는 목록) */
  .con05__circle {
    counter-increment: item;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2.6667vw;
    width: auto;
    aspect-ratio: auto;
    padding: 2.6667vw 3.2vw;
    border-radius: 3.2vw;
    box-shadow: 0 1.2vw 3.6vw color-mix(in srgb, var(--primary) 12%, transparent);
  }

  .con05__circle::before {
    content: counter(item, decimal-leading-zero);
    display: grid;
    place-items: center;
    flex: none;
    width: 7.4667vw;
    aspect-ratio: 1 / 1;
    border-radius: 1.8667vw;
    background-color: color-mix(in srgb, var(--primary) 10%, white);
    font-size: var(--bodyS);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
  }

  .con05__circle-label {
    text-align: left;
    word-break: keep-all;
  }

  /* 관리자 카드: 항목 카드 밑에 한 장으로 — 점선이 카드 위에서 내려와 닿는다 */
  .con05__hub {
    order: 1;
    grid-column: 1 / -1;
    flex-direction: column;
    padding: 0;
    border-radius: 0;
  }

  .con05__hub::before {
    content: "";
    height: 8vw;
    border-left: 1px dashed color-mix(in srgb, var(--primary) 55%, transparent);
  }

  .con05__plate {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    width: 100%;
    border-radius: 6vw;
  }

  .con05__plate-img {
    grid-area: 1 / 1;
    align-self: stretch;
    width: 100%;
    aspect-ratio: auto;
    border-radius: inherit;
    box-shadow: 0 3vw 9vw color-mix(in srgb, var(--primary) 40%, transparent);
  }

  .con05__plate-text {
    position: static;
    grid-area: 1 / 1;
    padding: 8vw 4vw;
    font-size: var(--headM);
    line-height: 1.4;
    word-break: keep-all;
  }

  .con05__plate-text .bold {
    display: inline-block;
    margin-top: 1.2vw;
    font-size: var(--titleXS);
  }

  /* 파동: --px 키프레임은 모바일에서 1~2px 로 줄어 vw 로 새 이름 재선언. 카드 모서리를 따라 퍼진다 */
  .con05__plate::before,
  .con05__plate::after {
    border-radius: inherit;
    animation-name: con05-plate-ripple-m;
  }

  @keyframes con05-plate-ripple-m {
    from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 38%, transparent); }
    to { box-shadow: 0 0 0 4vw color-mix(in srgb, var(--primary) 0%, transparent); }
  }

  @media (prefers-reduced-motion: reduce) {
    .con05__plate::before,
    .con05__plate::after {
      animation: none;
    }
  }
}
