@charset "utf-8";

/* ============================================================
   [Business] 배너 + Our Brands
   ============================================================ */
:root {
    --bz-bg: #faf8f3;
    --bz-card-txt: #263957;
    --bz-card-desc: #6b7480;
}


/* ------------------------------------------------------------
   배너
   ------------------------------------------------------------ */
.bz-ban {
    position: relative;
    width: 100%;
    height: calc(var(--app-h, 100vh) - var(--gnb-h));
    height: calc(100dvh - var(--gnb-h));
    min-height: 420px;
    overflow: hidden;
    /* 세로 위치 60% : center보다 이미지를 살짝 위로 올려 책 하단이 더 보이게 (조절 지점) */
    background: #0b1220 url('../imgs/business.png') no-repeat center 60% / cover;
}

.bz-ban::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(100deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .28) 40%, rgba(0, 0, 0, .04) 74%),
        linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, .42) 100%);
}

/* 라벨은 상단, 카피는 그 아래 (ref4 배치) */
.bz-ban-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: clamp(26px, 9vh, 110px) clamp(20px, 4vw, 60px) clamp(40px, 10vh, 120px);
    /* 줄 리빌 타이밍 (--reveal-* 는 공용 .txt-sheen이 스윕 시작 시점 계산에 사용) */
    --reveal-dur: 1s;
    --bz-step: .14s;
}

/* 카피 블록 : 배너 상단에서 1/3 지점쯤 */
.bz-copy {
    margin-top: clamp(30px, 13vh, 150px);
}

.bz-label {
    font-size: clamp(12px, .95vw, 18px);
    font-weight: 400;
    letter-spacing: .12em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

.bz-lead {
    font-size: clamp(14px, 1.5vw, 28px);
    font-weight: 400;
    letter-spacing: -.005em;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, .4);
}

.bz-title {
    margin-top: clamp(6px, .8vw, 14px);
    font-size: clamp(26px, 3.4vw, 66px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: #fff;
    /* 미지원 브라우저 폴백 : 흰색 단색 + 그림자 */
    text-shadow: 0 4px 22px rgba(0, 0, 0, .4);
}

/* h1 안에서는 span으로 줄을 감싸므로 블록 처리 */
.bz-title .hero-line,
.bz-title-line {
    display: block;
}

.bz-sub-group {
    margin-top: clamp(16px, 2.4vw, 44px);
}

.bz-sub-group .hero-line+.hero-line {
    margin-top: clamp(1px, .3vw, 5px);
}

.bz-sub {
    font-size: clamp(13px, 1.25vw, 24px);
    font-weight: 300;
    color: rgba(255, 255, 255, .86);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .32);
}

.bz-label {
    --reveal-delay: 0s;
}

.bz-lead {
    --reveal-delay: var(--bz-step);
}

.bz-title-line {
    --reveal-delay: calc(var(--bz-step) * 2);
}

.bz-sub {
    --reveal-delay: calc(var(--bz-step) * 3);
}

.bz-sub-2 {
    --reveal-delay: calc(var(--bz-step) * 4);
}

.bz-lead,
.bz-sub {
    animation: heroLineUp var(--reveal-dur) cubic-bezier(.22, 1, .36, 1) var(--reveal-delay) both;
}


/* ------------------------------------------------------------
   배너 글로우
   ------------------------------------------------------------ */
.bz-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    
}

.bz-pulses {
    position: absolute;
    inset: 0;
}

.bz-pulse {
    position: absolute;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 214, 150, .6) 0%,
            rgba(255, 200, 130, .28) 36%,
            rgba(255, 190, 120, 0) 70%);
    opacity: var(--o-min);
    animation: bzPulse var(--dur) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes bzPulse {
    from {
        opacity: var(--o-min);
    }

    to {
        opacity: var(--o-max);
    }
}

/* 글로브 : 가장 크고 밝게 */
.bz-pulse:nth-child(1) {
    left: 47%;
    top: 48%;
    width: min(84vw, 900px);
    --o-min: .3;
    --o-max: .75;
    --dur: 7s;
}

/* 좌상단 · 우측 : 넓게 퍼지는 배경 광원 */
.bz-pulse:nth-child(2) {
    left: 19%;
    top: 27%;
    width: min(62vw, 660px);
    --o-min: .16;
    --o-max: .5;
    --dur: 9s;
    --delay: -2.4s;
}

.bz-pulse:nth-child(3) {
    left: 80%;
    top: 38%;
    width: min(70vw, 740px);
    --o-min: .18;
    --o-max: .55;
    --dur: 8s;
    --delay: -5.1s;
}

/* 하단(책 주변) : 조금 작고 빠르게 */
.bz-pulse:nth-child(4) {
    left: 31%;
    top: 74%;
    width: min(46vw, 480px);
    --o-min: .2;
    --o-max: .58;
    --dur: 6.5s;
    --delay: -1.2s;
}

.bz-pulse:nth-child(5) {
    left: 68%;
    top: 77%;
    width: min(42vw, 440px);
    --o-min: .16;
    --o-max: .52;
    --dur: 7.5s;
    --delay: -3.6s;
}

