@charset "UTF-8";
/* 브랜드 페이지 — 시안 PC 383:1991 (1920×6238) / 모바일 402:2991 (390×5899).
   메인과 달리 좌우 여백이 262 다 (콘텐츠 1396) → 13.6458% / 72.7083%.

   ⚠️ **글은 흐름으로 쌓는다. 절대좌표를 쓰지 않는다** (2026-09-14 전면 수정).
      그전에는 글자 23곳을 `position:absolute` + top 으로 박아 뒀다. 그래서
      화면이 좁아져 줄 수가 하나만 늘어도 아랫줄을 그대로 파고들었다
      (5가지 목록의 설명↔포함성분이 대표적이다).
      지금은 **세로 간격을 margin 으로, 가로 자리를 %/flex 로** 잡는다.
      시안의 top 값은 이제 "앞 요소와의 간격"으로 환산해 들어가 있다 —
      1920 에서는 시안과 같은 자리에 서고, 좁아지면 아래로 밀린다.
      절대좌표는 크기가 정해진 **사진·한자 글리프**에만 남겼다.
   ============================================================ */

/* ⚠️ **좌우 여백이 비율이면 좁은 화면에서 너무 많이 먹는다** (2026-09-15).
   13.6458%(=262/1920)를 그대로 두면 어느 폭에서나 좌우가 27.3% 를 가져가
   1024 에서 콘텐츠가 745 밖에 안 남는다. 시안 폭(1920)에서 262 는 지키되
   **좁아질수록 여백이 더 빨리 줄게** 기울기를 세운다.
     1920 → 262 (시안과 동일) · 1440 → 170 · 1280 → 139 · 1024 → 90 · 800 → 47
   위 상한 13.6458% 는 1920 보다 넓은 화면에서 시안 비율로 돌아가게 하는 것이고,
   아래 한계 40 은 더 좁아져도 글이 화면 끝에 붙지 않게 하는 것이다. */
:root { --brand-gutter: clamp(40px, 19.2vw - 106.6px, 13.6458%); }

/* 원료 표시 주석 — 심의 문구라 본문보다 작고 흐리다. 곳곳에 붙는다. */
.brand-note { font-size: 14px; line-height: 1.8; color: #999; }

/* 섹션 제목 — 눈썹 라벨(.eyebrow) 바로 아래에 온다 */
.brand-h2 {
    margin-top: 12px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ink);
}

/* 본문 안의 강조 — 시안이 SemiBold(600) 다. Bold(700) 가 아니다.
   <em> 의 기본 기울임은 끈다. */
.brand-story-text em,
.brand-delivery-text em {
    font-style: normal;
    font-weight: 600;
    color: var(--ink);
}

/* 사진은 <picture> 라 바깥이 자리를 잡고 안쪽 <img> 가 그 안을 채운다
   (모바일에서 다른 크롭을 쓰려고 <source> 를 달았다) */
.brand-story-img,
.brand-delivery-img,
.brand-balance-chart { display: block; }
.brand-story-img img,
.brand-delivery-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-balance-chart img { width: 100%; height: auto; }

/* ============================================================
   1. 인트로 — 왼쪽 위 헤드라인, 오른쪽 아래 緞雅露 (시안 758)
   ============================================================ */
.brand-intro {
    padding: 200px var(--brand-gutter) 100px;
    background: #fff;
}

.brand-headline {
    width: 55.8739%;        /* 780 / 1396 */
    font-size: 40px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ink);
}

/* 헤드라인 아래 120 을 띄우고 오른쪽 열에 놓는다 (시안 x=1114) */
.brand-hanja {
    margin: 120px 0 0 61.0315%;   /* (1114-262) / 1396 */
    width: 44.6275%;              /* 623 / 1396 */
}

/* 글자마다 아래에 뜻풀이가 붙는다. 글자는 73, 사이는 82. */
.brand-hanja-row { display: flex; gap: 82px; }
.brand-hanja-item {
    flex: 0 0 73px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 세 글자의 가로세로비가 조금씩 달라서 **높이**를 맞춘다 —
   폭을 맞추면 뜻풀이 줄이 1px 씩 어긋난다. */
.brand-hanja-glyph { width: auto; height: 72px; }

/* 뜻풀이는 글자(73)보다 넓다 — flex 가운데정렬이라 양옆으로 고르게 넘친다 */
.brand-hanja-label {
    margin-top: 18px;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.8;
    color: var(--body);
}

.brand-hanja-desc {
    margin-top: 33px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--body);
}

/* ============================================================
   2. 비주얼 밴드 — 고정 이미지 한 장 (시안 645)
   ------------------------------------------------------------
   ⚠️ 원래는 스크롤 트랙(200vh) 안에서 가운데 544 짜리 창이 전체 폭으로
      벌어지는 효과였는데 **2026-09-14 에 뺐다** (기획 요청).
   ============================================================ */
