/* ============================================
   BAPSANG STORY -- Light / Editorial
============================================ */
.bapsang-story {
    --bs-ember: #b66d33;
    --bs-charcoal: #1a1714;
    --bs-dark: #2a2520;
    --bs-body: #5c5650;
    --bs-muted: #9a9590;
    --bs-brass: #c4a265;
    --bs-cream: #faf7f2;
    --bs-white: #ffffff;

    background: var(--bs-cream);
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.bapsang-story .bs__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1714'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Large Korean watermark */
.bapsang-story .bs__watermark {
    position: absolute;
    top: -40px;
    right: -40px;
    font-family: 'Playfair Display', serif;
    font-size: 400px;
    font-weight: 900;
    color: var(--bs-charcoal);
    opacity: 0.02;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ---- Layout ---- */
.bapsang-story .bs__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ---- Left: Text ---- */
.bapsang-story .bs__eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--bs-ember);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bapsang-story .bs__eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--bs-ember);
    flex-shrink: 0;
}

.bapsang-story .bs__heading {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--bs-charcoal);
    margin: 0 0 28px;
}

.bapsang-story .bs__heading em {
    font-style: italic;
    color: var(--bs-ember);
    position: relative;
}

.bapsang-story .bs__heading em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bs-ember);
    opacity: 0.25;
    border-radius: 1px;
}

.bapsang-story .bs__lead {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--bs-body);
    margin: 0 0 56px;
    max-width: 480px;
}

/* ---- Features: stacked strips ---- */
.bapsang-story .bs__features {
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: bsf;
}

.bapsang-story .bs__feature {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: default;
    border-bottom: 1px solid rgba(26, 23, 20, 0.06);
    counter-increment: bsf;
}

.bapsang-story .bs__feature:first-child {
    border-top: 1px solid rgba(26, 23, 20, 0.06);
}

/* Icon cell -- tall strip with icon + ember glow on hover */
.bapsang-story .bs__feature-icon-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0;
    position: relative;
    transition: all 0.5s ease;
}

.bapsang-story .bs__feature-icon-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bs-ember);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bapsang-story .bs__feature:hover .bs__feature-icon-cell::after {
    opacity: 0.06;
}

.bapsang-story .bs__feature-icon {
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bapsang-story .bs__feature-icon svg {
    width: 100%;
    height: 100%;
    color: var(--bs-ember);
    opacity: 0.55;
    transition: all 0.5s ease;
}

.bapsang-story .bs__feature:hover .bs__feature-icon svg {
    opacity: 1;
    transform: scale(1.1);
}

/* Ember dot pulse behind icon on hover */
.bapsang-story .bs__feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bs-ember);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bapsang-story .bs__feature:hover .bs__feature-icon::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.08;
}

/* Content cell */
.bapsang-story .bs__feature-body {
    padding: 28px 28px 28px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

/* Sliding ember accent on hover */
.bapsang-story .bs__feature-body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--bs-ember);
    transform: translateY(-50%);
    border-radius: 2px;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bapsang-story .bs__feature:hover .bs__feature-body::before {
    height: 60%;
}

.bapsang-story .bs__feature-text {
    flex: 1;
    min-width: 0;
}

.bapsang-story .bs__feature-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--bs-charcoal);
    margin: 0 0 4px;
    transition: color 0.3s ease;
}

.bapsang-story .bs__feature:hover .bs__feature-title {
    color: var(--bs-ember);
}

.bapsang-story .bs__feature-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bs-muted);
    margin: 0;
}

/* Counter number -- right side */
.bapsang-story .bs__feature-num {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--bs-charcoal);
    opacity: 0.04;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.5s ease;
    user-select: none;
}

.bapsang-story .bs__feature:hover .bs__feature-num {
    opacity: 0.1;
    color: var(--bs-ember);
}

/* ---- Right: Visual composition ---- */
.bapsang-story .bs__visual {
    position: relative;
    min-height: 600px;
}

/* Main image */
.bapsang-story .bs__img-main {
    position: relative;
    width: 85%;
    aspect-ratio: 3/4;
    overflow: hidden;
    z-index: 2;
}

.bapsang-story .bs__img-main img,
.bapsang-story .bs__img-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bapsang-story .bs__img-main:hover img,
.bapsang-story .bs__img-main:hover video {
    transform: scale(1.04);
}

/* Placeholder for empty image */
.bapsang-story .bs__img-main-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e4df, #d4cfc9);
}

/* Ember glow border on main image */
.bapsang-story .bs__img-main::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(232, 74, 28, 0.08);
    pointer-events: none;
}

/* Second element -- overlapping video */
.bapsang-story .bs__img-second {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 45%;
    aspect-ratio: 4/3;
    overflow: hidden;
    z-index: 3;
    box-shadow: 0 20px 60px rgba(26, 23, 20, 0.12);
    border: 4px solid var(--bs-cream);
}

.bapsang-story .bs__img-second video,
.bapsang-story .bs__img-second img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.bapsang-story .bs__img-second:hover video,
.bapsang-story .bs__img-second:hover img {
    transform: scale(1.06);
}

/* Play indicator overlay */
.bapsang-story .bs__video-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bs-white);
    background: rgba(26, 23, 20, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    z-index: 4;
    pointer-events: none;
}

