/*
  indigosound.art 정적 사이트의 기본 스타일입니다.
  Wix 원본(indigobluestudio.wixsite.com/indigoblue-soundstud)에서 측정한
  색상, 글자 크기, 여백을 그대로 옮겨 적었습니다.

  카드 격자와 미리듣기의 디자인은 이 파일이 아니라
  assets/js/project-grid.mjs 와 assets/js/audio-grid.mjs 가 만들어 냅니다.
  그 두 모듈의 클래스 이름과 겹치지 않도록, 여기서는 ib- 를 붙여 씁니다.
*/

/* 글꼴(Pretendard, Bebas Neue)은 index.html 의 link 태그에서 불러옵니다. */

:root {
    --ib-bg: #181818;
    --ib-card: #282626;
    --ib-faq: rgba(65, 65, 65, 0.24);
    --ib-line: rgba(255, 255, 255, 0.38);
    --ib-muted: #a5a5a5;
    --ib-blue: #1b3bd6;
    --ib-width: 980px;
    --ib-display: 'Bebas Neue', 'Pretendard', sans-serif;
    --ib-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--ib-bg); }

body {
    margin: 0;
    background: var(--ib-bg);
    color: #ffffff;
    font-family: var(--ib-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; }

a { color: inherit; }

.ib-wrap {
    width: min(var(--ib-width), calc(100% - 48px));
    margin: 0 auto;
}

/* 섹션 제목은 원본에서 56px / 줄간격 78.4px 입니다. */
.ib-heading {
    margin: 0;
    font-size: 56px;
    line-height: 78.4px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.ib-heading--center { text-align: center; }

/* ── 히어로 ─────────────────────────────────────────── */

.ib-hero {
    min-height: 924px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    gap: 56px;
}
.ib-hero__mark { width: 298px; height: auto; flex: none; }
.ib-hero__type {
    font-family: var(--ib-display);
    font-weight: 400;
    line-height: 0.95;
}

/*
  히어로의 등장 애니메이션입니다. 원본 Wix 사이트의 움직임을 그대로 옮겼습니다.
  로고는 가운데에서 원이 열리듯 드러나고, 글자 묶음은 왼쪽에서 밀려 들어오면서
  오른쪽 모서리를 기준으로 닦이듯 나타납니다.
*/
@keyframes ib-mark-in {
    from { opacity: 0; clip-path: circle(0%); }
    to   { opacity: 1; clip-path: circle(75%); }
}
@keyframes ib-type-in {
    0% { opacity: 0; }
    /* 원본과 같이, 글자는 처음부터 불투명하고 잘라내기로만 가려 둡니다. */
    0.01% {
        opacity: 1;
        transform: translateX(-100%);
        clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}
.ib-hero__mark {
    animation: ib-mark-in 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.ib-hero__type {
    animation: ib-type-in 0.7s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}
.ib-hero__type span { display: block; }
.ib-hero__type .ib-hero__l1 { font-size: 140px; }
.ib-hero__type .ib-hero__l2 { font-size: 121px; }

/* ── 파트너 띠 ───────────────────────────────────────── */

.ib-partner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 24px 0 48px;
}
.ib-partner__label {
    flex: none;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.ib-partner__viewport {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ib-partner__track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: ib-marquee 32s linear infinite;
}
.ib-partner__track img {
    height: 54px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}
@keyframes ib-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ib-partner__track { animation: none; }
}

/* ── 소개 (청각을 넘어) ───────────────────────────────── */

.ib-intro {
    position: relative;
    min-height: 659px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ib-intro__visual {
    position: absolute;
    inset: 0 0 0 45%;
    overflow: hidden;
}
.ib-intro__visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 영상 왼쪽 끝을 배경색으로 녹여, 글이 놓인 쪽과 자연스럽게 이어지게 합니다. */
.ib-intro__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ib-bg) 0%, rgba(24, 24, 24, 0.45) 14%,
                                rgba(24, 24, 24, 0) 34%);
}
/* 글 묶음은 가운데 칸이 아니라 화면 왼쪽에서 6% 떨어진 자리에 둡니다. 원본과 같은 배치입니다. */
.ib-intro__text {
    position: relative;
    margin-left: 6.25%;
    max-width: 500px;
}
.ib-intro__title {
    margin: 0 0 28px;
    font-size: 56px;
    line-height: 1.3;
    font-weight: 700;
    word-break: keep-all;
}
.ib-intro__body {
    margin: 0;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
    word-break: keep-all;
}

/* ── 미리듣기 / 프로젝트 ──────────────────────────────── */

.ib-section { padding: 96px 0; }
.ib-section__body { margin-top: 56px; }

/* ── Our Services ───────────────────────────────────── */

.ib-services { padding: 96px 0; }
.ib-services__grid {
    position: relative;
    display: grid;
    grid-template-columns: 293px 293px;
    justify-content: center;
    column-gap: 28px;
    row-gap: 24px;
    margin-top: 56px;
}
/* 두 열 사이를 세로줄로 가릅니다. */
.ib-services__grid::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.28);
}
.ib-service {
    min-height: 109px;
    padding: 16px 20px;
    border: 1px solid var(--ib-line);
    border-radius: 15px;
    background: var(--ib-card);
}
.ib-services__grid > .ib-service:nth-child(odd) { text-align: right; }
.ib-service h3 {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 36.4px;
    font-weight: 700;
}
.ib-service p {
    margin: 0;
    font-size: 14px;
    line-height: 19.6px;
    color: rgba(255, 255, 255, 0.86);
    word-break: keep-all;
}

