/* 사업분야 상세 — home의 서체, 단어 등장, fade-in, 이미지 패럴럭스를 사용 */
html {
    scroll-behavior: auto;
}

.biz {
    --biz-accent: #2563eb;
    color: #111;
    background: #fff;
    overflow: clip;
    word-break: keep-all;
}

.biz * {
    box-sizing: border-box;
}

.biz h1,
.biz h2,
.biz h3,
.biz h4,
.biz p,
.biz ul {
    margin: 0;
}

.biz a {
    color: inherit;
    text-decoration: none;
}

.biz-container {
    width: min(1440px, calc(100% - 10.4vw));
    margin-inline: auto;
}

.biz-hero {
    position: relative;
    height: auto;
    min-height: calc(140svh - 68px);
    overflow: hidden;
    color: #fff;
    background: #102633;
}

.biz-hero-media {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 68px);
    z-index: 0;
    pointer-events: none;
    background: url(/img/main/hero/home-hero-bg.png) center/cover no-repeat;
}

.biz-hero-media--welcome {
    background-image: url(/img/business/team-welcome-poster-v1.jpg);
}

.biz-hero-media.is-off {
    visibility: hidden;
}

.biz-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biz-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(5, 14, 25, .15) 30%, rgba(5, 14, 25, .78));
    pointer-events: none;
}

.biz-hero-content {
    position: relative;
    z-index: 1;
    height: auto;
}

.biz-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 32px;
}

.biz-tagline {
    font-size: clamp(18px, 1.7vw, 28px);
    font-weight: 600;
    line-height: 1.5;
}

.biz h1 {
    margin-top: 12px;
    font-family: GmarketSans, sans-serif;
    font-size: clamp(44px, 6.2vw, 100px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.06em;
}

.biz-hero-heading {
    min-height: calc(100svh - 68px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-block: 70px 120px;
}

.biz-hero-detail {
    min-height: 30svh;
    padding-block: 12svh 18svh;
    display: flex;
    align-items: center;
    scroll-margin-top: 68px;
}

.biz-hero-description {
    margin-top: 0 !important;
    font-size: clamp(15px, 1.4vw, 21px);
    line-height: 1.8;
    color: rgba(255, 255, 255, .85);
}

.biz-hero-description strong {
    font-weight: 700;
    color: #fff;
}

.biz-scroll {
    position: absolute;
    top: calc(100svh - 132px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 36px;
    padding: 4px 16px;
    animation: biz-scroll 1.6s ease-in-out infinite;
}

@keyframes biz-scroll {
    50% {
        transform: translate(-50%, 6px);
        opacity: .5;
    }
}

.biz-intro {
    padding-block: 110px 105px;
    text-align: center;
    scroll-margin-top: 88px;
    position: relative;
}

.biz-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--biz-accent), transparent);
    opacity: .5;
}

.biz-eyebrow {
    /* color: var(--biz-accent); */
    color: #222;
    font: 600 12px/1.6 Poppins, sans-serif;
    letter-spacing: .14em;
    margin-bottom: 18px !important;
}

.biz-intro h2 {
    font-size: clamp(26px, 3vw, 46px);
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: -.045em;
}

.biz-intro-text {
    max-width: 760px;
    margin: 25px auto 32px !important;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.9;
    color: #647080;
}

.biz-cases {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 15px 25px;
    /* border: 1px solid #d8dee5; */
    border-radius: 99px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.biz-cases:hover {
    background: #111;
    color: #fff;
}

.biz-cases i {
    font-size: 23px;
}

.biz-services {
    padding-block: 90px 130px;
}


.biz-section-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 65px;
}

.biz-section-heading h3 {
    font-size: clamp(32px, 3.5vw, 56px);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.35;
    color: var(--biz-accent);
}

.biz-section-heading>p {
    font-size: clamp(18px, 1.9vw, 28px);
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: -.03em;
}

.biz-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 70px 28px;
}

.biz-card-media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 8/5;
    border-radius: 10px;
    isolation: isolate;
    background: #e6edf2;
}

.biz-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.biz-detail-link {
    cursor: pointer;
}

.biz-card-dim {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(5, 12, 22, .72);
    color: #fff;
    opacity: 0;
    transition: opacity .3s;
}

.biz-card-dim>span {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform .3s;
}

/* 호버 연출은 실제 마우스 포인터에서만(html.is-hover) — header.php 의 포인터 판정 참고 */
html.is-hover .biz-detail-link:hover img,
.biz-detail-link:focus-visible img {
    transform: scale(1.06);
}