.brand-visual { background: #fff; }

.brand-visual-img {
    width: 100%;
    height: 645px;
    object-fit: cover;
}

/* ============================================================
   3. 브랜드 스토리 / EMortal — 두 열 (시안 1076)
   ------------------------------------------------------------
   왼쪽은 스토리 글 + 사진, 오른쪽은 EMortal 설명이다.
   시안에서 오른쪽 열이 561 아래에서 시작한다(사진과 나란히 서는 자리) —
   두 열이 서로 독립이라 글이 길어져도 부딪히지 않는다.
   ============================================================ */
.brand-story {
    display: flex;
    justify-content: space-between;
    padding: 100px var(--brand-gutter) 80px;
    background: #fff;
}

.brand-story-col   { width: 48.9255%; }   /* 683 / 1396 — 사진 폭과 같다 */
.brand-emortal-col { width: 38.9685%; padding-top: 561px; }   /* 544 / 1396 */

.brand-story-text,
.brand-emortal-text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--body);
}
.brand-story-text--2 { margin-top: 18px; }

.brand-story-note,
.brand-emortal-note { margin-top: 11px; }
.brand-emortal-note--2 { margin-top: 2px; max-width: 491px; }

.brand-story-img {
    margin-top: 205px;
    width: 100%;
    height: 400px;
}

/* ============================================================
   4. Key Ingredients — 좌우 화살표 캐러셀 (시안 717)
   ============================================================ */
.brand-ingredients { padding-bottom: 240px; background: #fff; }

.brand-ing-head {
    margin: 0 var(--brand-gutter);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-ing-title { font-size: 30px; font-weight: 700; line-height: 1.6; color: var(--ink); }

.brand-ing-nav { display: flex; gap: 12px; }
.brand-ing-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: opacity .2s ease;
}
.brand-ing-btn:hover { opacity: .6; }
.brand-ing-btn:disabled { opacity: .25; cursor: default; }
.brand-ing-btn img { width: 52px; height: 52px; }

/* ⚠️ **카드 줄만 화면 가로 전체를 쓴다** (2026-09-14 기획 요청).
   제목과 화살표는 콘텐츠 여백(262) 안에 그대로 두고 카드만 끝에서 끝까지 민다.
   그래서 왼쪽 여백도 없다 — 첫 카드가 화면 왼쪽 끝에 붙는다. */
.brand-ing-track {
    margin-top: 60px;       /* 원이 카드 위로 걸쳐 나온 만큼 위에서 시작한다 */
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.brand-ing-track::-webkit-scrollbar { display: none; }

.brand-ing-list { display: flex; gap: 24px; }

/* 성분 사진(원)이 카드 위로 걸쳐 나온다 — 카드는 원 아래에서 시작한다 */
.brand-ing-card {
    position: relative;
    flex: 0 0 402px;
    padding-top: 95px;      /* 원 140 중 카드 위로 나온 부분 */
}

/* ⚠️ 피그마에서 내보낸 원은 모서리가 흰색으로 채워져 나온다(알파 255).
   그대로 얹으면 카드 회색 위에 흰 네모가 비친다 — CSS 로 둥글게 자른다.
   그래서 파일도 투명이 필요 없는 JPG 로 둔다(장당 96KB → 20KB). */
.brand-ing-thumb {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    transform: translateX(-50%);
}

/* 높이는 **최소**다 — 설명이 한 줄 늘면 카드가 같이 자란다 */
.brand-ing-body {
    min-height: 270px;
    padding-top: 75px;
    background: #f7f6f7;
    text-align: center;
}
.brand-ing-name { font-size: 24px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.brand-ing-desc { margin-top: 12px; font-size: 16px; line-height: 1.8; color: var(--body); }
.brand-ing-tag  { margin-top: 12px; font-size: 16px; font-weight: 600; line-height: 1.8; color: var(--body); }

/* ============================================================
   5. 5 Balance System (시안 1047)
   ============================================================ */
.brand-balance { padding: 0 var(--brand-gutter) 176px; background: #fff; }

.brand-balance-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 40px;
}

.brand-balance-chart { flex: 0 0 35.8166%; }   /* 500 / 1396 */

.brand-balance-list {
    flex: 0 0 59.3123%;     /* 828 / 1396 */
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* 시안: 행 내용 101, 구분선 y129, 다음 행 +141.
   ⚠️ box-sizing:border-box 라 padding 이 안으로 먹힌다 —
      내용 101 을 남기려면 130(=101+28+선1) 이다.
   ⚠️ height 가 아니라 **min-height** 다. 설명이나 성분 줄이 늘어나면
      행이 같이 자라야 한다(전에는 아래 줄을 덮었다). */
.brand-balance-row {
    display: flex;
    min-height: 130px;
    padding-bottom: 29px;
    border-bottom: 1px solid #ddd;
}

/* ⚠️ **284px 로 박으면 안 된다** (2026-09-15). 목록만 줄어들고 이 칸은 그대로라
   오른쪽 설명 칸이 급격히 좁아진다 — 1024 에서 목록 442 중 284(64%)를 가져가
   설명 칸이 158 밖에 안 남았고 `포함 성분` 이 다섯 줄로 흩어졌다.
   목록 대비 비율(284/828)로 두면 같이 줄어든다. */
.brand-balance-head {
    flex: 0 0 34.2995%;
    display: flex;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ink);
}
.brand-balance-head b { font-weight: inherit; white-space: nowrap; }
/* 성분명의 하이픈에서 줄이 끊기지 않게 한다 — 모바일에서 `Tripeptide-` / `5` 로
   숫자 하나만 다음 줄에 떨어졌다. 단어 사이에서는 그대로 끊긴다(시안도 그렇다). */
.nobr { white-space: nowrap; }
.brand-balance-head b:first-child { flex: 0 0 26.0563%; }   /* 번호 칸 — 74/284 */

.brand-balance-cell {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--body);
}
.brand-balance-desc,
.brand-balance-ing { display: block; }
.brand-balance-ing { margin-top: 2px; }
.brand-balance-ing b { margin-right: 4px; font-weight: 700; }   /* 시안의 라벨-값 간격 */

/* 05 밸런스 행 안의 상표 주석 */
.brand-balance-note { display: block; margin-top: 4px; }

/* 목록 아래 전체 주석 — 오른쪽 끝에 붙는다 */
.brand-balance-foot { margin-top: 10px; text-align: right; }

/* ============================================================
   6. 전달 기술 — 왼쪽 글, 오른쪽 사진 (시안 720)
   ============================================================ */
.brand-delivery {
    display: flex;
    justify-content: space-between;
    padding: 0 var(--brand-gutter) 320px;
    background: #fff;
}

.brand-delivery-col { width: 48.9255%; }   /* 683 / 1396 */

.brand-delivery-text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--body);
}

