@charset "utf-8";
/* =====================================================================
   슬로밀 메인 — 리뉴얼 (2026-11-30, 사용자 스케치 구조)
   인트로(로고 차오름 → 네모 확장) → ① 화면 가득 Fill slowly, shine longer.(스크롤 시 축소, 헤더 등장)
   → ② 소개 문단 → ③ 브랜드 그리드(2+3칸, 호버 확대) → ④ 브랜드 패널 4장(겹쳐 올라옴)
   → ⑤ 소식 → ⑥ 문의. sm-main.css 뒤에 불러와 덮어쓴다(소식 슬라이더·문의 띠는 sm-main.css 스타일 사용).
   ===================================================================== */

/* ---- 스크롤 등장([data-sm-reveal], page/js/sm-sub.js 가 .is-in 을 붙인다) ---- */
.sm-reveal-on [data-sm-reveal] { transition: opacity .9s ease, transform .9s cubic-bezier(.22, .8, .24, 1); }
.sm-reveal-on [data-sm-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px); }

/* ---- 공통 톤 ---- */
#sm-home .sm-sec-title { font-size: clamp(24px, 2.4vw, 34px); font-weight: var(--sm-title-weight); line-height: 1.35; letter-spacing: -0.03em; color: var(--sm-ink); }
.sm-kicker2 { display: block; font-size: 12px; color: var(--sm-primary); }
#sm-home .sm-pill-link i { transition: transform .25s ease; }
#sm-home .sm-pill-link:hover i { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   인트로 — index.php 인라인 스크립트가 <html> 에 .sm-intro-run 을 3초 붙인다
   0.15~1.15s 흐린 로고가 아래부터 차오름 → 1.25s 로고 사라짐 → 1.4~2.9s 가운데 둥근 네모로 히어로 등장·화면 전체로 확장
--------------------------------------------------------------------- */
.sm-intro { display: none; }
.sm-intro-run body { overflow: hidden; }
.sm-intro-run .sm-intro { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: var(--sm-primary); }
.sm-intro-run .ft-quick-container, .sm-intro-run #gw-top_btn { visibility: hidden; } /* 인트로 동안 빠른 메뉴·위로 버튼 숨김 */
.sm-intro-logo { position: relative; width: clamp(84px, 9vw, 124px); animation: sm-intro-out .35s ease 1.25s both; }
.sm-intro-logo img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); } /* 회색 로고를 흰색으로 */
.sm-intro-logo .is-ghost { opacity: .22; }
.sm-intro-logo .is-fill { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); animation: sm-logo-fill 1s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
@keyframes sm-logo-fill { to { clip-path: inset(0 0 0 0); } }
@keyframes sm-intro-out { 0% { opacity: 1; transform: scale(1); } 40% { transform: scale(1.05); } 100% { opacity: 0; transform: scale(.9); } }

/* 히어로의 화면 크기 고정 영역(.sm-hero3-sticky = 화면 100%)을 인트로 화면 위로 올리고, 화면 정중앙의 둥근 네모에서부터 드러낸다.
   네모 위치를 화면 크기 상자 기준 %로 잡아, 히어로 전체 높이(200vh)나 스크롤 위치와 상관없이 항상 가운데에서 시작한다 */
.sm-intro-run .sm-hero3-sticky { z-index: 401; background: var(--sm-cream); animation: sm-intro-clip 1.5s cubic-bezier(.76, 0, .24, 1) 1.4s both; }
@keyframes sm-intro-clip {
    0% { clip-path: inset(50% 50% 50% 50% round 16px); }
    30% { clip-path: inset(30% 34% 30% 34% round 16px); }
    100% { clip-path: inset(0 0 0 0 round 0); }
}
@media (max-width: 576px) {
    @keyframes sm-intro-clip {
        0% { clip-path: inset(50% 50% 50% 50% round 12px); }
        30% { clip-path: inset(34% 20% 34% 20% round 12px); }
        100% { clip-path: inset(0 0 0 0 round 0); }
    }
}

/* ---------------------------------------------------------------------
   ① 히어로 — 큰 네 단어가 화면 아래쪽 양 끝에서 스크롤에 따라 가운데로 모인다(index.php 스크립트)
--------------------------------------------------------------------- */
.sm-hero3 { position: relative; height: 200vh; background: var(--sm-cream); }
.sm-hero3-sticky { position: sticky; top: 0; display: flex; align-items: center; justify-content: center; height: 100vh; overflow: hidden; }
.sm-hero3-title {
    font-family: var(--sm-font-display); font-size: clamp(36px, 6.4vw, 108px); font-weight: 600; line-height: .95; letter-spacing: -0.045em;
    text-align: center; color: var(--sm-primary);
}
.sm-hero3-line { display: block; white-space: nowrap; }
/* 단어 위치·크기는 index.php 스크립트가 transform 으로 움직인다(처음: 화면 아래쪽 양 끝, 크게 → 스크롤: 가운데로 모임) */
.sm-hero3-w { display: inline-block; transform-origin: center center; } /* will-change 를 두면 작은 글자를 확대한 그림으로 고정돼 흐려진다 */
@media (max-width: 576px) { .sm-hero3 { height: 160vh; } .sm-hero3-sticky { height: 100svh; } }

/* ---------------------------------------------------------------------
   ② 소개 문단
--------------------------------------------------------------------- */
.sm-about2 { background: var(--sm-cream); }
.sm-about2-inner { max-width: 1120px; text-align: center; }
.sm-about2-title { margin-top: 18px; font-family: var(--sm-font-title); font-size: clamp(26px, 3vw, 40px); font-weight: var(--sm-title-weight); line-height: 1.3; letter-spacing: -0.035em; color: var(--sm-ink); word-break: keep-all; }
.sm-about2-lead { margin-top: 24px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.9; color: var(--sm-ink-2); word-break: keep-all; }
.sm-about2 .sm-pill-link { margin-top: 32px; }

