/* === ARCHIVE: Animated Stroke Text === */
#archive {
  position: relative;
  background: #fdfdfd;
  color: #262626;
}

#archive .archive-inner {
  min-height: 95vh;
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
}

#archive .text-wrapper {
  width: min(1600px, 95vw);
  margin: 0 auto;
  text-align: center;
}

#archive .animated-text {
  width: 95%;
  margin: 50px auto;
  line-height: 1.2;
  text-align: right;
  font-size: clamp(40px, 9.5vw, 100px);
  letter-spacing: -0.02em;
  color: #262626;
}

#archive .animated-tit {
  margin-left: 40px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: bold;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1;
  text-align: left;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

#archive .word-group {
  position: relative;
  display: inline-block;
  margin: 0 0.3vw;
  font-family: 'HelveticaNeueLTPro', sans-serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  transition: opacity .5s ease, color .5s ease;
  will-change: opacity, color;
}

#archive .word-group::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px #000;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

#archive .word-group.active {
  color: transparent;
}

#archive .word-group.active::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #archive .word-group {
    transition: none !important;
  }

  #archive .word-group::after {
    display: none !important;
  }

  #archive .word-group.active {
    color: #000 !important;
  }
}

/* === ARCHIVE: Strengths Block === */
.archive-strengths {
  position: relative;
  width: 100%;
  min-height: 90vh;
  background: transparent;
  color: inherit;
  padding: 100px 0 0px;
}

.archive-strengths .strengths-wrap {
  width: min(1480px, 95%);
  margin: 0 auto;
  text-align: center;
}

.strengths-eyebrow {
  font-weight: 400;
  color: #9e9e9e;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 1px;
  margin: 10px 0 8px;
}

.strengths-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 100px;
}

.strengths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto 1fr;
  gap: clamp(20px, 3vw, 30px);
  align-items: stretch;
  justify-items: center;
}

.strength-card {
  width: 100%;
  max-width: 360px;
}

.strength-card .media {
  position: relative;
  overflow: hidden;
}

.strength-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .0);
  border-radius: 3px;
  transition: background .25s ease;
  pointer-events: none;
}

.strength-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .18);
}

.strength-card:hover img,
.strength-card:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12), 0 16px 40px rgba(0, 0, 0, .28);
  filter: saturate(1.03);
}

.strength-card figcaption {
  font-family: 'Pretendard', sans-serif;
  margin-top: 8px;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 16px);
  color: inherit;
  color: #423d3d;
  text-align: left;
}

.strength-card figcaption .ko {
  margin-right: 5px;
}

.strength-card figcaption .en {
  color: #5b5b5b;
}

.strengths-grid.is-hovering .strength-card:not(.is-active) .media::after {
  background: rgba(0, 0, 0, .7);
}

.strengths-grid:has(.strength-card:hover) .strength-card:not(:hover) .media::after,
.strengths-grid:has(.strength-card :focus-visible) .strength-card:not(:has(:focus-visible)) .media::after {
  background: rgba(0, 0, 0, .7);
}

.strength-card .media .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .strength-card:hover .media .overlay {
    opacity: 1;
    transform: none;
  }
}

.strength-card :focus-visible~.overlay,
.strength-card:has(:focus-visible) .media .overlay {
  opacity: 1;
  transform: none;
}

.strength-note {
  width: 360px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 8px 8px 20px;
}

.note-eyebrow {
  align-self: flex-start;
  font-weight: 300;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 1px;
  color: #9e9e9e;
  margin: 0 0 6px 2px;
}

.note-title {
  font-weight: 300;
  font-size: clamp(24px, 2.5vw, 32px);
  color: #141414;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  margin-top: 20px;
}

.note-desc {
  font-weight: 300;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.2;
  color: #262626;
  max-width: 40ch;
  margin-bottom: 0;
  align-self: center;
  margin-top: 80px;
  text-align: center;
}

.strength-note .note-panels .note-panel {
  display: none;
}

.strength-note .note-panels .note-panel.note-default {
  display: block;
}

.strengths-grid:has(.strength-card[data-key="1"]:hover) .strength-note .note-panels .note-panel.note-default,
.strengths-grid:has(.strength-card[data-key="1"] :focus-visible) .strength-note .note-panels .note-panel.note-default {
  display: none;
}

.strengths-grid:has(.strength-card[data-key="1"]:hover) .strength-note .note-panels .note-panel[data-key="1"],
.strengths-grid:has(.strength-card[data-key="1"] :focus-visible) .strength-note .note-panels .note-panel[data-key="1"] {
  display: block;
}

.strengths-grid:has(.strength-card[data-key="2"]:hover) .strength-note .note-panels .note-panel.note-default,
.strengths-grid:has(.strength-card[data-key="2"] :focus-visible) .strength-note .note-panels .note-panel.note-default {
  display: none;
}

.strengths-grid:has(.strength-card[data-key="2"]:hover) .strength-note .note-panels .note-panel[data-key="2"],
.strengths-grid:has(.strength-card[data-key="2"] :focus-visible) .strength-note .note-panels .note-panel[data-key="2"] {
  display: block;
}

.strengths-grid:has(.strength-card[data-key="3"]:hover) .strength-note .note-panels .note-panel.note-default,
.strengths-grid:has(.strength-card[data-key="3"] :focus-visible) .strength-note .note-panels .note-panel.note-default {
  display: none;
}