html.is-hover .biz-detail-link:hover .biz-card-dim,
.biz-detail-link:focus-visible .biz-card-dim {
    opacity: 1;
}

html.is-hover .biz-detail-link:hover .biz-card-dim>span,
.biz-detail-link:focus-visible .biz-card-dim>span {
    transform: none;
}

.biz-card h3 {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: clamp(20px, 1.75vw, 28px);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.4;
    margin-top: 25px;
}

.biz-number {
    font: 500 15px Poppins, sans-serif;
    color: var(--biz-accent);
}

.biz-card h4 {
    font-size: 17px;
    line-height: 1.6;
    margin-top: 20px;
    font-weight: 650;
    letter-spacing: -.025em;
}

.biz-card>p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.85;
    color: #657181;
}

.biz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 0;
    margin-top: 20px !important;
    list-style: none;
    font-size: 12px;
    line-height: 1.6;
    color: #7b8795;
}

.biz-tags li::before {
    content: '#';
    margin-right: 2px;
}

.biz-card > .biz-cases {
    margin-top: 1.75rem;
}

.biz a:focus-visible {
    outline: 3px solid var(--biz-accent);
    outline-offset: 5px;
}

.biz-toast {
    position: fixed;
    z-index: 100;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 15px);
    max-width: calc(100% - 40px);
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(18, 24, 34, .94);
    color: white;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 8px 30px #0002;
}

.biz-toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* 메인 newsroom/service와 동일: 단어 간격 .08초, fade-in .15초, 20% 진입 지점 */
.biz.motion-ready [data-motion="fade-in"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.biz.motion-ready [data-motion="fade-in"].is-active {
    opacity: 1;
    transform: none;
}

.biz.motion-ready [data-motion="words"] .__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(.3em);
    transition: opacity .8s ease, transform .8s ease;
}

.biz.motion-ready [data-motion="words"].is-active .__word {
    opacity: 1;
    transform: none;
}

@media(max-width:1024px) {
    .biz-container {
        width: calc(100% - 48px);
    }

    .biz-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px 24px;
    }

    .biz-section-heading {
        gap: 28px;
    }
}

@media(max-width:640px) {
    .biz-container {
        width: calc(100% - 40px);
    }

    .biz h1 {
        font-size: clamp(32px, 8.4vw, 50px);
    }

    .biz-tagline {
        font-size: 17px;
        max-width: 290px;
    }

    .biz-breadcrumb {
        font-size: 11px;
        margin-bottom: 25px;
        gap: 7px;
    }

    .biz-intro {
        padding-block: 65px;
    }

    .biz-intro h2 {
        font-size: 27px;
    }

    .biz-intro-text {
        font-size: 16px;
    }

    .biz-services {
        padding-block: 55px 75px;
    }

    .biz-section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 35px;
    }

    .biz-section-heading h3 {
        font-size: 34px;
    }

    .biz-section-heading>p {
        font-size: 19px;
    }

    .biz-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .biz-card h3 {
        font-size: 25px;
        margin-top: 21px;
    }

    .biz-card h4 {
        margin-top: 14px;
    }

}

/* 터치(호버 불가) 기기 — 딤/문구를 처음부터 보여준다 */
html:not(.is-hover) .biz-card-dim {
    opacity: 1;
    background: linear-gradient(transparent 45%, rgba(5, 12, 22, .7));
    place-items: end center;
    padding-bottom: 18px;
}

html:not(.is-hover) .biz-card-dim>span {
    transform: none;
    font-size: 14px;
}

@media(prefers-reduced-motion:reduce) {

    .biz *,
    .biz *::before,
    .biz *::after {
        animation: none !important;
        transition: none !important;
    }

    .biz.motion-ready [data-motion="fade-in"],
    .biz.motion-ready [data-motion="words"] .__word {
        opacity: 1;
        transform: none;
    }
}

/* 세 스튜디오를 한 페이지에서 순서대로 소개 */
.biz-studio {
    scroll-margin-top: 68px;
}

.biz-studio+.biz-studio {
    border-top: 1px solid #e7ebf1;
}

.biz-studio:nth-of-type(3) {
    background: #f7fafb;
}

.biz-intro .biz-studio-title {
    font-size: clamp(34px, 4vw, 60px);
    margin-bottom: 15px;
}