.bz-spark {
    --sz: calc(var(--s) * var(--k, 1));
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--sz);
    height: var(--sz);
    margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
    border-radius: 50%;
    background: #fffaf0;
    box-shadow: 0 0 calc(var(--sz) * 2.4) calc(var(--sz) * .7) rgba(255, 206, 132, .7);
    filter: blur(.4px);
    opacity: 0;
    animation: bzTwinkle var(--dur) ease-in-out var(--dly, 0s) infinite;
    will-change: opacity, transform;
}

@keyframes bzTwinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}


.bz-spark:nth-child(2n) {
    --h-max: .9;
    --hm: 8;
    background: rgba(255, 245, 225, .6);
    box-shadow: 0 0 calc(var(--sz) * 2) rgba(255, 220, 170, .5);
    filter: blur(.8px);
    opacity: 1;
    animation: none;
    will-change: auto;
}
.bz-spark:nth-child(2n)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--sz) * var(--hm));
    height: calc(var(--sz) * var(--hm));
    /* 크기는 고정, 커지는 건 scale — 레이아웃 재계산 없음 */
    margin: calc(var(--sz) * var(--hm) / -2) 0 0 calc(var(--sz) * var(--hm) / -2);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 220, 160, .35) 0%,
            rgba(255, 220, 160, .12) 40%,
            transparent 70%);
    filter: blur(2.5px);
    opacity: 0;
    transform: scale(.6);
    animation: bzHalo var(--dur) ease-in-out var(--dly, 0s) infinite;
    will-change: opacity, transform;
}

@keyframes bzHalo {

    0%,
    100% {
        opacity: 0;
        transform: scale(.6);
    }

    50% {
        opacity: var(--h-max);
        transform: scale(1);
    }
}



.bz-spark:nth-child(2)  { --x: 22%; --y: 58%; --s: 3px; --dur: 5.5s; --dly: -.6s; --hm: 9 }
.bz-spark:nth-child(3)  { --x: 29%; --y: 33%; --s: 4px; --dur: 4.1s; --dly: .7s }
.bz-spark:nth-child(4)  { --x: 34%; --y: 47%; --s: 2px; --dur: 6.4s; --dly: -2.9s; --hm: 7 }
.bz-spark:nth-child(5)  { --x: 38%; --y: 68%; --s: 7px; --dur: 4.8s; --dly: .3s }
.bz-spark:nth-child(6)  { --x: 43%; --y: 28%; --s: 3px; --dur: 4.6s; --dly: -1.8s; --hm: 10 }
.bz-spark:nth-child(7)  { --x: 46%; --y: 55%; --s: 8px; --dur: 2.9s; --dly: 1.2s }
.bz-spark:nth-child(8)  { --x: 50%; --y: 41%; --s: 2px; --dur: 7s;   --dly: -4.2s; --hm: 8 }
.bz-spark:nth-child(9)  { --x: 53%; --y: 72%; --s: 7px; --dur: 3.1s; --dly: .5s }
.bz-spark:nth-child(10) { --x: 57%; --y: 31%; --s: 3px; --dur: 5.2s; --dly: -.3s; --hm: 8 }
.bz-spark:nth-child(11) { --x: 60%; --y: 60%; --s: 5px; --dur: 2.7s; --dly: 1.5s }
.bz-spark:nth-child(12) { --x: 64%; --y: 45%; --s: 2px; --dur: 6.8s; --dly: -3.5s; --hm: 10 }
.bz-spark:nth-child(13) { --x: 68%; --y: 25%; --s: 5px; --dur: 3.4s; --dly: .9s }
.bz-spark:nth-child(14) { --x: 71%; --y: 66%; --s: 3px; --dur: 4.9s; --dly: -2.1s; --hm: 7 }
.bz-spark:nth-child(15) { --x: 16%; --y: 40%; --s: 4px; --dur: 4.9s; --dly: 1.6s }
.bz-spark:nth-child(16) { --x: 78%; --y: 52%; --s: 3px; --dur: 6.1s; --dly: -5.4s; --hm: 9 }
.bz-spark:nth-child(17) { --x: 84%; --y: 33%; --s: 5px; --dur: 4.5s; --dly: -2.8s }
.bz-spark:nth-child(18) { --x: 88%; --y: 62%; --s: 2px; --dur: 5.8s; --dly: -1.3s; --hm: 6 }
.bz-spark:nth-child(19) { --x: 74%; --y: 78%; --s: 9px; --dur: 2.8s; --dly: -3.9s }
.bz-spark:nth-child(20) { --x: 62%; --y: 84%; --s: 3px; --dur: 4.4s; --dly: -3.1s; --hm: 8 }
.bz-spark:nth-child(21) { --x: 45%; --y: 80%; --s: 7px; --dur: 3.5s; --dly: -2.2s }
.bz-spark:nth-child(22) { --x: 27%; --y: 84%; --s: 2px; --dur: 6.6s; --dly: -2.4s; --hm: 10 }
.bz-spark:nth-child(23) { --x: 12%; --y: 68%; --s: 6px; --dur: 3.1s; --dly: -3.2s }
.bz-spark:nth-child(24) { --x: 51%; --y: 19%; --s: 3px; --dur: 5.1s; --dly: -4.7s; --hm: 7 }
.bz-spark:nth-child(25) { --x: 33%; --y: 21%; --s: 4px; --dur: 3.7s; --dly: -2.6s }