.strengths-grid:has(.strength-card[data-key="3"]:hover) .strength-note .note-panels .note-panel[data-key="3"],
.strengths-grid:has(.strength-card[data-key="3"] :focus-visible) .strength-note .note-panels .note-panel[data-key="3"] {
  display: block;
}

.strengths-grid:has(.strength-card[data-key="4"]:hover) .strength-note .note-panels .note-panel.note-default,
.strengths-grid:has(.strength-card[data-key="4"] :focus-visible) .strength-note .note-panels .note-panel.note-default {
  display: none;
}

.strengths-grid:has(.strength-card[data-key="4"]:hover) .strength-note .note-panels .note-panel[data-key="4"],
.strengths-grid:has(.strength-card[data-key="4"] :focus-visible) .strength-note .note-panels .note-panel[data-key="4"] {
  display: block;
}

.strengths-grid:has(.strength-card[data-key="1"]:hover) .strength-note .note-panels .note-panel[data-key="1"],
.strengths-grid:has(.strength-card[data-key="1"] :focus-visible) .strength-note .note-panels .note-panel[data-key="1"],
.strengths-grid:has(.strength-card[data-key="2"]:hover) .strength-note .note-panels .note-panel[data-key="2"],
.strengths-grid:has(.strength-card[data-key="2"] :focus-visible) .strength-note .note-panels .note-panel[data-key="2"],
.strengths-grid:has(.strength-card[data-key="3"]:hover) .strength-note .note-panels .note-panel[data-key="3"],
.strengths-grid:has(.strength-card[data-key="3"] :focus-visible) .strength-note .note-panels .note-panel[data-key="3"],
.strengths-grid:has(.strength-card[data-key="4"]:hover) .strength-note .note-panels .note-panel[data-key="4"],
.strengths-grid:has(.strength-card[data-key="4"] :focus-visible) .strength-note .note-panels .note-panel[data-key="4"] {
  text-align: left;
}

.strengths-grid:has(.strength-card[data-key="1"]:hover) .strength-note .note-panels .note-panel[data-key="1"] .note-title,
.strengths-grid:has(.strength-card[data-key="1"] :focus-visible) .strength-note .note-panels .note-panel[data-key="1"] .note-title,
.strengths-grid:has(.strength-card[data-key="2"]:hover) .strength-note .note-panels .note-panel[data-key="2"] .note-title,
.strengths-grid:has(.strength-card[data-key="2"] :focus-visible) .strength-note .note-panels .note-panel[data-key="2"] .note-title,
.strengths-grid:has(.strength-card[data-key="3"]:hover) .strength-note .note-panels .note-panel[data-key="3"] .note-title,
.strengths-grid:has(.strength-card[data-key="3"] :focus-visible) .strength-note .note-panels .note-panel[data-key="3"] .note-title,
.strengths-grid:has(.strength-card[data-key="4"]:hover) .strength-note .note-panels .note-panel[data-key="4"] .note-title,
.strengths-grid:has(.strength-card[data-key="4"] :focus-visible) .strength-note .note-panels .note-panel[data-key="4"] .note-title {
  font-weight: 400;
  letter-spacing: -0.02em;
}

.strengths-grid:has(.strength-card[data-key="1"]:hover) .strength-note .note-panels .note-panel[data-key="1"] .note-desc,
.strengths-grid:has(.strength-card[data-key="1"] :focus-visible) .strength-note .note-panels .note-panel[data-key="1"] .note-desc,
.strengths-grid:has(.strength-card[data-key="2"]:hover) .strength-note .note-panels .note-panel[data-key="2"] .note-desc,
.strengths-grid:has(.strength-card[data-key="2"] :focus-visible) .strength-note .note-panels .note-panel[data-key="2"] .note-desc,
.strengths-grid:has(.strength-card[data-key="3"]:hover) .strength-note .note-panels .note-panel[data-key="3"] .note-desc,
.strengths-grid:has(.strength-card[data-key="3"] :focus-visible) .strength-note .note-panels .note-panel[data-key="3"] .note-desc,
.strengths-grid:has(.strength-card[data-key="4"]:hover) .strength-note .note-panels .note-panel[data-key="4"] .note-desc,
.strengths-grid:has(.strength-card[data-key="4"] :focus-visible) .strength-note .note-panels .note-panel[data-key="4"] .note-desc {
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 30px;
  text-align: left;
  max-width: 40ch;
}

@media (max-width: 1380px) {
  .archive-strengths .strengths-wrap {
    width: min(1280px, 95%);
  }

  .strength-card {
    max-width: 320px;
  }

  .strength-note {
    width: 320px;
  }
}

@media (max-width: 1180px) {
  .strengths-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .strength-note {
    width: 100%;
    max-width: 300px;
  }

  .note-title {
    font-size: 28px;
  }
}

@media (max-width: 900px) {
  .strengths-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .strength-note {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(480px, 100%);
    height: auto;
  }

  .note-title {
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .strengths-title {
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }

  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .strength-card {
    max-width: 320px;
  }

  .strength-note {
    width: 100%;
    max-width: 320px;
    text-align: left;
    align-items: flex-start;
    height: auto;
  }

  .note-title {
    font-size: clamp(18px, 1.8vw, 24px);
    text-align: left;
    margin-top: 6px;
  }

  .note-desc {
    font-size: clamp(14px, 1.2vw, 16px);
    text-align: left;
  }
}

