/* ========================================
   brand-story-hero
   ======================================== */

.brand-story-hero {
  width: 100%;
}

.brand-story-hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* design 1920px */
  height: 25rem; /* 400px */
  overflow: hidden;
}

.brand-story-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.brand-story-hero__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #000;
  opacity: 0.2;
  pointer-events: none;
}

.brand-story-hero__title {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  color: var(--color-brand-light-2);
}

/* ========================================
   brand-story-name
   ======================================== */

.brand-story-name {
  position: relative;
}

.brand-story-name__pin {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-brand-light-1);
}

.brand-story-name__layer--base {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-story-name__intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-story-name__title {
  margin: 0;
  font-family: var(--font-paperlogy);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.25vw, 7.5rem); /* ~40–120px */
  letter-spacing: 0.1em; /* 10% */
  color: var(--color-text-dark);
  text-align: center;
  white-space: nowrap;
  will-change: transform;
}

.brand-story-name__title-lead,
.brand-story-name__title-equil,
.brand-story-name__title-tail {
  display: inline;
}

/* 타이틀 정중앙 기준 — 한글은 그 아래 (스크롤 시 아래에서 등장) */
.brand-story-name__caption {
  position: absolute;
  top: 100%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem; /* 20px */
  margin: 2rem 0 0;
  font-family: var(--font-suit);
  font-weight: 500;
  font-size: clamp(1rem, 1.667vw, 2rem); /* ~16–32px */
  color: var(--color-text-dark);
  white-space: nowrap;
  opacity: 0;
  will-change: opacity, transform;
}

.brand-story-name__caption-word,
.brand-story-name__caption-dot {
  flex-shrink: 0;
}

.brand-story-name__circle {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-brand-dark);
  clip-path: circle(0px at 50% 50%);
  will-change: clip-path;
}

.brand-story-name__circle-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-inline: clamp(1.25rem, 3.125vw, 3.75rem); /* 20–60px */
  box-sizing: border-box;
}

.brand-story-name__invert-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: opacity;
}

.brand-story-name__title--invert {
  color: transparent;
}

.brand-story-name__title--invert .brand-story-name__title-lead,
.brand-story-name__title--invert .brand-story-name__title-tail {
  color: transparent;
}

.brand-story-name__title--invert .brand-story-name__title-equil {
  color: #fff; /* 원 안 글자색으로 EQUIL만 반전 */
}

.brand-story-name__row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.brand-story-name__eq,
.brand-story-name__uil {
  flex: 0 0 auto;
  font-family: var(--font-paperlogy);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.25vw, 7.5rem); /* 120px */
  letter-spacing: 0.1em; /* 10% */
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  will-change: opacity;
}

.brand-story-name__message {
  flex: 0 1 auto;
  width: 0;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden; /* x:hidden + y:visible 조합은 브라우저가 y:auto로 바꿔 스크롤 생김 */
  font-family: var(--font-suit);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 3.125rem); /* 50px */
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  will-change: width, margin;
}

.brand-story-name__message-inner {
  display: inline-block;
  white-space: nowrap;
}

.brand-story-name__message-part {
  display: inline;
  opacity: 0;
  will-change: opacity;
}

.brand-story-name__message-break {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .brand-story-name__circle {
    clip-path: circle(150vmax at 50% 50%);
  }

  .brand-story-name__caption {
    opacity: 1;
    transform: translateX(-50%);
  }

  .brand-story-name__invert-layer {
    opacity: 0;
  }

  .brand-story-name__eq,
  .brand-story-name__uil {
    opacity: 0;
  }

  .brand-story-name__message {
    width: auto;
    margin-inline: 1.5rem;
  }

  .brand-story-name__message-part {
    opacity: 1;
  }
}

/* ========================================
   brand-story-origin
   ======================================== */

.brand-story-origin {
  padding-block: 7.5rem; /* 120px */
}

.brand-story-origin__container {
  display: flex;
  flex-direction: column;
}