.biz-lead {
    font-size: clamp(22px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.04em;
}

/* 메인처럼 본문이 고정 영상 위를 덮고, 마지막에 고정 푸터를 드러낸다. */
.biz-studio {
    position: relative;
    z-index: 2;
    background: #fff;
}

body.business-page.ft-reveal .biz {
    position: relative;
    z-index: 1;
    margin-bottom: var(--dg-ft-h, 0px);
}

.biz-cases-wrap {
    margin-top: clamp(40px, 6vw, 80px);
    text-align: center;
}

/* 서비스별 이동: 영상 위에 개별 유리 배지로 배치 */
.service-page .biz-hero {
    min-height: calc(100svh - 68px);
}

.service-page .biz-hero-content {
    min-height: calc(100svh - 68px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 32px;
    padding-block: 40px clamp(24px, 6svh, 64px);
}

.service-page .biz-hero-heading {
    min-height: 0;
    padding: 0;
}

.service-page .service-nav-tabs {
    padding-bottom: 0;
}

.service-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 10svh;
}

.service-nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(20, 30, 46, .38);
    color: #fff;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 5px 18px rgba(0, 0, 0, .12);
    font-size: 15px;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}

.service-nav-tab:hover,
.service-nav-tab[aria-current="page"] {
    background: rgb(255 255 255 / 13%);
    border-color: rgba(255, 255, 255, .65);
}

@media(max-width:640px) {
    .service-nav-tabs {
        gap: 9px;
    }

    .service-nav-tab {
        padding: 11px 16px;
        font-size: 13px;
    }
}

/* 배경이 오른쪽으로 밀리고 화살표가 교체되는 버튼 모션 */
.biz a.biz-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    gap: 16px;
    padding: 15px 44px 15px 24px;
    border-radius: 999px;
    background: rgba(12, 20, 32, .4);
    color: #fff;
}

.biz-button::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--biz-button-fill, #23273a);
    transition: transform .5s ease;
}



.biz-button-label {
    position: relative;
    z-index: 1;
}

.biz-button-arrows {
    position: relative;
    display: inline-block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    vertical-align: middle;
    transition: transform .5s ease;
}

.biz-button-arrows i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
    transition: transform .5s ease, opacity .25s ease;
}

.biz-button-arrows .biz-arrow-in {
    transform: translateX(-200%);
    opacity: 0;
}

.biz a.biz-button:is(:hover, :focus-visible)::after {
    transform: translateX(65%);
}

.biz a.biz-button:is(:hover, :focus-visible) .biz-button-arrows {
    transform: translateX(100%);
}

.biz a:is(:hover, :focus-visible) .biz-button-arrows .biz-arrow-in {
    transform: translateX(0);
    opacity: 1;
}

.biz a:is(:hover, :focus-visible) .biz-button-arrows .biz-arrow-out {
    transform: translateX(200%);
    opacity: 0;
}

/* 본문이 고정 영상보다 위에 표시되도록 유지 */
body.business-page {
    padding-top: 0;
}

.service-page .biz>section:not(.biz-hero) {
    position: relative;
    z-index: 2;
    background: #fff;
}

/* 사업분야: 왼쪽 제목 고정 / 오른쪽 세로 콘텐츠 / 다음 스튜디오 덮기 */
.biz-studio {
    position: sticky;
    top: var(--studio-pin-top, 68px);
    z-index: 2;
    background: #fff;
    box-shadow: 0 -18px 50px rgba(15, 25, 40, .08);
}

.biz-studio#pay {
    z-index: 3;
    background: #f1f6f5;
}

.biz-studio#talk {
    position: relative;
    top: auto;
    z-index: 4;
}

.biz-studio .biz-services {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(48px, 8vw, 150px);
    align-items: start;
    padding-block: 100px 120px;
}

.biz-studio:not(:last-of-type) .biz-services {
    padding-bottom: 40dvh;
}

.biz-studio .biz-services::before {
    display: none;
}

.biz-studio .biz-studio-heading {
    position: sticky;
    top: calc(68px + 8vh);
    display: block;
    margin: 0;
}

.biz-studio-heading h2 {
    font-size: clamp(30px, 3.6vw, 58px);
    line-height: 1.35;
    letter-spacing: -.055em;
    font-weight: 750;
    color: var(--biz-accent);
}

.biz-studio .biz-studio-heading>p {
    margin-top: 30px;
    font-size: clamp(17px, 1.5vw, 23px);
    line-height: 1.7;
}

.biz-studio .biz-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(90px, 18vh, 190px);
}

.biz-studio .biz-card {
    opacity: var(--card-focus, 1);
    filter: blur(var(--card-blur, 0px));
    transition: none;
}

.biz-studio .biz-card:focus-within,
.biz-studio .biz-card:hover {
    opacity: 1;
    filter: none;
}

.biz-studio .biz-cases-wrap {
    margin-top: 80px;
}