/* ---------------------------------------------------------------------
   ③~④ 브랜드 — .sm-stack 안의 화면 높이 판(.sm-stack-pin)들이 차례로 고정되고 다음 판이 아래에서 올라와 덮는다
   첫 판: 화면 가득 브랜드 그리드(가운데 찹찹당). 뒤의 빈칸(.sm-stack-spacer) 만큼 스크롤하는 동안
   찹찹당(.sm-chap-full)이 가운데 칸 크기(clip-path, index.php 스크립트)에서 화면 전체로 커지고 소개·더보기가 나타난다
--------------------------------------------------------------------- */
.sm-stack { position: relative; background: var(--sm-ink); }
.sm-stack-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sm-stack-spacer { height: 100vh; height: 100svh; }
.sm-grid5 { z-index: 1; background: var(--sm-white); }
.sm-grid5-cells {
    position: absolute; inset: 0; box-sizing: border-box; padding: calc(var(--sm-header-h) + 12px) 12px 12px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 8px;
    grid-template-areas: "bab bab diet diet" "sea chap chap co"; /* 위 2칸 · 아래 3칸(좁게·넓게·좁게), 찹찹당은 아래 가운데 — SŌM 참고 */
}
.sm-g5 {
    position: relative; overflow: hidden; border-radius: var(--sm-radius); background: var(--sm-ice); text-decoration: none;
    opacity: calc(1 - var(--sm-chap-p, 0)); transform: scale(calc(1 - var(--sm-chap-p, 0) * .06));
}
.sm-g5.is-bab { grid-area: bab; } .sm-g5.is-diet { grid-area: diet; } .sm-g5.is-sea { grid-area: sea; } .sm-g5.is-co { grid-area: co; }
.sm-g5.is-chap { grid-area: chap; opacity: 1; transform: none; background: transparent; }
.sm-g5 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.sm-g5:hover img, .sm-g5:focus-visible img { transform: scale(1.06); }
.sm-g5:not(.is-chap)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18, 18, 18, .55)); pointer-events: none; }
.sm-g5-name { position: absolute; left: 20px; bottom: 18px; z-index: 1; font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: var(--sm-white); }

