/* ============================================================
   LIMPID · Brand Detail (솔루션 상세 : 트러스티푸드 · 킨포라)
   trustyfood.html / kinfora.html 공용. 소유 : 솔루션 세션.
   공용 프리미티브는 base.css, 헤더·푸터는 chrome.js + home.css.
   레이아웃은 limpid.co.kr/trustyfood 레퍼런스를 따른다 :
   1) 텍스트를 얹은 풀블리드 히어로 (양옆 12px · r30)
   2) 소개 [텍스트 | 원형 이미지]
   3) 중앙 선언 (영문 + 한글 헤드라인)
   4) Core Value 3단 카드
   5) 라인업 : 가로로 흐르는 이미지 밴드 + 우측 텍스트
   ============================================================ */

/* ============ 1. 히어로 ============
   레퍼런스처럼 이미지 위에 흰 텍스트. 사진이 오기 전까지는
   어두운 면(surface-dark) 위에 빗금 플레이스홀더로 대신한다 */
.bd-hero { padding: 12px 12px 0; }
.bd-hero__frame {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 62vh, 600px);
  border-radius: 30px;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, .035) 0 10px,
      rgba(255, 255, 255, .012) 10px 20px),
    var(--surface-dark);
}
/* 실제 사진이 들어온 경우 : 프레임을 가득 채우고,
   텍스트 가독을 위해 왼쪽에서 오른쪽으로 옅어지는 어둠을 깐다 */
.bd-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bd-hero__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 21, 35, .58) 0%, rgba(15, 21, 35, .28) 55%, rgba(15, 21, 35, .08) 100%);
}
/* 이미지 자리 라벨. 실제 사진(img/video)으로 교체하면 지워진다 */
.bd-hero__frame[data-ph]::after {
  content: attr(data-ph);
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--on-ink-3);
}
.bd-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(96px, 14vh, 150px) clamp(56px, 8vh, 96px);
}
.bd-hero__sub {
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: var(--on-ink-2);
  opacity: 0;
  transform: translateY(14px);
  animation: bd-fade .7s var(--ease-out) .12s forwards;
}
.bd-hero__title {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: var(--ls-tight);
  color: var(--on-ink);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(14px);
  animation: bd-fade .7s var(--ease-out) .26s forwards;
}
.bd-hero__logo {
  margin-top: 28px;
  height: 44px;
  width: auto;
  opacity: 0;
  animation: bd-fade .7s var(--ease-out) .4s forwards;
}
@keyframes bd-fade { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bd-hero__sub, .bd-hero__title, .bd-hero__logo { animation-delay: 0s !important; }
}

/* ============ 2. 소개 ============
   좌 텍스트 + 우 원형 이미지 (레퍼런스의 도면 위 원형 제품 컷) */
.bd-intro { padding-block: var(--sec-y); }
.bd-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.bd-intro__title { margin-top: 18px; }
.bd-intro__desc {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--ink-2);
}
.bd-intro__media { display: grid; justify-items: center; }
.bd-intro__circle {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
/* 실제 제품 컷(원형 누끼 png)이 들어온 경우 */
.bd-intro__img { width: min(100%, 440px); height: auto; }

/* ============ 3. 중앙 선언 ============ */
.bd-belief { padding-block: var(--sec-y); text-align: center; }
.bd-belief__en {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brand);
}
.bd-belief__title { margin-top: 14px; }
.bd-belief__desc {
  margin-top: 18px;
  max-width: 58ch;
  margin-inline: auto;
  color: var(--ink-2);
}

/* ============ 4. Core Value 3단 ============ */
.bd-values { padding-block: var(--sec-y); }
.bd-values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}
.bd-value__ph,
.bd-value__img {
  width: 100%;
  aspect-ratio: 435 / 360;   /* 레퍼런스 실측 */
  border-radius: var(--r-md);
}
.bd-value__img { object-fit: cover; }
.bd-value__label {
  margin-top: 22px;
  --mark-size: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}
.bd-value__title {
  margin-top: 10px;
  font-size: var(--fs-h4);
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--ink);
}
.bd-value__desc {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-2);
}

/* ============ 5. 라인업 ============
   센터 헤드 + 줄마다 [흐르는 이미지 밴드 | 텍스트].
   레퍼런스 인터랙션 : 카드들이 왼쪽으로 끝없이 흐르고, 올리면 멈춘다 */
.bd-lineup { padding-block: var(--sec-y); }
.bd-lineup__head { text-align: center; }
.bd-lineup__lede {
  margin-top: 16px;
  max-width: 58ch;
  margin-inline: auto;
  text-align: center;
  color: var(--ink-2);
}
.bd-lineup__rows {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  gap: clamp(48px, 6vw, 88px);
}

.bd-line {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 3.5vw, 64px);
  align-items: center;
}
.bd-line__band { overflow: hidden; border-radius: var(--r-md); }
.bd-line__track {
  display: flex;
  width: max-content;
  animation: bd-flow 38s linear infinite;
}
.bd-line__band:hover .bd-line__track { animation-play-state: paused; }
@keyframes bd-flow { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .bd-line__track { animation: none; }
}
.bd-line__card {
  flex: none;
  width: clamp(220px, 26vw, 400px);
  aspect-ratio: 533 / 401;   /* 레퍼런스 실측 */
  margin-right: clamp(14px, 1.6vw, 24px);
  border-radius: var(--r-md);
  object-fit: cover;         /* img 카드일 때 */
}
.bd-line__title {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 640;
  line-height: 1.16;
  letter-spacing: -.03em;
  color: var(--ink);
}
.bd-line__sub {
  margin-top: 12px;
  font-size: var(--fs-lede);
  color: var(--ink-2);
}

/* ============ 모바일 ============ */
@media (max-width: 900px) {
  .bd-hero__frame { min-height: clamp(380px, 58vh, 480px); border-radius: var(--r-lg); }

  .bd-intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .bd-intro__circle { width: min(70%, 320px); }
  .bd-intro__desc { max-width: none; }

  .bd-values__grid { grid-template-columns: 1fr; gap: 36px; }

  .bd-line { grid-template-columns: 1fr; gap: 18px; }
  /* 모바일은 텍스트 먼저, 흐르는 밴드가 아래 */
  .bd-line__body { order: 1; }
  .bd-line__band { order: 2; }
}