@media(max-width:767px) {
    .biz-studio .biz-services {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-block: 48px 70px;
    }

    .biz-studio .biz-studio-heading {
        position: relative;
        top: auto;
        z-index: 2;
        padding: 18px 0;
        background: inherit;
    }

    .biz-studio .biz-services {
        background: inherit;
    }

    .biz-studio:not(:last-of-type) .biz-services {
        padding-bottom: 30dvh;
    }

    .biz-studio-heading h2 {
        font-size: 28px;
    }

    .biz-studio .biz-studio-heading>p {
        margin-top: 12px;
        font-size: 15px;
    }

    .biz-studio .biz-grid {
        gap: 90px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .biz-studio {
        position: relative;
        top: auto;
    }

    .biz-studio .biz-card {
        opacity: 1;
        filter: none;
    }
}

.biz-studio .biz-studio-heading .biz-cases-wrap {
    margin-top: 36px;
    text-align: left;
}

/* 서비스 본문: 큰 소개 → 좌우 제목/설명 → 이미지형 3열 카드 */
.service-content {
    padding: clamp(80px, 9vw, 160px) 0 100px;
}

.service-content-intro {
    padding-bottom: clamp(70px, 8vw, 130px);
    border-bottom: 1px solid #dce2ec;
}

.service-content-eyebrow {
    margin: 0 0 24px;
    color: var(--blue-d);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
}

.service-content-intro h2 {
    margin: 0;
    color: #171b23;
    font-size: clamp(32px, 3.6vw, 64px);
    line-height: 1.35;
    letter-spacing: -.045em;
    word-break: keep-all;
}

.service-content-lead {
    max-width: 850px;
    margin: 32px 0 0;
    color: #666e7b;
    font-size: clamp(17px, 1.6vw, 24px);
    line-height: 1.8;
    word-break: keep-all;
}

.biz-container .service-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.service-feature-tags li {
    padding: 10px 18px;
    border: 1px solid #dce2ec;
    border-radius: 99px;
    font-size: 15px;
    color: #42516a;
}

.service-content-group {
    padding-top: clamp(70px, 8vw, 130px);
}

.service-content-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 54px;
}

.service-content-heading h2 {
    margin: 0;
    color: var(--blue-d);
    font-size: clamp(30px, 3.3vw, 56px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.04em;
}

.service-content-heading>p {
    max-width: 650px;
    margin: 0;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.55;
    font-weight: 600;
    color: #20252d;
    word-break: keep-all;
}

.service-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.service-content-card {
    min-width: 0;
}

.service-content-image {
    overflow: hidden;
    aspect-ratio: 1.65;
    border-radius: 8px;
    background: #f1f5fb;
}

.service-content-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content-card h3 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 26px 0 18px;
    font-size: clamp(20px, 1.8vw, 28px);
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -.035em;
}

.service-content-card h3 span {
    flex-shrink: 0;
    font-size: .8em;
    color: var(--blue-d);
}

.service-content-card h4 {
    margin: 0 0 12px;
    font-size: clamp(17px, 1.4vw, 22px);
    font-weight: 650;
    line-height: 1.6;
    word-break: keep-all;
}

.service-content-card>p {
    margin: 0;
    color: #666e7b;
    font-size: 17px;
    line-height: 1.85;
    word-break: keep-all;
}

.service-content-note {
    margin: 56px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #737a86;
}

.service-content-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 70px 0;
    margin-top: 70px;
    border-top: 1px solid #dce2ec;
}

.service-content-contact h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1.4;
    letter-spacing: -.04em;
}

.service-content-contact .biz-consult-button {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 16px;
}

.service-content-more {
    padding-top: 50px;
    border-top: 1px solid #dce2ec;
}

.service-content-more h2 {
    margin: 0 0 28px;
    font-size: 28px;
}

.service-content-more>div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-content-more a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 28px 22px;
    border-radius: 12px;
    background: #f3f5f8;
    font-size: 18px;
    font-weight: 600;
    transition: background .2s, color .2s;
}

.service-content-more a:hover {
    background: var(--blue-d);
    color: #fff;
}

@media(max-width:1023px) {
    .service-content-grid {
        gap: 22px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-content-heading {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 36px;
    }

    .service-content-more>div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:600px) {
    .service-content {
        padding-bottom: 60px;
    }

    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .service-content-card h3 {
        margin-top: 22px;
    }

    .service-content-contact {
        flex-direction: column;
        align-items: flex-start;
        padding: 48px 0;
    }

    .service-content-more>div {
        grid-template-columns: 1fr;
    }
}
