/* ═══════════════════════════════════════════
   brand.css — 한일의료기 브랜드 스토리 페이지
   Cinematic hero + Visual-first layout
═══════════════════════════════════════════ */

/* ═══════════════════════════════════
   CINEMATIC HERO SLIDESHOW
═══════════════════════════════════ */
.brand-cinema {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

/* Slides */
.brand-cinema__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.brand-cinema__slide.active {
  opacity: 1;
}

.brand-cinema__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ken Burns — Slide 1: 줌인 + 약간 좌이동 */
.brand-cinema__slide:nth-child(1) img {
  animation: kb-bedroom 8s ease-in-out infinite alternate;
}

/* Ken Burns — Slide 2: 패닝 + 줌인 (생산라인 흐르는 느낌) */
.brand-cinema__slide:nth-child(2) img {
  animation: kb-factory 8s ease-in-out infinite alternate;
}

@keyframes kb-bedroom {
  0%   { transform: scale(1.02) translateX(0); }
  100% { transform: scale(1.1) translateX(-1.5%); }
}

@keyframes kb-factory {
  0%   { transform: scale(1.12) translateX(-3%) translateY(1%); }
  100% { transform: scale(1.2) translateX(3%) translateY(-1%); }
}

/* Light Sweep — 공장 빛줄기 효과 */
.brand-cinema__light-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255,220,150,0.08) 45%,
    rgba(255,220,150,0.15) 50%,
    rgba(255,220,150,0.08) 55%,
    transparent 60%,
    transparent 100%
  );
  animation: lightSweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lightSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Dark Overlay */
.brand-cinema__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Text Content */
.brand-cinema__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.brand-cinema__text {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.brand-cinema__text.active {
  opacity: 1;
  transform: translateY(0);
}

.brand-cinema__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.brand-cinema__title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.brand-cinema__desc {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

/* Progress Bar */
.brand-cinema__progress {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.brand-cinema__bar {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}

.brand-cinema__bar.active .brand-cinema__bar-fill {
  animation: barFill 4s linear forwards;
}

.brand-cinema__bar-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}

@keyframes barFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ═══════════════════════════════════
   BRAND STORY HERO — 풀스크린 공장 배경
═══════════════════════════════════ */
.brand-story-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-story-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.brand-story-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.brand-story-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.brand-story-hero__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 20px;
}

.brand-story-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.brand-story-hero__desc {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  opacity: 0.8;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════
   BRAND STORY CONTENT
═══════════════════════════════════ */
.brand-story {
  padding: 100px 0 80px;
  background: var(--white);
}

.story-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.story-block:first-child {
  padding-top: 0;
}

.story-block:last-child {
  border-bottom: none;
}

.story-block__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 4px;
  letter-spacing: 0.05em;
}

.story-block__content h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.story-block__content p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 12px;
}

.story-block__content p:last-child {
  margin-bottom: 0;
}

.story-block__content strong {
  color: var(--text);
  font-weight: 600;
}

/* 액센트 블록 */
.story-block--accent {
  background: var(--bg-warm);
  margin: 0 -40px;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  border-bottom: none;
}

/* ═══════════════════════════════════
   BRAND CTA
═══════════════════════════════════ */
.brand-cta {
  padding: 80px 0;
  background: var(--bg-warm);
  text-align: center;
}

.brand-cta__logo {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 24px;
}

.brand-cta h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.brand-cta p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 32px;
}

.brand-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 600px) {
  .brand-cinema__progress {
    bottom: 24px;
  }

  .brand-cinema__label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }

  .brand-story-hero {
    height: 50vh;
    min-height: 300px;
  }

  .brand-story {
    padding: 60px 0 40px;
  }

  .story-block {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 32px 0;
  }

  .story-block__num {
    font-size: 0.7rem;
  }

  .story-block--accent {
    margin: 0 -16px;
    padding: 32px 16px;
  }

  .brand-cta {
    padding: 60px 0;
  }
}