.bapsang-story .bs__video-indicator-dot {
    width: 6px;
    height: 6px;
    background: var(--bs-ember);
    border-radius: 50%;
    animation: bsLiveDot 2s ease-in-out infinite;
}

@keyframes bsLiveDot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Decorative frame behind main image */
.bapsang-story .bs__deco-frame {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 85%;
    aspect-ratio: 3/4;
    border: 1px solid var(--bs-ember);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

/* Vertical text beside image */
.bapsang-story .bs__deco-vertical {
    position: absolute;
    top: 50%;
    right: -24px;
    transform: translateY(-50%);
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bs-muted);
    writing-mode: vertical-rl;
    opacity: 0.4;
    z-index: 4;
}

/* Floating grill smoke animation */
.bapsang-story .bs__smoke {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.bapsang-story .bs__smoke--1 {
    top: 10%;
    right: 15%;
    animation: bsSmoke1 6s ease-in-out infinite 0s;
}
.bapsang-story .bs__smoke--2 {
    top: 25%;
    right: 25%;
    animation: bsSmoke2 8s ease-in-out infinite 2s;
}
.bapsang-story .bs__smoke--3 {
    top: 5%;
    right: 35%;
    animation: bsSmoke3 7s ease-in-out infinite 1s;
}

@keyframes bsSmoke1 {
    0% { opacity: 0; transform: translateY(0) scale(0.8); }
    20% { opacity: 0.12; }
    60% { opacity: 0.06; }
    100% { opacity: 0; transform: translateY(-80px) scale(1.3) translateX(10px); }
}
@keyframes bsSmoke2 {
    0% { opacity: 0; transform: translateY(0) scale(0.7); }
    25% { opacity: 0.08; }
    70% { opacity: 0.04; }
    100% { opacity: 0; transform: translateY(-100px) scale(1.5) translateX(-15px); }
}
@keyframes bsSmoke3 {
    0% { opacity: 0; transform: translateY(0) scale(0.9); }
    30% { opacity: 0.1; }
    65% { opacity: 0.05; }
    100% { opacity: 0; transform: translateY(-90px) scale(1.4) translateX(8px); }
}

/* Ember sparks */
.bapsang-story .bs__spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--bs-ember);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.bapsang-story .bs__spark--1 {
    top: 15%;
    right: 20%;
    animation: bsSpark 4s ease-out infinite 0.5s;
}
.bapsang-story .bs__spark--2 {
    top: 20%;
    right: 30%;
    width: 2px; height: 2px;
    animation: bsSpark 5s ease-out infinite 1.5s;
}
.bapsang-story .bs__spark--3 {
    top: 8%;
    right: 22%;
    width: 2px; height: 2px;
    animation: bsSpark 3.5s ease-out infinite 3s;
}
.bapsang-story .bs__spark--4 {
    top: 12%;
    right: 18%;
    animation: bsSpark2 4.5s ease-out infinite 0.8s;
}
.bapsang-story .bs__spark--5 {
    top: 22%;
    right: 28%;
    width: 2px; height: 2px;
    animation: bsSpark2 5.5s ease-out infinite 2.2s;
}

@keyframes bsSpark {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    10% { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(-60px) translateX(15px) scale(0); }
}
@keyframes bsSpark2 {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    10% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-50px) translateX(-12px) scale(0); }
}

/* Heat shimmer line at base of image */
.bapsang-story .bs__heat-line {
    position: absolute;
    bottom: 35%;
    left: 0;
    width: 60%;
    height: 1px;
    z-index: 4;
    background: linear-gradient(90deg, transparent, var(--bs-ember), transparent);
    opacity: 0;
    animation: bsHeat 4s ease-in-out infinite;
}

@keyframes bsHeat {
    0%, 100% { opacity: 0; transform: scaleX(0.5); }
    50% { opacity: 0.15; transform: scaleX(1); }
}

/* ---- Bottom separator ---- */
.bapsang-story .bs__separator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 23, 20, 0.06), transparent);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .bapsang-story .bs__inner {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    .bapsang-story {
        padding: 96px 0 80px;
    }
    .bapsang-story .bs__visual {
        min-height: 450px;
    }
    .bapsang-story .bs__img-main {
        width: 75%;
    }
    .bapsang-story .bs__deco-frame {
        left: 24px;
        width: 75%;
    }
}

@media (max-width: 768px) {
    .bapsang-story .bs__inner {
        padding: 0 24px;
    }
    .bapsang-story .bs__feature {
        grid-template-columns: 56px 1fr;
    }
    .bapsang-story .bs__feature-num {
        display: none;
    }
    .bapsang-story .bs__deco-frame,
    .bapsang-story .bs__deco-vertical {
        display: none;
    }
    .bapsang-story .bs__img-main {
        width: 100%;
    }
    .bapsang-story .bs__img-second {
        width: 50%;
        bottom: -16px;
    }
    .bapsang-story .bs__visual {
        min-height: 350px;
    }
    .bapsang-story .bs__watermark {
        font-size: 200px;
    }
    .bapsang-story .bs__smoke,
    .bapsang-story .bs__spark,
    .bapsang-story .bs__heat-line {
        display: none;
    }
}