/* 찹찹당·브랜드 판: 사진을 화면 가득, 가운데 아래에 이름·소개·더보기 */
.sm-chap-full { position: absolute; inset: 0; z-index: 2; background: var(--sm-ink); }
.sm-chap-full > img, .sm-brandp > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-chap-full::after, .sm-brandp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, .05) 30%, rgba(18, 18, 18, .6)); pointer-events: none; }
.sm-brandp { background: var(--sm-ink); }
.sm-stack > .sm-brandp:nth-of-type(2) { z-index: 2; }
.sm-stack > .sm-brandp:nth-of-type(3) { z-index: 3; }
.sm-stack > .sm-brandp:nth-of-type(4) { z-index: 4; }
.sm-brandp-body {
    position: absolute; left: 50%; bottom: clamp(40px, 9vh, 96px); z-index: 1; width: min(720px, calc(100% - 40px)); transform: translateX(-50%);
    text-align: center; color: var(--sm-cream);
}
.sm-brandp-name { font-family: var(--sm-font-title); font-size: clamp(34px, 5vw, 72px); font-weight: var(--sm-title-weight); line-height: 1.1; letter-spacing: -0.035em; }
.sm-brandp-lead { margin-top: 16px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; word-break: keep-all; opacity: .92; }
.sm-brandp-more {
    display: inline-flex; align-items: center; gap: 10px; height: 48px; margin-top: 26px; padding: 0 24px; box-sizing: border-box;
    border: 1.5px solid currentColor; border-radius: 999px; font-family: var(--sm-font-en); font-size: 15px; font-weight: 600; text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.sm-brandp-more:link, .sm-brandp-more:visited { color: var(--sm-cream); }
.sm-brandp-more:hover { background: var(--sm-cream); border-color: var(--sm-cream); color: var(--sm-primary); }
.sm-brandp-more i { transition: transform .3s ease; }
.sm-brandp-more:hover i { transform: translateX(4px); }
/* 찹찹당은 다 커진 뒤에 소개·더보기가 나타난다 */
.sm-chap-full .sm-brandp-lead, .sm-chap-full .sm-brandp-more { opacity: calc((var(--sm-chap-p, 0) - .65) * 3); }
.sm-chap-full .sm-brandp-name { font-size: clamp(30px, calc(2.4vw + var(--sm-chap-p, 0) * 2.6vw), 72px); }
@media (max-width: 768px) {
    .sm-grid5-cells { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1.3fr 1fr; gap: 8px; padding: calc(var(--sm-header-h) + 8px) 8px 8px; grid-template-areas: "bab diet" "chap chap" "sea co"; }
    .sm-g5-name { left: 12px; bottom: 10px; font-size: 15px; }
}

/* ---- ⑤ 소식 · ⑥ 문의 ---- */
.sm-news-card { border-radius: var(--sm-radius); transition: transform .3s cubic-bezier(.22, .8, .24, 1), box-shadow .3s ease; }
.sm-news-card:hover { transform: translateY(-4px); box-shadow: var(--sm-shadow); }
#sm-home .sm-news-head { align-items: flex-end; }
#sm-home .sm-news-head .sm-sec-title { margin-top: 10px; }
#sm-home .sm-inquiry-title { font-size: clamp(24px, 2.6vw, 36px); }

@media (prefers-reduced-motion: reduce) {
    .sm-hero3 { height: auto; }
    .sm-hero3-sticky { position: relative; }
    .sm-stack-pin { position: relative; } .sm-stack-spacer { display: none; }
    .sm-g5 img, .sm-brandp-more, .sm-brandp-more i, .sm-news-card { transition: none; }
}

/* gw.css·sm-brand.css 의 body { overflow-x: hidden } 은 body 를 스크롤 컨테이너로 만들어 position: sticky 를 막는다
   → 메인에서는 가로 넘침만 잘라내는 clip 으로 바꿔 히어로·브랜드 패널의 sticky 를 살린다(sm-sub.css 와 같은 방식) */
body:has(#sm-home) { overflow-x: clip; overflow-y: visible; }
/* sm-main.css 의 #sm-top·#sm-home { overflow: hidden } 도 sticky 를 막으므로 덮어쓴다(가로 넘침은 clip 으로만 자름) */
#sm-home { overflow: visible; overflow-x: clip; }
#sm-top.sm-hero3 { overflow: visible; }

/* 메인: 헤더가 숨어 있는 동안(맨 위) 빠른 메뉴(문의·전화)와 위로 버튼도 함께 숨기고, 헤더가 나타날 때 같이 나타난다 */
body:has(#sm-home) .ft-quick-container, body:has(#sm-home) #gw-top_btn { transition: opacity .35s ease, visibility .35s ease; }
body:has(#sm-home):has(#hd.is-hidden) .ft-quick-container,
body:has(#sm-home):has(#hd.is-hidden) #gw-top_btn { opacity: 0; visibility: hidden; pointer-events: none; }

/* 히어로 영문 글꼴 — 기본 Bricolage Grotesque, 비교용 ?font=b·c·d (index.php) */
.sm-hero3-title { font-family: "Bricolage Grotesque", var(--sm-font-display); font-weight: 800; letter-spacing: 0; font-variation-settings: "opsz" 96; }
[data-hero-font="b"] .sm-hero3-title { font-family: "Fraunces", serif; font-weight: 800; letter-spacing: -0.035em; font-variation-settings: "SOFT" 100, "opsz" 144; }
[data-hero-font="c"] .sm-hero3-title { font-family: "Unbounded", sans-serif; font-weight: 700; letter-spacing: -0.05em; font-variation-settings: normal; }
[data-hero-font="d"] .sm-hero3-title { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-variation-settings: normal; }

/* ---- 히어로 배경 사진(사용자 제공 매장 사진) + 크림색 글자 — Joyeux Repas 처럼 사진 위에 큰 글자 ---- */
.sm-hero3-sticky { background: var(--sm-ink); }
.sm-hero3-bg { position: absolute; inset: 0; transform: scale(calc(1.1 - var(--sm-hero-p, 0) * .1)); }
.sm-hero3-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; opacity: 0; transition: opacity 1.2s ease; }
.sm-hero3-bg img.is-on { opacity: 1; }
.sm-hero3-sticky::after { content: ""; position: absolute; inset: 0; background: rgba(18, 18, 18, .32); pointer-events: none; } /* 글자 대비용 어둡게 */
.sm-hero3-title { position: relative; z-index: 1; color: var(--sm-cream); }
.sm-intro-run .sm-hero3-sticky { background: var(--sm-ink); }

/* ---- 소개 문단: 화면 한 칸을 가득 채움 ---- */
.sm-about2 { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; box-sizing: border-box; }
.sm-about2-inner { width: 100%; }
.sm-about2-title { margin-top: 0; font-size: clamp(34px, 5vw, 72px); }
.sm-about2-lead { margin-top: 32px; font-size: clamp(17px, 1.8vw, 26px); line-height: 1.8; }

/* 소식 머리글: 라벨을 지운 뒤 제목 위 여백 정리 */
#sm-home .sm-news-head .sm-sec-title { margin-top: 0; }

/* sm-main.css 의 예전 #sm-brands(붉은 격자 바탕·위아래 큰 여백)를 새 브랜드 판 묶음에서 지운다 */
#sm-brands.sm-stack { padding: 0; background-color: var(--sm-ink); background-image: none; color: inherit; }

/* ---- 버튼 인터랙션: 아래에서 색이 차오르고 화살표가 밀려남, 누르면 살짝 눌림, 커서를 따라 끌려옴(자석, index.php 스크립트) ---- */
#sm-home .sm-pill-link, .sm-brandp-more {
    position: relative; isolation: isolate; overflow: hidden; background: transparent;
    transition: color .35s ease, border-color .35s ease, transform .35s cubic-bezier(.22, .8, .24, 1);
}
#sm-home .sm-pill-link::before, .sm-brandp-more::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
    background: var(--sm-primary); transform: translateY(101%); transition: transform .45s cubic-bezier(.22, .8, .24, 1);
}
.sm-brandp-more::before { background: var(--sm-cream); }
#sm-home .sm-pill-link:hover, #sm-home .sm-pill-link:focus-visible { background: transparent; border-color: var(--sm-primary); color: var(--sm-white); }
#sm-home .sm-pill-link:hover::before, #sm-home .sm-pill-link:focus-visible::before,
.sm-brandp-more:hover::before, .sm-brandp-more:focus-visible::before { transform: translateY(0); }
.sm-brandp-more:hover, .sm-brandp-more:focus-visible { background: transparent; border-color: var(--sm-cream); color: var(--sm-primary); }
#sm-home .sm-pill-link i, .sm-brandp-more i { transition: transform .4s cubic-bezier(.22, .8, .24, 1); }
#sm-home .sm-pill-link:hover i, .sm-brandp-more:hover i { transform: translateX(6px); }
#sm-home .sm-pill-link:active, .sm-brandp-more:active { transform: scale(.96) !important; }
@media (prefers-reduced-motion: reduce) {
    #sm-home .sm-pill-link, .sm-brandp-more, #sm-home .sm-pill-link::before, .sm-brandp-more::before, #sm-home .sm-pill-link i, .sm-brandp-more i { transition: none; }
}

/* ---- 브랜드 판 본문: 왼쪽 로고(또는 이름)·설명, 오른쪽 Learn more ---- */
.sm-brandp-body {
    left: clamp(20px, 4vw, 64px); right: clamp(20px, 4vw, 64px); bottom: clamp(28px, 6vh, 64px); width: auto; transform: none;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; text-align: left;
}
.sm-brandp-info { max-width: 600px; }
.sm-brandp-name.has-logo { line-height: 0; }
.sm-brandp-name img { display: block; width: auto; height: clamp(64px, 8vw, 112px); }
.sm-brandp-name img.is-chap { border-radius: var(--sm-radius); } /* 로고 파일이 짙은 갈색 배지라 그대로 배지로 보여 준다(투명 로고 받으면 교체) */
.sm-brandp-name img.is-bab { height: clamp(36px, 4.4vw, 60px); filter: brightness(0) invert(1); } /* 흰색 로고 */
.sm-brandp-lead { margin-top: 14px; }
.sm-brandp-more { flex: none; margin-top: 0; }
.sm-chap-full .sm-brandp-name:not(.has-logo) { font-size: clamp(34px, 5vw, 72px); }
@media (max-width: 576px) { .sm-brandp-body { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* ---- 소식(News): 왼쪽 제목·오른쪽 화살표, 사진 카드, 가운데 아래 Read more ---- */
#sm-news { background: var(--sm-cream); }
#sm-home .sm-news-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.sm-news2-title { font-family: var(--sm-font-en); font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; color: var(--sm-ink); }
.sm-news2-nav { display: flex; gap: 12px; }
.sm-news2-arrow {
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--sm-ink); border-radius: 50%;
    background: transparent; color: var(--sm-ink); font-size: 18px; cursor: pointer; transition: background .25s ease, color .25s ease, opacity .25s ease;
}
.sm-news2-arrow:hover { background: var(--sm-ink); color: var(--sm-white); }
.sm-news2-arrow.swiper-button-disabled { opacity: .3; cursor: default; }
.sm-news2-arrow.swiper-button-disabled:hover { background: transparent; color: var(--sm-ink); }
#sm-home .sm-news-slider-wrap { margin-right: calc((100% - 100vw) / 2); } /* 오른쪽은 화면 끝까지 이어진다 */
#sm-home .sm-news-slider-wrap .sm-slider-btn { display: none; }
.sm-news2-card { display: block; text-decoration: none; color: var(--sm-ink); }
.sm-news2-img { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--sm-radius); background: var(--sm-ice); }
.sm-news2-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.sm-news2-card:hover .sm-news2-img img { transform: scale(1.05); }
.sm-news2-img.is-empty { display: flex; align-items: center; justify-content: center; background: var(--sm-primary); }
.sm-news2-img .sm-news2-logo { width: auto; height: 46%; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.sm-news2-card:hover .sm-news2-img .sm-news2-logo { transform: scale(1.06); }
.sm-news2-date { display: block; margin-top: 18px; font-family: var(--sm-font-en); font-size: 12px; color: var(--sm-ink-3); }
.sm-news2-card-title { margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--sm-ink); word-break: keep-all; transition: color .2s ease; }
.sm-news2-card:hover .sm-news2-card-title { color: var(--sm-primary); }
.sm-news2-more { margin-top: 56px; text-align: center; }
.sm-news2-more a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sm-font-en); font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; color: var(--sm-ink); }
.sm-news2-more a i { transition: transform .3s ease; }
.sm-news2-more a:hover { color: var(--sm-primary); }
.sm-news2-more a:hover i { transform: translateX(6px); }
#sm-home .sm-news-head { padding-bottom: 0; border-bottom: 0; } /* 예전 구분선 제거 */

