@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-reveal-on .sm-about2-title[data-sm-reveal] { transition-delay: .08s; }
.sm-reveal-on .sm-about2-lead[data-sm-reveal] { transition-delay: .16s; }
.sm-reveal-on .sm-about2 .sm-pill-link[data-sm-reveal] { transition-delay: .24s; }

/* ---- 공통 톤 ---- */
#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: transform; }
@media (max-width: 576px) { .sm-hero3 { height: 160vh; } .sm-hero3-sticky { height: 100svh; } }

/* ---------------------------------------------------------------------
   ② 소개 문단
--------------------------------------------------------------------- */
.sm-about2 { background: var(--sm-cream); }
.sm-about2-inner { max-width: 880px; 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; }

/* ---------------------------------------------------------------------
   ③ 브랜드 그리드 — 위 2칸 · 아래 3칸, 마우스를 올린 칸이 넓어진다
--------------------------------------------------------------------- */
#sm-brands.sm-bento { padding: var(--sm-sec-pad) 0; background: var(--sm-white); background-image: none; color: var(--sm-ink); }
.sm-bento-head { margin-bottom: 40px; }
.sm-bento-head .sm-sec-title { margin-top: 12px; }
.sm-bento-grid { display: flex; flex-direction: column; gap: 12px; }
.sm-bento-row { display: flex; gap: 12px; height: clamp(240px, 27vw, 400px); }
.sm-bento-cell {
    position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--sm-radius); background: var(--sm-ice);
    text-decoration: none; transition: flex-grow .7s cubic-bezier(.22, .8, .24, 1);
}
.sm-bento-row:first-child .sm-bento-cell:first-child { flex-grow: 1.4; }
.sm-bento-cell:hover, .sm-bento-cell:focus-visible { flex-grow: 2.4 !important; }
.sm-bento-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.sm-bento-cell:hover img, .sm-bento-cell:focus-visible img { transform: scale(1.06); }
.sm-bento-cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(18, 18, 18, .55)); pointer-events: none; }
.sm-bento-cell.is-plain { display: flex; align-items: center; justify-content: center; background: var(--sm-primary); }
.sm-bento-cell.is-plain::after { display: none; }
.sm-bento-word { font-family: var(--sm-font-en); font-size: clamp(28px, 3vw, 48px); font-weight: 600; letter-spacing: -0.03em; color: var(--sm-cream); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.sm-bento-cell.is-plain:hover .sm-bento-word { transform: scale(1.1) rotate(-4deg); }
.sm-bento-label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 2px; color: var(--sm-white); }
.sm-bento-label .sm-mono { font-size: 11px; opacity: .8; }
.sm-bento-label strong { font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.sm-bento-desc { max-height: 0; overflow: hidden; font-size: 14px; opacity: 0; white-space: nowrap; transition: max-height .4s ease, opacity .4s ease; }
.sm-bento-cell:hover .sm-bento-desc, .sm-bento-cell:focus-visible .sm-bento-desc { max-height: 24px; opacity: .9; }
@media (hover: none) { .sm-bento-desc { max-height: 24px; opacity: .9; } }
@media (max-width: 768px) {
    .sm-bento-row { flex-direction: column; height: auto; }
    .sm-bento-cell { flex: none; height: 200px; }
    .sm-bento-cell:hover, .sm-bento-cell:focus-visible { flex-grow: 0 !important; }
    .sm-bento-desc { max-height: 24px; opacity: .9; }
}

/* ---------------------------------------------------------------------
   ④ 브랜드 패널 — 화면 높이 패널이 차례로 겹쳐 올라온다. 앞 패널은 살짝 작아지고 어두워짐(--sm-panel-p)
--------------------------------------------------------------------- */
.sm-panels { padding: 0 var(--sm-gutter) var(--sm-sec-pad); background: var(--sm-white); }
.sm-panel {
    position: sticky; top: calc(var(--sm-hd-total) + 12px); box-sizing: border-box; max-width: 1440px;
    height: calc(100vh - var(--sm-hd-total) - 24px); min-height: 520px; margin: 0 auto 24px; overflow: hidden; border-radius: var(--sm-radius);
    transform: scale(calc(1 - var(--sm-panel-p, 0) * .06)); transform-origin: center top;
    filter: brightness(calc(1 - var(--sm-panel-p, 0) * .3));
}
.sm-panel:last-child { margin-bottom: 0; }
.sm-panel-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); height: 100%; padding: clamp(28px, 4vw, 64px); box-sizing: border-box; }
.sm-panel:nth-child(even) .sm-panel-copy { order: 2; }
.sm-panel-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.sm-panel-no { font-size: 12px; opacity: .8; }
.sm-panel-title { margin-top: 14px; font-family: var(--sm-font-title); font-size: clamp(32px, 3.4vw, 48px); font-weight: var(--sm-title-weight); line-height: 1.15; letter-spacing: -0.035em; }
.sm-panel-lead { max-width: 480px; margin-top: 18px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.8; word-break: keep-all; opacity: .9; }
.sm-panel-facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 32px; }
.sm-panel-facts li { display: flex; flex-direction: column; gap: 4px; }
.sm-panel-facts strong { font-family: var(--sm-font-display); font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; line-height: 1; }
.sm-panel-facts small { font-family: var(--sm-font); font-size: .45em; font-weight: 700; margin-left: 2px; }
.sm-panel-facts span { font-size: 13px; opacity: .8; }
.sm-panel-points { margin-top: 28px; }
.sm-panel-points li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); font-size: 15px; }
.sm-panel-points li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--sm-primary); }
.sm-panel-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; }
.sm-panel-links a { position: relative; font-size: 15px; font-weight: 600; text-decoration: none; }
.sm-panel-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform-origin: left; transition: transform .35s cubic-bezier(.22, .8, .24, 1); }
.sm-panel-links a:hover::after { transform: scaleX(0); transform-origin: right; }
.sm-panel-media { position: relative; margin: 0; min-height: 0; overflow: hidden; border-radius: var(--sm-radius); }
.sm-panel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.sm-panel:hover .sm-panel-media img { transform: scale(1.04); }
.sm-panel-media.is-word { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--sm-cream) 12%, transparent); }
.sm-panel-media.is-word span { font-family: var(--sm-font-en); font-size: clamp(48px, 7vw, 120px); font-weight: 600; letter-spacing: -0.04em; color: var(--sm-cream); }
/* 오른쪽 아래 동그란 바로가기 */
.sm-panel-go {
    position: absolute; right: clamp(20px, 2.4vw, 36px); bottom: clamp(20px, 2.4vw, 36px); z-index: 2; display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 22px; text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.22, .8, .24, 1);
}
.sm-panel-go i { transition: transform .35s cubic-bezier(.22, .8, .24, 1); }
.sm-panel-go:hover { transform: scale(1.08); }
.sm-panel-go:hover i { transform: translateX(3px) rotate(-45deg); }
.sm-panel .sm-panel-go:link, .sm-panel .sm-panel-go:visited, .sm-panel .sm-panel-links a:link, .sm-panel .sm-panel-links a:visited { color: inherit; }
/* 패널 색 */
.sm-panel.is-primary { --sm-focus: var(--sm-white); background: var(--sm-primary); color: var(--sm-cream); }
.sm-panel.is-primary .sm-panel-go { background: var(--sm-primary); }
.sm-panel.is-primary .sm-panel-go:hover { background: var(--sm-cream); color: var(--sm-primary); }
.sm-panel.is-primary .sm-panel-points li::before { background: var(--sm-cream); }
.sm-panel.is-cream { background: var(--sm-cream); color: var(--sm-ink); }
.sm-panel.is-white { background: var(--sm-ice); color: var(--sm-ink); }
.sm-panel.is-cream .sm-panel-title, .sm-panel.is-cream .sm-panel-no, .sm-panel.is-white .sm-panel-title, .sm-panel.is-white .sm-panel-no { color: var(--sm-primary); }
.sm-panel.is-cream .sm-panel-go, .sm-panel.is-white .sm-panel-go { background: transparent; }
.sm-panel.is-cream .sm-panel-go:hover, .sm-panel.is-white .sm-panel-go:hover { background: var(--sm-primary); border-color: var(--sm-primary); color: var(--sm-white); }
.sm-panel.is-deep { --sm-focus: var(--sm-white); background: var(--sm-mango); color: var(--sm-cream); }
.sm-panel.is-deep .sm-panel-go:hover { background: var(--sm-cream); color: var(--sm-mango); }
@media (max-width: 1024px) {
    .sm-panel { position: relative; top: auto; height: auto; min-height: 0; transform: none; filter: none; }
    .sm-panel-inner { grid-template-columns: 1fr; padding-bottom: 104px; }
    .sm-panel:nth-child(even) .sm-panel-copy { order: 0; }
    .sm-panel-media { aspect-ratio: 4 / 3; }
    .sm-panel-media.is-word { aspect-ratio: 16 / 9; }
    .sm-panel-go { width: 56px; height: 56px; font-size: 20px; }
}

/* ---- ⑤ 소식 · ⑥ 문의 ---- */
.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-panel { position: relative; top: auto; transform: none; filter: none; }
    .sm-bento-cell, .sm-bento-cell img, .sm-bento-word, .sm-bento-desc, .sm-panel-media img, .sm-panel-go, .sm-panel-go 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; }