/* ── About ──────────────────────────────────────────── */

.ib-about { padding: 96px 0 40px; }
.ib-about__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}
.ib-about__name {
    margin: 10px 0 20px;
    font-size: 26px;
    font-weight: 500;
}
.ib-about__body {
    margin: 0;
    font-size: 18px;
    line-height: 32.4px;
    word-break: keep-all;
}
.ib-social {
    display: flex;
    gap: 14px;
    flex: none;
}
.ib-social a {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    transition: background 0.15s ease;
}
.ib-social a:hover { background: rgba(255, 255, 255, 0.14); }
.ib-social svg { width: 18px; height: 18px; fill: #ffffff; }

/* ── 수상 내역 ───────────────────────────────────────── */

.ib-awards {
    position: relative;
    padding: 56px 0 96px;
    overflow: hidden;
}
.ib-awards__mark {
    position: absolute;
    right: 8%;
    top: 20%;
    width: 240px;
    opacity: 0.07;
    pointer-events: none;
}
.ib-awards__table {
    position: relative;
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.ib-awards__table th {
    padding: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.ib-awards__table th:first-child { width: 180px; }
.ib-awards__table td {
    padding: 28px 0 10px;
    vertical-align: top;
    font-size: 20px;
    font-weight: 400;
}
.ib-awards__table td + td { font-size: 17px; line-height: 1.5; }
.ib-awards__table tr + tr td { padding-top: 22px; }
.ib-awards__sub {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
.ib-awards__more td { padding-top: 14px; }
.ib-awards__more td:first-child { padding: 0; }

/* ── 문의 ───────────────────────────────────────────── */

.ib-contact {
    padding: 140px 0;
    text-align: center;
}
.ib-contact p {
    margin: 42px 0 0;
    font-size: 16px;
    line-height: 28.8px;
    font-weight: 700;
}
.ib-contact a { text-decoration: none; }
.ib-contact a:hover { text-decoration: underline; }

/* ── FAQ ────────────────────────────────────────────── */

.ib-faq {
    position: relative;
    padding: 96px 0 120px;
    overflow: hidden;
}
.ib-faq__watermark {
    position: absolute;
    right: 6%;
    top: 40px;
    margin: 0;
    font-family: var(--ib-display);
    font-size: 176px;
    line-height: 246.4px;
    color: rgba(255, 255, 255, 0.07);
    pointer-events: none;
    user-select: none;
}
.ib-faq__title {
    position: relative;
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 47.6px;
    font-weight: 700;
}
.ib-faq__rule {
    position: relative;
    width: 180px;
    height: 1px;
    margin: 0 0 48px;
    background: rgba(255, 255, 255, 0.5);
}
.ib-faq__item {
    position: relative;
    padding: 28px 32px;
    background: var(--ib-faq);
}
.ib-faq__item + .ib-faq__item { margin-top: 14px; }
.ib-faq__item h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
}
.ib-faq__item p {
    margin: 0;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--ib-muted);
    word-break: keep-all;
}

/* ── 마무리 ─────────────────────────────────────────── */

.ib-outro {
    position: relative;
    min-height: 586px;
    padding: 120px 0 48px;
    overflow: hidden;
}
/* 원본의 파란 반원입니다. 아래쪽에서 크게 솟아오른 타원 모양입니다. */
.ib-outro__arc {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 150vw;
    height: 440px;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0;
    background: var(--ib-blue);
}
.ib-outro__inner { position: relative; }
.ib-outro__headline {
    margin: 0 0 160px;
    text-align: center;
    font-size: 64px;
    line-height: 1.22;
    font-weight: 700;
}
.ib-outro__headline span { display: block; }
.ib-outro__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.ib-outro__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ib-outro__brand img { width: 73px; height: auto; }
.ib-outro__type {
    font-family: var(--ib-display);
    font-weight: 400;
    line-height: 1.05;
}
.ib-outro__type span { display: block; }
.ib-outro__type .ib-outro__l1 { font-size: 38px; }
.ib-outro__type .ib-outro__l2 { font-size: 33px; }

.ib-footer {
    padding: 0 0 28px;
    text-align: center;
    font-size: 12px;
    color: #dbdbdb;
}

/* ── 좁은 화면 ──────────────────────────────────────── */

@media (max-width: 900px) {
    .ib-heading { font-size: 40px; line-height: 1.3; }

    .ib-hero { min-height: 560px; flex-direction: column; gap: 28px; text-align: center; }
    .ib-hero__mark { width: 180px; }
    .ib-hero__type .ib-hero__l1 { font-size: 72px; }
    .ib-hero__type .ib-hero__l2 { font-size: 62px; }

    .ib-partner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ib-partner__viewport { width: 100%; }

    .ib-intro { min-height: 0; padding: 0 0 56px; flex-direction: column; }
    .ib-intro__visual { position: relative; inset: auto; width: 100%; height: 240px; }
    .ib-intro__visual::after {
        background: linear-gradient(0deg, var(--ib-bg) 0%, rgba(24, 24, 24, 0) 70%);
    }
    .ib-intro__text {
        margin: 32px auto 0;
        max-width: none;
        width: calc(100% - 48px);
    }
    .ib-intro__title { font-size: 34px; }

    .ib-section, .ib-services, .ib-about, .ib-faq { padding: 64px 0; }
    .ib-contact { padding: 96px 0; }

    .ib-services__grid { grid-template-columns: minmax(0, 1fr); }
    .ib-services__grid::before { display: none; }
    .ib-services__grid > .ib-service:nth-child(odd) { text-align: left; }

    .ib-about__inner { flex-direction: column; align-items: flex-start; }

    .ib-awards__table th:first-child { width: 86px; }
    .ib-awards__table td { font-size: 17px; }
    .ib-awards__table td + td { font-size: 15px; }
    .ib-awards__mark { display: none; }

    .ib-faq__watermark { font-size: 96px; line-height: 1; right: 0; }
    .ib-faq__item { padding: 22px 20px; }

    .ib-outro { min-height: 0; padding: 72px 0 40px; }
    .ib-outro__headline { font-size: 36px; margin-bottom: 100px; }
    .ib-outro__arc { width: 200vw; height: 300px; }
    .ib-outro__foot { flex-direction: column; align-items: flex-start; }
}

/* ── 움직임을 줄여 달라는 설정을 존중합니다 ──────────── */

@media (prefers-reduced-motion: reduce) {
    .ib-hero__mark,
    .ib-hero__type {
        animation: none;
        opacity: 1;
        clip-path: none;
        transform: none;
    }
}