.brand-story-origin__heading {
  align-items: flex-start;
  text-align: left;
}

.brand-story-origin__media {
  width: calc(100% - (var(--grid-margin) * 2));
  height: 31.25rem; /* 500px */
  margin-top: 3.75rem; /* 60px — heading ↔ media */
  margin-inline: auto;
  overflow: hidden;
}

.brand-story-origin__image,
.brand-story-origin__video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* ========================================
   brand-story-philosophy
   ======================================== */

.brand-story-philosophy {
  padding-top: 7.5rem; /* 120px */
  padding-bottom: 7.5rem; /* 120px */
  background-color: var(--color-brand-light-2);
}

.brand-story-philosophy__container {
  display: flex;
  flex-direction: column;
  gap: 3.75rem; /* 60px — heading ↔ grid */
}

.brand-story-philosophy__heading {
  align-items: flex-start;
  text-align: left;
}

.brand-story-philosophy__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 16.25rem); /* 260px */
  gap: 1.25rem; /* 20px */
  width: 100%;
  max-width: 105rem; /* 1680px */
  margin: 0;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

.brand-story-philosophy__item {
  position: relative;
  min-width: 0;
}

.brand-story-philosophy__card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
}

.brand-story-philosophy__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.brand-story-philosophy__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #000;
  pointer-events: none;
}

.brand-story-philosophy__dim--40 {
  opacity: 0.4;
}

.brand-story-philosophy__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.brand-story-philosophy__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1.25rem; /* 20px */
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}