/* 히어로 영문: 마루부리 Bold, 자간 넓게(사용자 요청) — 위의 Bricolage 규칙을 덮어쓴다 */
.sm-hero3-title { font-family: "MaruBuriBold", "MaruBuri", serif; font-weight: 400; letter-spacing: .08em; font-variation-settings: normal; }

/* 버튼: 움직임 없이 색만 바뀌게(사용자 요청) — 화살표 이동·눌림·자석 효과 제거 */
#sm-home .sm-pill-link i, .sm-brandp-more i, .sm-news2-more a i { transform: none !important; }
#sm-home .sm-pill-link, .sm-brandp-more { transform: none !important; }

/* 소개 문단: 제목·본문·버튼 사이 간격을 넉넉하게 */
.sm-about2-lead { margin-top: clamp(40px, 4vw, 64px); line-height: 2; }
.sm-about2 .sm-pill-link { margin-top: clamp(48px, 5vw, 80px); }

/* 브랜드 판 본문: 아래가 아니라 화면 세로 가운데(사용자 요청). 오른쪽은 빠른 메뉴와 겹치지 않게 비움 */
.sm-brandp-body { top: 50%; bottom: auto; align-items: center; transform: translateY(-50%); right: clamp(120px, 9vw, 140px); }
@media (max-width: 1024px) { .sm-brandp-body { right: clamp(20px, 4vw, 64px); } }

/* ---------------------------------------------------------------------
   ⑥ 문의 — 큰 영문 두 줄(CONTACT / US) 사이에 사진 띠(레퍼런스, 장식 없음)
   아래: 왼쪽 제목·한 줄 안내, 오른쪽 메인색 문의하기 버튼. 화면에 들어오면 사진이 옆으로 펼쳐진다
--------------------------------------------------------------------- */
.sm-iq3 { padding: clamp(112px, 11vw, 190px) 0 clamp(120px, 12vw, 200px); }
.sm-iq3-inner { padding: 0 5vw; }
.sm-iq3-big { margin: 0; font-family: var(--sm-font-display); font-size: clamp(64px, 12.5vw, 240px); font-weight: 800; line-height: .86; letter-spacing: -0.045em; text-transform: uppercase; color: var(--sm-ink); }
.sm-iq3-line { display: flex; align-items: center; gap: .14em; }
.sm-iq3-line + .sm-iq3-line { margin-top: .08em; }
.sm-iq3-word { flex: none; }
.sm-iq3-pic { position: relative; flex: 1 1 auto; min-width: 0; height: .74em; overflow: hidden; border-radius: 6px; background: var(--sm-ice); }
.sm-iq3-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-iq3-pic.is-1 img { object-position: 50% 42%; } /* 찹찹당 K-MOCHI 패키지 4종이 띠 안에 들어오게 */
.sm-iq3-pic.is-2 img { object-position: 50% 40%; }

.sm-iq3-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; margin-top: clamp(48px, 5vw, 88px); }
.sm-iq3-title { margin: 0; font-family: var(--sm-font-title); font-size: clamp(24px, 2.4vw, 38px); font-weight: var(--sm-title-weight); line-height: 1.35; letter-spacing: -0.03em; color: var(--sm-ink); word-break: keep-all; }
.sm-iq3-desc { margin-top: 14px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.8; color: var(--sm-ink-2); word-break: keep-all; }
.sm-iq3-btn {
    flex: none; display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-width: 260px; height: clamp(64px, 5vw, 80px); padding: 0 32px 0 36px;
    border-radius: 999px; background: var(--sm-primary); font-size: clamp(17px, 1.3vw, 20px); font-weight: 700; text-decoration: none; transition: background .25s ease;
}
.sm-iq3-btn:link, .sm-iq3-btn:visited { color: var(--sm-white); }
/* 위쪽 버튼(About Slowmil · View all news · Learn more)과 같은 효과: 아래에서 색이 차오름(여기서는 메인색 위로 딥 로고 레드) */
.sm-iq3-btn { position: relative; isolation: isolate; overflow: hidden; }
.sm-iq3-btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--sm-mango); transform: translateY(101%); transition: transform .45s cubic-bezier(.22, .8, .24, 1); }
.sm-iq3-btn:hover, .sm-iq3-btn:focus-visible { color: var(--sm-white); }
.sm-iq3-btn:hover::before, .sm-iq3-btn:focus-visible::before { transform: translateY(0); }
.sm-iq3-btn i { font-size: 1.1em; }