.brand-delivery-img {
    width: 48.9255%;
    height: 400px;
}

/* ============================================================
   7. 클로징 (시안 475)
   ============================================================ */
.brand-closing {
    padding-bottom: 320px;
    background: #fff;
    text-align: center;
}

.brand-closing-text { font-size: 24px; line-height: 1.6; color: var(--ink); }

.brand-closing-mark {
    margin: 50px auto 0;
    width: 22.6614%;        /* 435.10 / 1920 — 화면 폭 기준(여백 없는 섹션이다) */
    height: auto;
}

/* ============================================================
   모바일 (≤768) — 시안 402:2991 기준 390 폭, 좌우 여백 20
   ------------------------------------------------------------
   PC 와 마크업이 같고 간격만 갈아끼운다. 두 열짜리 섹션은 한 줄로 쌓는다.
   ============================================================ */
@media (max-width: 768px) {

    .brand-h2 { margin-top: 13px; font-size: 32px; line-height: 1.5; }

    /* ---------- 1. 인트로 (시안 581) ---------- */
    .brand-intro { padding: 100px 20px 60px; }

    /* 줄은 <br> 로 끊어 두어서 칸 폭은 줄바꿈에 안 쓰인다. 시안 칸 폭(292)으로 두면 둘째 줄
       '시간이 빚은 우아함으로'(291)가 1px 여유로 겨우 들어가, 글꼴이 조금만 넓어도(웹폰트 도착 전)
       줄이 접혔다 펴지며 아래가 통째로 흔들렸다 (2026-09-18). 화면 폭까지 쓰게 둔다 — 왼쪽 정렬이라 모양은 같다. */
    .brand-headline { width: auto; font-size: 32px; line-height: 1.5; word-break: keep-all; }

    /* ⚠️ 시안은 이 덩어리를 x=114 에 두는데(설명글 112~361), 그러면 왼쪽에
       112px 짜리 빈 칸이 생겨 화면이 오른쪽으로 쏠려 보이고 390 보다 좁은
       폰(360·375)에서는 설명글 오른쪽이 잘린다. 그래서 가운데에 놓는다. */
    .brand-hanja {
        margin: 60px auto 0;
        width: 249px;
        max-width: 100%;
    }
    .brand-hanja-row { gap: 33px; justify-content: center; }
    .brand-hanja-item { flex: 0 0 51px; }
    .brand-hanja-glyph { height: 50px; }
    .brand-hanja-label { margin-top: 17px; }

    .brand-hanja-desc { margin-top: 24px; }
    .brand-hanja-desc br { display: none; }   /* 좁은 폭에 맞게 다시 흐르게 둔다 */

    /* ---------- 2. 비주얼 밴드 (시안 320) ---------- */
    .brand-visual-img { height: 320px; }

    /* ---------- 3. 브랜드 스토리 / EMortal (시안 1177) ----------
       두 열을 한 줄로 쌓는다 — 시안의 세로 순서와 같다. */
    /* 아래 69 — 마지막 주석과 Key Ingredients 제목 사이가 시안 87 이 되는 값 (95 면 113) */
    .brand-story { flex-direction: column; padding: 40px 20px 69px; }

    .brand-story-col   { width: 100%; }
    .brand-emortal-col { width: 100%; margin-top: 40px; padding-top: 0; }

    .brand-story-text br,
    .brand-emortal-text br { display: none; }
    .brand-story-text--2 { margin-top: 17px; }

    /* PC 는 스토리 옆 사진, 모바일은 EMortal 위의 사진 — 같은 그림이라 자리만 옮긴다 */
    .brand-story-img { margin-top: 70px; height: 205px; }

    .brand-emortal-note--2 { max-width: 275px; }

    /* ---------- 4. Key Ingredients (시안 442) ---------- */
    .brand-ingredients { padding-bottom: 70px; }

    .brand-ing-head { margin: 0 20px; height: 42px; }
    .brand-ing-title { font-size: 26px; }
    .brand-ing-btn,
    .brand-ing-btn img { width: 40px; height: 40px; }

    .brand-ing-track {
        margin-top: 40px;
        padding-left: 20px;
        /* ⚠️ scroll-padding 이 없으면 첫 카드가 padding 만큼 어긋난 것으로 보여
           브라우저가 로드 직후 20px 을 스스로 스크롤해 버린다. */
        scroll-padding-left: 20px;
        scroll-snap-type: x mandatory;   /* 손가락으로 넘겨도 카드에 딱 맞게 선다 */
    }
    .brand-ing-list { gap: 16px; }
    .brand-ing-card {
        flex: 0 0 270px;
        padding-top: 80px;      /* 원 110 중 카드 위로 나온 부분 */
        scroll-snap-align: start;
    }

    .brand-ing-thumb { width: 110px; height: 110px; }
    .brand-ing-body { min-height: 210px; padding-top: 51px; }
    .brand-ing-name { font-size: 20px; }
    .brand-ing-desc { margin-top: 8px; }
    .brand-ing-tag  { margin-top: 4px; }

    /* ---------- 5. 5 Balance System ---------- */
    .brand-balance { padding: 0 20px 70px; }

    .brand-balance-body { flex-direction: column; margin-top: 30px; }
    .brand-balance-chart { flex: none; width: 100%; }
    .brand-balance-list  { flex: none; width: 100%; margin-top: 40px; gap: 20px; }

    /* 번호·이름이 한 줄 위에 서고, 설명·성분이 74 안쪽에서 흐른다 */
    .brand-balance-row {
        flex-direction: column;
        min-height: 0;
        padding-bottom: 20px;
    }
    /* ⚠️ **마지막 행에는 구분선이 없다.** 시안(`402:3099`)에서 05 행의 선 레이어가
       숨김 처리돼 있다 — 그 아래 주석 위에 긋는 선(`436:5321`)이 따로 있어서
       그냥 두면 20px 간격으로 **선이 두 줄** 나온다.
       PC 는 주석에 border 가 없어 선이 하나뿐이라 이 문제가 안 보인다. */
    .brand-balance-row--last { padding-bottom: 0; border-bottom: 0; }

    /* 모바일은 번호·이름이 한 줄 위에 서고 카드 폭이 고정이라 시안 74 를 그대로 쓴다 */
    .brand-balance-head { flex: none; font-size: 22px; }
    .brand-balance-head b:first-child { flex: 0 0 74px; }
    .brand-balance-cell { margin-top: 12px; padding-left: 74px; }

    /* 시안: 목록 끝(4044) → 선 4064 → 주석 4077 */
    .brand-balance-foot {
        margin-top: 20px;
        padding-top: 12px;
        border-top: 1px solid #ddd;
    }

    /* ---------- 6. 전달 기술 (시안 685) ---------- */
    .brand-delivery { flex-direction: column; padding: 0 20px 140px; }

    .brand-delivery-col { width: 100%; }
    .brand-delivery-text br { display: none; }
    .brand-delivery-img { margin-top: 41px; width: 100%; height: 205px; }

    /* ---------- 7. 클로징 (시안 307) ---------- */
    .brand-closing { padding-bottom: 203px; }

    .brand-closing-text { font-size: 16px; line-height: 1.8; }
    .brand-closing-mark {
        margin-top: 30px;
        width: 294.81px;
        max-width: calc(100% - 40px);
    }
}