/* ------------------------------------------------------------
   Our Brands
   ------------------------------------------------------------ */
.brand {
    padding: clamp(60px, 8vw, 140px) 0 clamp(80px, 10vw, 170px);
    background: var(--bz-bg);
}

.brand-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.brand-head {
    text-align: center;
}

.brand-title {
    font-size: clamp(24px, 2.3vw, 40px);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--navy);
}

.brand-sub {
    margin-top: clamp(6px, .8vw, 12px);
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 400;
    color: var(--text-sub);
}

/* 2x2 그리드 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2vw, 32px);
    max-width: 1200px;
    margin: clamp(34px, 4.5vw, 80px) auto 0;
}

.brand-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: clamp(10px, 1vw, 16px);
    background: #fff;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    padding: clamp(20px, 3vw, 50px);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff 0%, #f3f5f9 100%);
}

.brand-logo img {
    width: auto;
    height: calc(var(--logo-h, 56px) * var(--logo-k, 1));
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-card:nth-child(1) { --logo-h: 100px } 
.brand-card:nth-child(2) { --logo-h: 48px }  
.brand-card:nth-child(3) { --logo-h: 88px }  
.brand-card:nth-child(4) { --logo-h: 92px }  

/* 텍스트 영역 : 더보기를 카드 하단에 붙임 */
.brand-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(18px, 2vw, 34px) clamp(18px, 2vw, 32px) clamp(16px, 1.8vw, 28px);
}

.brand-name {
    font-size: clamp(15px, 1.15vw, 20px);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--bz-card-txt);
}

.brand-desc {
    margin-top: clamp(8px, 1vw, 16px);
    font-size: clamp(13px, .95vw, 16px);
    line-height: 1.75;
    color: var(--bz-card-desc);
}

.brand-more {
    margin-top: auto;
    padding-top: clamp(16px, 2vw, 32px);
    font-size: clamp(13px, .95vw, 15px);
    font-weight: 500;
    text-align: right;
    color: var(--point);
}

.brand-arrow {
    margin-left: 8px;
}


@media (hover: hover) and (pointer: fine) {

    .brand-card,
    .js .brand-card.is-in {
        transition: transform .3s ease, box-shadow .3s ease;
    }

    .brand-card:hover,
    .js .brand-card.is-in:hover {
        box-shadow: 0 18px 36px rgba(34, 53, 92, .14);
    }

    .brand-arrow {
        display: inline-block;
        transition: transform .3s ease;
    }

    .brand-card:hover .brand-arrow {
        transform: translateX(3px);
    }
}


/* ------------------------------------------------------------
   반응형
   ------------------------------------------------------------ */
/* 태블릿 : 2열 유지, 여백만 축소 */
@media (max-width: 1024px) {
    .brand-logo {
        aspect-ratio: 16 / 11;
    }

    /* 카드 폭이 줄어든 만큼 로고도 함께 (개별 --logo-h 비율은 유지) */
    .brand-grid {
        --logo-k: .88;
    }
}

/* 모바일 : 1열 스택 */
@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .brand-logo {
        aspect-ratio: 16 / 8;
    }

    /* 카드가 좁아지면 max-width가 먼저 걸려 개별 크기가 무시되므로 전체를 60%로 */
    .brand-grid {
        --logo-k: .6;
    }

    /* 배너 카피 위치를 about 페이지와 동일하게 : 라벨 상단 / 카피는 아래로 */
    .bz-ban-inner {
        justify-content: space-between;
        padding-bottom: clamp(50px, 18vh, 215px);
    }

    .bz-copy {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .bz-lead {
        font-size: clamp(13px, 3.6vw, 18px);
    }

    .bz-title {
        font-size: clamp(24px, 7.4vw, 36px);
    }

    .bz-sub {
        font-size: clamp(12.5px, 3.4vw, 17px);
        line-height: 1.6;
    }

    /* 좁은 폭에서는 광점을 70%로 (px 고정이라 그냥 두면 상대적으로 커 보임) */
    .bz-glow {
        --k: .7;
    }
}

/* 320px 초소형 폰 */
@media (max-width: 360px) {
    .bz-ban-inner,
    .brand-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-logo {
        padding: 18px;
    }
}

/* 짧은 화면(가로 눕힘 등)에서 배너가 과하게 낮아지지 않도록 */
@media (max-height: 560px) {
    .bz-ban {
        height: 420px;
    }
}


/* ------------------------------------------------------------
   모션 최소화 : 배너 리빌·글로우 없이 즉시 표시
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {

    .bz-label,
    .bz-lead,
    .bz-sub,
    .bz-title-line {
        animation: none;
    }

    .bz-glow {
        display: none;
    }

    .brand-card,
    .brand-arrow {
        transition: none;
    }
}