/* 등장: 섹션이 화면에 들어오면(.is-in) 사진 띠가 글자 쪽에서 바깥으로 펼쳐진다(공통 등장 효과는 끔) */
.sm-reveal-on .sm-iq3[data-sm-reveal] { opacity: 1; transform: none; transition: none; }
.sm-reveal-on .sm-iq3-pic { clip-path: inset(0 100% 0 0 round 6px); transition: clip-path 1.2s cubic-bezier(.65, 0, .35, 1) .15s; }
.sm-reveal-on .sm-iq3-pic.is-2 { clip-path: inset(0 0 0 100% round 6px); transition-delay: .35s; }
.sm-reveal-on .sm-iq3.is-in .sm-iq3-pic { clip-path: inset(0 0 0 0 round 6px); }

@media (max-width: 768px) {
    .sm-iq3-inner { padding: 0 var(--sm-gutter); }
    .sm-iq3-big { font-size: 14vw; }
    .sm-iq3-foot { flex-direction: column; align-items: flex-start; }
    .sm-iq3-btn { min-width: 200px; height: 56px; gap: 28px; padding: 0 24px 0 28px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sm-iq3-btn, .sm-iq3-btn::before { transition: none; } }

/* Figma 시안(슬로밀 메인): 사진 위에 어둡게 덮지 않고 흰 글자, 마루부리 Bold, 자간 0.08em, 줄높이 0.95 */
.sm-hero3-sticky::after { display: none; }
.sm-hero3-title { color: var(--sm-white); line-height: .95; letter-spacing: .08em; text-shadow: 0 0 40px rgba(18, 18, 18, .18); }


/* 히어로 영문 굵기: Figma 렌더 기준으로 마루부리 Regular, 그림자 없음(굵어 보이는 원인) */
.sm-hero3-title { font-family: "MaruBuri", "MaruBuriBold", serif; text-shadow: none; }

/* ---- 모바일(최소 320px) 보정 ---- */
@media (max-width: 576px) {
    /* 소개: 한 화면 안에 버튼까지(하단 빠른 메뉴 64px 위) */
    .sm-about2 { padding-top: calc(var(--sm-header-h) + 24px); padding-bottom: 40px; }
    .sm-about2-title { font-size: clamp(26px, 8vw, 34px); }
    .sm-about2-lead { margin-top: 24px; font-size: 15px; line-height: 1.85; }
    .sm-about2 .sm-pill-link { margin-top: 32px; }
    /* 브랜드 판: 글자는 사진 아래쪽(어두운 그라데이션 위)에 왼쪽 정렬, 하단 빠른 메뉴 위로 */
    .sm-brandp-body { top: auto; bottom: 40px; left: 20px; right: 20px; transform: none; align-items: flex-start; gap: 20px; }
    .sm-chap-full::after, .sm-brandp::after { background: linear-gradient(180deg, rgba(18, 18, 18, 0) 35%, rgba(18, 18, 18, .72)); }
    .sm-brandp-name img { height: 56px; }
    .sm-brandp-name img.is-bab { height: 34px; }
    .sm-brandp-lead { font-size: 14px; line-height: 1.75; }
    .sm-brandp-more { height: 44px; padding: 0 20px; font-size: 14px; }
    /* News: 제목 왼쪽 · 화살표 오른쪽 한 줄 */
    #sm-home .sm-news-head { flex-direction: row; align-items: center; margin-bottom: 24px; }
    .sm-news2-title { font-size: 26px; }
    .sm-news2-arrow { width: 40px; height: 40px; font-size: 16px; }
    .sm-news2-more { margin-top: 36px; }
}

/* 소개 문단: 화면에 들어오면 한 번 재생(index.php #sm-about[data-sm-reveal] → .is-in, page/js/sm-sub.js).
   ① 제목이 가림막 아래에서 올라옴 → ② 문장 세 줄이 흐림에서 또렷하게 차례로 → ③ 버튼.
   스크립트가 없거나 동작 줄이기 설정이면 .sm-reveal-on 이 없어 처음부터 모두 보인다 */
.sm-about2-mask { display: inline-block; overflow: hidden; padding: 0 .04em .12em; margin-bottom: -.12em; vertical-align: top; }
.sm-about2-mask-in { display: inline-block; }
@media (min-width: 769px) { .sm-about2-ln { display: block; } }

.sm-reveal-on .sm-about2[data-sm-reveal] { opacity: 1; transform: none; transition: none; } /* 공통 등장 효과는 끄고 아래 개별 효과만 */
.sm-reveal-on .sm-about2-mask-in { transform: translateY(110%); transition: transform 1.1s cubic-bezier(.19, 1, .22, 1); }
.sm-reveal-on .sm-about2-ln { opacity: 0; filter: blur(8px); transition: opacity 1s ease, filter 1s ease, transform 1s cubic-bezier(.22, .8, .24, 1); }
@media (min-width: 769px) { .sm-reveal-on .sm-about2-ln { transform: translateY(14px); } }
.sm-reveal-on .sm-about2-ln:nth-child(1) { transition-delay: .5s; }
.sm-reveal-on .sm-about2-ln:nth-child(2) { transition-delay: .7s; }
.sm-reveal-on .sm-about2-ln:nth-child(3) { transition-delay: .9s; }
.sm-reveal-on .sm-about2 .sm-pill-link { opacity: 0; transform: translateY(16px); transition: opacity .8s ease 1.2s, transform .8s cubic-bezier(.22, .8, .24, 1) 1.2s, background .25s ease, color .25s ease; }
.sm-reveal-on .sm-about2.is-in .sm-about2-mask-in,
.sm-reveal-on .sm-about2.is-in .sm-about2-ln,
.sm-reveal-on .sm-about2.is-in .sm-pill-link { opacity: 1; filter: none; transform: none; }

/* News 버튼: 사이트 버튼(About Slowmil)과 같은 메인색 테두리·호버 채움 */
.sm-news2-arrow { border-color: var(--sm-primary); color: var(--sm-primary); }
.sm-news2-arrow:hover { background: var(--sm-primary); color: var(--sm-white); }
.sm-news2-arrow.swiper-button-disabled { border-color: var(--sm-line); color: var(--sm-ink-3); opacity: 1; }
.sm-news2-arrow.swiper-button-disabled:hover { background: transparent; color: var(--sm-ink-3); }
.sm-news2-more .sm-pill-link { text-transform: none; font-family: var(--sm-font); font-size: 16px; font-weight: 700; letter-spacing: 0; }

/* 인트로 네모: 처음부터 로고 크기(가로 = 로고 폭, 세로 = 로고 높이)로 나타나 로고가 사라지는 순간 그 자리에서 화면 전체로 커진다 */
.sm-hero3-sticky { --sm-lw: clamp(84px, 9vw, 124px); --sm-lh: calc(var(--sm-lw) * 1.29); }
/* 0~1.2초: 완전히 닫혀 있어 로고가 보임 → 1.2초: 로고 자리에 로고 크기 네모 → 2.7초: 화면 전체 */
.sm-intro-run .sm-hero3-sticky { animation: sm-intro-clip2 2.7s linear both; }
@keyframes sm-intro-clip2 {
    0%, 44% { clip-path: inset(50% 50% 50% 50% round 12px); }
    44.5% { clip-path: inset(calc(50% - var(--sm-lh) / 2) calc(50% - var(--sm-lw) / 2) round 12px); animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
    100% { clip-path: inset(0 0 0 0 round 0); }
}

/* 히어로 두 줄 사이 행간(모였을 때 너무 붙지 않게). 처음 펼친 배치는 단어 위치를 따로 계산하므로 영향 없음 */
.sm-hero3-line + .sm-hero3-line { margin-top: .22em; }

/* 브랜드 그리드: 이름·어두운 그라데이션 없이 사진만, 칸마다 사진의 보기 좋은 부분으로 맞춤 */
.sm-g5:not(.is-chap)::after { display: none; }
.sm-g5-name { display: none; }
.sm-g5.is-bab img { object-position: 50% 60%; }
.sm-g5.is-diet img { object-position: 50% 28%; }
.sm-g5.is-sea img { object-position: 40% 60%; }
.sm-g5.is-co img { object-position: 60% 55%; }

/* News 여백(레퍼런스): 컨테이너 폭 제한 없이 양옆 5vw, 제목·카드 왼쪽 시작선 일치, 카드는 오른쪽 화면 끝까지 */
#sm-news > .sm-container { max-width: none; padding: 0 5vw; }
#sm-home #sm-news .sm-news-slider-wrap { margin-right: -5vw; }
#sm-news .sm-news-head { margin-bottom: 44px; }
@media (max-width: 576px) { #sm-news > .sm-container { padding: 0 var(--sm-gutter); } #sm-home #sm-news .sm-news-slider-wrap { margin-right: calc(-1 * var(--sm-gutter)); } }

/* 브랜드 그리드 6칸(2026-12-01): 윗줄 2칸 · 가운데 줄 3칸(좁게·넓게·좁게, 가운데가 찹찹당) · 아랫줄 1칸.
   아랫줄은 화면 아래로 이어져 절반만 보인다(아래 여백 없이 잘림). 장식용이라 누르거나 호버해도 반응하지 않는다 */
.sm-grid5-cells {
    padding-bottom: 0; grid-template-rows: 1fr 1.6fr .55fr; /* 가운데 줄(찹찹당 줄)을 더 높게 */
    grid-template-areas: "g1 g1 g2 g2" "g3 chap chap g5" "g6 g6 g6 g6";
}
.sm-g5 { pointer-events: none; }
.sm-g5.is-g1 { grid-area: g1; } .sm-g5.is-g2 { grid-area: g2; } .sm-g5.is-g3 { grid-area: g3; }
.sm-g5.is-g5 { grid-area: g5; } .sm-g5.is-g6 { grid-area: g6; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.sm-g5.is-g1 img { object-position: 40% 60%; }
.sm-g5.is-g6 img { object-position: 50% 40%; }
@media (max-width: 768px) {
    .sm-grid5-cells { padding-bottom: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1.9fr 1fr .5fr; grid-template-areas: "g1 g2" "chap chap" "g3 g5" "g6 g6"; }
}
/* 히어로 문구: 밝은 사진 위에서도 읽히도록 글자에만 연한 그림자(사진 자체는 어둡게 하지 않음) */
.sm-hero3-title { text-shadow: 0 1px 3px rgba(18, 18, 18, .22), 0 4px 24px rgba(18, 18, 18, .28); }

/* PC 브랜드 그리드 비율: 가운데 줄 양옆 칸(샐러드·조리)이 세로로 긴 4:5 가 되도록
   가운데 줄 높이 = 그리드 높이의 56%, 양옆 칸 너비 = 그 높이 × 0.8. 윗줄 30%, 아랫줄은 나머지(화면 아래로 잘림) */
@media (min-width: 769px) and (orientation: landscape) {
    .sm-grid5-cells {
        --sm-g5-h: calc(100vh - var(--sm-header-h) - 28px);
        --sm-g5-h: calc(100svh - var(--sm-header-h) - 28px);
        grid-template-rows: calc(var(--sm-g5-h) * .3) calc(var(--sm-g5-h) * .56) 1fr;
        grid-template-columns: min(calc(var(--sm-g5-h) * .448), 24vw) minmax(0, 1fr) minmax(0, 1fr) min(calc(var(--sm-g5-h) * .448), 24vw);
    }
}

/* 인트로 보정(2026-12-01)
   - 네모 안 바탕: 사진이 늦게 뜰 때 검은 상자로 보이지 않게 크림색. 첫 사진은 index.php 에서 미리 받는다(preload)
   - .sm-intro-hold: 첫 사진을 받을 때까지 로고·네모 움직임을 멈춰 둔다(index.php 인트로 스크립트, 최대 2초)
   - 인트로가 끝나 히어로가 화면을 다 채울 때까지 스크롤 막기(휠·터치·키보드는 스크립트에서도 막는다) */
.sm-intro-run .sm-hero3-sticky { background: var(--sm-cream); }
.sm-intro-run, .sm-intro-run body { overflow: hidden; overscroll-behavior: none; }
.sm-intro-hold .sm-hero3-sticky, .sm-intro-hold .sm-intro-logo, .sm-intro-hold .sm-intro-logo .is-fill { animation-play-state: paused; }
html:has(#sm-home) { scrollbar-gutter: stable; } /* 인트로 동안 스크롤바가 사라졌다 생기며 화면이 옆으로 밀리지 않게 */

/* 브랜드 판 로고: 팔팔 식단연구소(글자 로고)·씨글(갈매기 그림 로고)도 밥의한수처럼 사진 위 흰색 로고로 */
.sm-brandp-name img.is-diet { height: clamp(30px, 3.6vw, 50px); filter: brightness(0) invert(1); }
.sm-brandp-name img.is-sea { height: clamp(96px, 11vw, 150px); filter: brightness(0) invert(1); }
@media (max-width: 576px) {
    .sm-brandp-name img.is-diet { height: 28px; }
    .sm-brandp-name img.is-sea { height: 84px; }
}

/* 찹찹당 로고: 갈색 배지 이미지 대신 사용자 제공 SVG(검정 선 로고, 투명 배경) — 다른 브랜드처럼 사진 위 흰색 */
.sm-brandp-name img.is-chap { border-radius: 0; height: clamp(88px, 10vw, 136px); filter: brightness(0) invert(1); }
@media (max-width: 576px) { .sm-brandp-name img.is-chap { height: 76px; } }


/* ---------------------------------------------------------------------
   태블릿·모바일 점검 보정(2026-12-01)
--------------------------------------------------------------------- */
/* 소개 문단과 브랜드 그리드 사이 가는 회색 선: 브랜드 묶음 바탕(검정)이 소수점 높이 틈으로 비치던 것 → 바탕을 흰색으로 */
#sm-brands.sm-stack { background-color: var(--sm-white); }

/* 세로로 긴 태블릿(아이패드 세로 등): PC 4:5 계산이 화면 높이 기준이라 칸이 깨짐 → 모바일과 같은 2열 배치 */
@media (min-width: 769px) and (orientation: portrait) {
    .sm-grid5-cells { padding-bottom: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1.9fr 1fr .5fr; grid-template-areas: "g1 g2" "chap chap" "g3 g5" "g6 g6"; }
}

/* 그리드 상태(찹찹당 칸이 작을 때)에는 찹찹당 로고·소개를 숨기고, 화면 전체로 커진 뒤에 나타낸다 */
.sm-chap-full .sm-brandp-name { opacity: calc((var(--sm-chap-p, 0) - .55) * 3); }

/* 브랜드 판 글자: 세로 태블릿·모바일에서는 화면 가운데 대신 아래쪽에(사진을 넓게 보이고 위아래 빈 공간 줄임) */
@media (max-width: 1024px), (orientation: portrait) {
    .sm-brandp-body { top: auto; bottom: clamp(32px, 6vh, 64px); left: var(--sm-gutter); right: var(--sm-gutter); transform: none; align-items: flex-end; }
    .sm-chap-full::after, .sm-brandp::after { background: linear-gradient(180deg, rgba(18, 18, 18, 0) 40%, rgba(18, 18, 18, .7)); }
}
@media (max-width: 576px) {
    .sm-brandp-body { bottom: calc(32px + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* 320px 아래에서는 더 줄이지 않는다(문서 최소 폭 --sm-min-width, sm-brand.css): 화면 폭(vw) 기준 크기를 320px 기준 값으로 고정 */
@media (max-width: 319px) {
    .sm-iq3-big { font-size: calc(var(--sm-min-width) * .14); }
}

/* 모바일 점검 2(2026-12-01) */
@media (max-width: 576px) {
    /* 뉴스: 카드 글자와 View all news 버튼 사이 여백 줄임 */
    #sm-home #sm-news .sm-news-slider-wrap { padding-bottom: 0; }
    .sm-news2-more { margin-top: 32px; }
}
/* 문의 섹션 모바일: 1줄 CONTACT(폭 가득) / 2줄 [패키지 사진 띠] US. 생산 사진은 모바일에서 뺀다 */
@media (max-width: 576px) {
    .sm-iq3-big { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .08em .12em; font-size: calc((100vw - 2 * var(--sm-gutter)) / 4.7); }
    .sm-iq3-line { display: contents; }
    .sm-iq3-line:first-child .sm-iq3-word { grid-column: 1 / -1; }
    .sm-iq3-pic.is-1 { grid-column: 1; height: .74em; }
    .sm-iq3-line.is-2 .sm-iq3-word { grid-column: 2; }
    .sm-iq3-pic.is-2 { display: none; }
    .sm-iq3-pic.is-1 img { object-position: 50% 45%; }
    .sm-reveal-on .sm-iq3-pic.is-1 { clip-path: inset(0 100% 0 0 round 6px); } /* 왼쪽에서 오른쪽으로 펼쳐짐 */
    .sm-reveal-on .sm-iq3.is-in .sm-iq3-pic.is-1 { clip-path: inset(0 0 0 0 round 6px); }
}
@media (max-width: 319px) {
    .sm-iq3-big { font-size: calc((var(--sm-min-width) - 2 * var(--sm-gutter)) / 4.7); }
}

/* 문의 안내 문장: 모바일(576px 이하)에서만 '제안까지' 뒤에서 줄바꿈 */
.sm-iq3-br { display: none; }
@media (max-width: 576px) { .sm-iq3-br { display: inline; } }

/* 뉴스 모바일 오른쪽 여백: sm-main.css 의 575px 이하 .sm-news-swiper 오른쪽 음수 여백이 바깥 래퍼의 음수 여백과 겹쳐
   슬라이더가 화면 밖으로 한 번 더 나가, 마지막 카드 뒤 여백(slidesOffsetAfter)이 화면 밖에 묻히던 것 → 안쪽 음수 여백 제거 */
#sm-home .sm-news-swiper { margin-right: 0; }

/* 씨글 로고: 파일 둘레 여백 때문에 다른 브랜드보다 작아 보여 키움 */
.sm-brandp-name img.is-sea { height: clamp(124px, 13vw, 190px); }
@media (max-width: 576px) { .sm-brandp-name img.is-sea { height: 112px; } }

/* 모바일 문의하기 버튼: 위쪽 버튼들(About Slowmil · View all news)과 같은 크기(높이 48px, 글자 옆 꺾쇠) */
@media (max-width: 768px) {
    .sm-iq3-btn { min-width: 0; height: 48px; gap: 10px; padding: 0 24px; justify-content: center; font-size: 16px; }
    .sm-iq3-btn i { font-size: 1em; }
}

/* 모바일 문의 아래쪽(제목·안내·문의하기 버튼) 가운데 정렬 */
@media (max-width: 768px) {
    .sm-iq3-foot { align-items: center; text-align: center; }
}

/* 태블릿(577~1024px) 좌우 여백 24px: 화면 폭 5% 로 잡던 메인 영역들을 24px(--sm-gutter)로 */
@media (min-width: 577px) and (max-width: 1024px) {
    #sm-news > .sm-container, .sm-iq3-inner { padding: 0 var(--sm-gutter); }
    #sm-home #sm-news .sm-news-slider-wrap { margin-right: calc(-1 * var(--sm-gutter)); }
    .sm-grid5-cells { padding-left: var(--sm-gutter); padding-right: var(--sm-gutter); }
}

/* 태블릿(577px~, 1024px 이하 또는 세로 화면): 브랜드 판 글자·로고·버튼이 화면에 비해 작아 키움 */
@media (min-width: 577px) and (max-width: 1024px), (min-width: 577px) and (orientation: portrait) {
    .sm-brandp-info { max-width: 640px; }
    .sm-brandp-lead { margin-top: 18px; font-size: 19px; line-height: 1.75; }
    .sm-brandp-more { height: 54px; padding: 0 28px; font-size: 17px; }
    .sm-brandp-name img.is-chap { height: 132px; }
    .sm-brandp-name img.is-bab { height: 58px; }
    .sm-brandp-name img.is-diet { height: 48px; }
    .sm-brandp-name img.is-sea { height: 168px; }
}

/* 모바일(576px 이하) 설명 글(desc) 글자 크기 16px 통일(사용자 지정 2026-12-01): 소개 문단·브랜드 판 소개·문의 안내·뉴스 카드 제목 */
@media (max-width: 576px) {
    .sm-about2-lead, .sm-brandp-lead, .sm-iq3-desc, .sm-news2-card-title { font-size: 16px; }
}

/* 설명 글 16px 통일(사용자 지정 2026-12-01): 문의 안내·뉴스 카드 제목은 모든 화면, 브랜드 소개는 PC, 소개 문단은 1024px 이하.
   (PC 소개 문단 큰 글자와 태블릿 브랜드 소개 19px 은 유지) */
.sm-iq3-desc, .sm-news2-card-title { font-size: 16px; }
@media (min-width: 1025px) and (orientation: landscape) { .sm-brandp-lead { font-size: 20px; } } /* PC 브랜드 소개 20px(사용자 지정) */
@media (max-width: 1024px) { .sm-about2-lead { font-size: 16px; } }

/* 브랜드 판 높이: 폰에서 100svh(주소창이 보일 때의 작은 화면 높이)라 주소창이 접히면 화면보다 짧아짐 → 실제 보이는 높이(100dvh) */
.sm-stack-pin, .sm-stack-spacer { height: 100vh; height: 100dvh; }
@media (min-width: 769px) and (orientation: landscape) {
    .sm-grid5-cells { --sm-g5-h: calc(100dvh - var(--sm-header-h) - 28px); }
}

/* 브랜드 판(1024px 이하·세로 화면): 아래쪽 글자가 사진에 묻혀 읽기 어려워 화면 가운데로.
   로고 → 소개 글 → Learn more 를 한 줄씩 가운데 정렬하고, 사진 전체를 고르게 살짝 어둡게 */
@media (max-width: 1024px), (orientation: portrait) {
    .sm-brandp-body {
        top: 50%; bottom: auto; left: var(--sm-gutter); right: var(--sm-gutter); transform: translateY(-50%);
        flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center;
    }
    .sm-brandp-info { max-width: 560px; margin: 0 auto; }
    .sm-brandp-name, .sm-brandp-name.has-logo { display: flex; justify-content: center; }
    .sm-brandp-name img { margin: 0 auto; }
    .sm-chap-full::after, .sm-brandp::after { background: rgba(18, 18, 18, .42); }
}

/* 섹션 경계의 가는 회색 선 제거: 사진이 화면을 다 덮는 영역의 검정 바탕(--sm-ink)이 소수점 위치의 가장자리에서 회색 줄로 비치던 것.
   찹찹당 확대 판(.sm-chap-full)·브랜드 판(.sm-brandp)·히어로(.sm-hero3-sticky) 바탕을 흰색으로.
   히어로 사진 전환은 이전 사진(.is-prev)을 남겨 둔 채 새 사진(.is-on)이 위에서 나타나게 해, 겹치는 동안에도 바탕이 비치지 않는다 */
.sm-chap-full, .sm-brandp, .sm-hero3-sticky { background: var(--sm-white); }
.sm-hero3-bg img.is-prev { opacity: 1; transition: none; }
.sm-hero3-bg img.is-on { z-index: 1; }

/* 브랜드 사진 판 붙임: 사진 윗변이 화면 맨 위에 닿는 위치 근처에서 스크롤이 멈추면 그 위치로 탁 붙는다(멀리 있을 때는 자유롭게 스크롤).
   마우스·터치패드 화면(PC·랩탑)에만 적용 — 폰·태블릿은 주소창이 접히며 화면 높이가 바뀔 때 다시 붙으면서 화면이 튈 수 있어 뺀다 */
.sm-stack-snap { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html:has(#sm-home) { scroll-snap-type: y proximity; }
    .sm-stack-snap { display: block; position: absolute; left: 0; top: calc(var(--i) * 100vh); top: calc(var(--i) * 100dvh); width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; }
}

/* 브랜드 그리드: 헤더 자리로 비워 둔 위쪽 흰 여백 제거(모든 화면). 이 구간에 내려올 때 헤더는 숨어 있어 빈 흰 띠로만 보였다.
   위 여백을 좌우 여백과 같게(PC 12px, 태블릿 --sm-gutter, 폰 8px) 두고, 늘어난 높이는 각 줄이 비율대로 나눠 가진다.
   PC 가로 배치의 줄 높이 계산(--sm-g5-h)에서도 헤더 높이를 빼지 않는다(위 12px + 줄 사이 8px × 2 = 28px 만 뺀다) */
.sm-grid5-cells { padding-top: 12px; }
@media (max-width: 1024px) {
    .sm-grid5-cells { padding-top: var(--sm-gutter); }
}
@media (max-width: 576px) {
    .sm-grid5-cells { padding-top: 8px; }
}
@media (min-width: 769px) and (orientation: landscape) {
    .sm-grid5-cells { --sm-g5-h: calc(100vh - 28px); --sm-g5-h: calc(100dvh - 28px); }
}

/* 히어로 문구(세로로 긴 화면): 글자를 화면 폭의 12%로 크게 두고, 처음(네 모서리)부터 가운데로 모일 때까지 같은 크기를 유지한다.
   가운데에 모였을 때 한 줄(Fill slowly, / shine longer.)이 좌우 여백 안에 들어가는 가장 큰 크기.
   처음에는 네 단어가 화면 네 모서리에 놓이고 오른쪽 단어의 쉼표·마침표는 화면 밖으로 나간다(index.php sm_measure()) */
@media (orientation: portrait) {
    .sm-hero3-title { font-size: min(12vw, 120px); }
}