.brand-story-philosophy__label {
  grid-area: 1 / 1;
  margin: 0;
  letter-spacing: 0.02em; /* 2% */
  color: #fff;
  text-align: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.brand-story-philosophy__detail {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem; /* 12px */
  margin: 0;
  opacity: 0;
  transform: translateY(0.625rem); /* 10px */
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.brand-story-philosophy__detail-title {
  margin: 0;
  font-family: var(--font-suit);
  font-weight: 600;
  font-size: 1.75rem; /* 28px */
  line-height: 1.3;
  color: #fff;
  text-align: center;
}

.brand-story-philosophy__detail-text {
  margin: 0;
  font-family: var(--font-suit);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.4;
  letter-spacing: 0.02em; /* 2% */
  color: #fff;
  text-align: center;
}

.brand-story-philosophy__card:hover .brand-story-philosophy__image,
.brand-story-philosophy__card:focus-within .brand-story-philosophy__image {
  transform: scale(1.05);
}

.brand-story-philosophy__card:hover .brand-story-philosophy__overlay,
.brand-story-philosophy__card:focus-within .brand-story-philosophy__overlay {
  opacity: 0.4;
}

.brand-story-philosophy__card:hover .brand-story-philosophy__label,
.brand-story-philosophy__card:focus-within .brand-story-philosophy__label {
  opacity: 0;
}

.brand-story-philosophy__card:hover .brand-story-philosophy__detail,
.brand-story-philosophy__card:focus-within .brand-story-philosophy__detail {
  opacity: 1;
  transform: translateY(0);
}

.brand-story-philosophy__nav {
  display: none;
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .brand-story-hero__title {
    font-size: clamp(2.25rem, 4.692vw, 3rem); /* 48px, tab/hero-title */
  }

  .brand-story-philosophy__heading .heading-3tier__sub-title {
    font-size: 1.125rem; /* 18px, tab/p-body03 */
  }

  .brand-story-origin__heading .heading-3tier__sub-title {
    font-size: 1.125rem; /* 18px, tab/p-body03 */
  }

  .brand-story-philosophy__heading .heading-3tier__title {
    font-size: 2rem; /* 32px, tab/title03 */
  }

  .brand-story-origin__heading .heading-3tier__title {
    font-size: 2rem; /* 32px, tab/title03 */
  }

  .brand-story-philosophy__heading .heading-3tier__desc {
    font-size: 1.25rem; /* 20px, tab/body02 */
  }

  .brand-story-origin__heading .heading-3tier__desc {
    font-size: 1.25rem; /* 20px, tab/body02 */
  }

  .brand-story-origin__media {
    height: 37.5rem; /* 600px */
    margin-top: 2.5rem; /* 40px */
  }

  .brand-story-philosophy__detail-title {
    font-size: clamp(1.313rem, 2.737vw, 1.75rem); /* 28px, tab/subtitle02 */
  }

  .brand-story-philosophy__detail-text {
    font-size: clamp(0.938rem, 1.955vw, 1.25rem); /* 20px, tab/body02 */
  }

  .brand-story-name__caption {
    margin-top: 1rem;
  }
}

@media (min-width: 48rem) {
  .brand-story-philosophy__title-break {
    display: none;
  }
}

@media (max-width: 47.9375rem) {
  .brand-story-hero__title {
    font-size: clamp(1.364rem, 6.818vw, 1.875rem); /* 30px, mo/hero-title */
  }

  .brand-story-philosophy__heading .heading-3tier__sub-title {
    font-size: 1rem; /* 16px, mo/p-body03 */
  }

  .brand-story-origin__heading .heading-3tier__sub-title {
    font-size: 1rem; /* 16px, mo/p-body03 */
  }

  .brand-story-philosophy__heading .heading-3tier__title {
    font-size: 1.75rem; /* 28px, mo/title03 */
  }

  .brand-story-origin__heading .heading-3tier__title {
    font-size: 1.75rem; /* 28px, mo/title03 */
  }

  .brand-story-philosophy__heading .heading-3tier__desc {
    font-size: 1rem; /* 16px, mo/body03 */
  }

  .brand-story-origin__heading .heading-3tier__desc {
    font-size: 1rem; /* 16px, mo/body03 */
    text-wrap: pretty;
    word-break: keep-all;
    max-width: 21.25rem; /* 340px */
  }

  .brand-story-origin__desc-break {
    display: none;
  }

  .brand-story-origin__media {
    height: 15.125rem; /* 242px */
    margin-top: 2.5rem; /* 40px */
  }

  .brand-story-philosophy__detail-title {
    font-size: clamp(1.091rem, 5.455vw, 1.5rem); /* 24px, mo/subtitle02 */
  }

  .brand-story-philosophy__detail-text {
    font-size: clamp(0.75rem, 3.636vw, 1rem); /* 16px, mo/body03 */
  }

  .brand-story-name__eq,
  .brand-story-name__uil {
    display: none;
  }

  .brand-story-name__row {
    justify-content: center;
    width: 100%;
  }

  .brand-story-name__message {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(0.875rem, 4.545vw, 1.25rem); /* 14–20px */
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow: visible;
  }

  .brand-story-name__message-inner {
    display: block;
    text-align: center;
    white-space: normal;
  }

  .brand-story-name__message-break {
    display: none;
  }

  .brand-story-name__message-part {
    display: block;
    white-space: nowrap;
    text-align: center;
    will-change: transform, opacity;
  }

  .brand-story-name__caption {
    margin-top: 1rem;
  }
}

@media (max-width: 63.9375rem) {
  .brand-story-origin {
    padding-block: 5rem; /* 80px */
  }

  .brand-story-philosophy {
    padding-block: 5rem; /* 80px */
  }

  .brand-story-philosophy__container {
    padding-inline: 0;
    gap: 0;
  }

  .brand-story-philosophy__heading {
    padding-inline: var(--grid-margin);
  }

  .brand-story-philosophy__list {
    position: relative;
    display: block;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 0;
    width: calc(100% - (var(--grid-margin) * 2));
    height: 24.875rem; /* 398px */
    margin-top: 2.5rem; /* 40px — heading ↔ image */
    margin-inline: auto;
    overflow: hidden;
  }

  .brand-story-philosophy__item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
  }

  .brand-story-philosophy__card {
    height: 100%;
  }

  .brand-story-philosophy__card:hover .brand-story-philosophy__image,
  .brand-story-philosophy__card:focus-within .brand-story-philosophy__image {
    transform: none;
  }

  .brand-story-philosophy__dim {
    display: none;
  }

  .brand-story-philosophy__overlay {
    background-color: #333;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .brand-story-philosophy__card:hover .brand-story-philosophy__overlay,
  .brand-story-philosophy__card:focus-within .brand-story-philosophy__overlay {
    opacity: 0;
  }

  .brand-story-philosophy__card.is-active .brand-story-philosophy__overlay,
  .brand-story-philosophy__card.is-active:hover .brand-story-philosophy__overlay,
  .brand-story-philosophy__card.is-active:focus-within .brand-story-philosophy__overlay {
    opacity: 0.4;
  }

  .brand-story-philosophy__label {
    display: none;
  }

  .brand-story-philosophy__content {
    pointer-events: none;
  }

  .brand-story-philosophy__detail {
    opacity: 1;
    transform: none;
    text-align: center;
  }

  .brand-story-philosophy__card:hover .brand-story-philosophy__detail,
  .brand-story-philosophy__card:focus-within .brand-story-philosophy__detail {
    opacity: 1;
    transform: none;
  }

  .brand-story-philosophy__detail-title,
  .brand-story-philosophy__detail-text {
    opacity: 0;
    transform: translate3d(0, 2.5rem, 0); /* fadeUp y 40px */
    will-change: transform, opacity;
    transition:
      opacity 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
      transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .brand-story-philosophy__card:hover .brand-story-philosophy__detail-title,
  .brand-story-philosophy__card:focus-within .brand-story-philosophy__detail-title,
  .brand-story-philosophy__card:hover .brand-story-philosophy__detail-text,
  .brand-story-philosophy__card:focus-within .brand-story-philosophy__detail-text {
    opacity: 0;
    transform: translate3d(0, 2.5rem, 0);
  }

  .brand-story-philosophy__card.is-active .brand-story-philosophy__detail-title,
  .brand-story-philosophy__card.is-active:hover .brand-story-philosophy__detail-title,
  .brand-story-philosophy__card.is-active:focus-within .brand-story-philosophy__detail-title {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s,
      transform 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s;
  }

  .brand-story-philosophy__card.is-active .brand-story-philosophy__detail-text,
  .brand-story-philosophy__card.is-active:hover .brand-story-philosophy__detail-text,
  .brand-story-philosophy__card.is-active:focus-within .brand-story-philosophy__detail-text {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.55s,
      transform 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.55s;
  }

  .brand-story-philosophy__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.9375rem; /* 15px */
    margin-top: 0.875rem; /* 14px — image ↔ pagination */
  }

  .brand-story-philosophy__nav-item {
    display: block;
    width: 0.375rem; /* 6px */
    height: 0.375rem; /* 6px */
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 6.25rem;
    background-color: var(--color-grey-400);
    cursor: pointer;
    font-size: 0;
    color: transparent;
    transition:
      width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.4s ease;
  }

  .brand-story-philosophy__nav-item.is-active {
    width: 1.25rem; /* 20px */
    height: 0.375rem; /* 6px */
    background-color: var(--color-brand-dark);
  }
}

@media (max-width: 47.9375rem) {
  .brand-story-origin {
    padding-block: 3.75rem; /* 60px */
  }

  .brand-story-philosophy {
    padding-block: 3.75rem; /* 60px */
  }

  .brand-story-philosophy__list {
    height: 24.875rem; /* 398px */
  }

  .brand-story-philosophy__card {
    height: 24.875rem; /* 398px */
  }

  .brand-story-philosophy__nav {
    margin-top: 0.875rem; /* 14px — 이미지 하단 여백 */
  }
}

/* ========================================
   brand-story-end
   ======================================== */

.brand-story-end {
  width: 100%;
}

.brand-story-end__media {
  width: 100%;
  height: 25rem; /* 400px */
  overflow: hidden;
}

.brand-story-end__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
