/* =====================================================================
   메인 페이지: dalia.kr 참고 구성 (모든 시안 공통, 색은 시안 변수를 따른다)
   site.css 다음에 불러온다.
   ===================================================================== */
main > section.dl { height: auto; min-height: 0; padding-block: 140px 120px; padding-bottom: calc(120px + var(--bar, 0px)); }
main > section.dl > .wrap { height: auto; }
.dl-eyebrow { font: 700 16px/1.3 var(--font-text); color: var(--ink); margin-bottom: var(--s-4); }
.dl-title { font: 200 clamp(32px, 2.4vw + 12px, 46px)/1.3 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.03em; color: var(--ink); }
.dl-desc { color: var(--muted); font-size: 16px; line-height: 1.7; margin-top: var(--s-5); max-width: 36em; }
.dl-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 32px; background: var(--action); color: var(--action-ink);
  font-weight: 500; text-decoration: none; border-radius: 2px; transition: transform 200ms var(--ease), filter 200ms var(--ease); }
.dl-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.dl-btn:active { transform: translateY(0); }

/* 1. 첫 화면: 화면을 채우는 사진 + 흰 글씨 + 네 사업 입구 */
main > section.dl-hero { position: relative; height: 100svh; min-height: 640px; padding: 0; color: #fff; overflow: hidden; background: #3a3f47; }
.dl-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.dl-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .32) 0%, rgb(0 0 0 / .12) 22%, rgb(0 0 0 / .2) 50%, rgb(0 0 0 / .58) 100%); }
main > section.dl-hero > .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(96px, 14vh, 150px); }
.dl-hero__kicker { font: 800 clamp(20px, 1.2vw + 8px, 26px)/1.2 var(--font-text); letter-spacing: 0; color: #fff; }
.dl-hero h1 { font: 200 clamp(34px, 2.8vw + 10px, 52px)/1.3 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.03em; color: #fff; margin-top: var(--s-3); max-width: 15em; }
.dl-entries { list-style: none; padding: 0; margin-top: var(--s-8); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dl-entries a { display: grid; gap: 4px; padding: 20px 22px; background: rgb(255 255 255 / .94); color: #111418; text-decoration: none;
  border-radius: 2px; transition: transform 200ms var(--ease), background 200ms var(--ease); }
.dl-entries a strong { font-size: 18px; font-weight: 700; }
.dl-entries a span { font-size: 14px; color: #5c6370; }
.dl-entries a:hover { transform: translateY(-2px); background: #fff; }

/* 2. 번호 붙은 솔루션 블록: 왼쪽 큰 제목, 오른쪽 큰 사진 + 겹친 흰 카드 */
.dl-sol { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); align-items: start; }
.dl-sol > div:first-child { padding-top: 120px; }
.dl-sol + .dl-sol { margin-top: 160px; }
.dl-sol__count { margin-top: var(--s-6); font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dl-sol__media { position: relative; padding-bottom: 150px; }   /* 카드가 사진 아래로 내려오는 정도 (처음 180 → 60 → 110 → 지금 150) */
.dl-sol__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--p-surface); }
.dl-sol__card { position: absolute; left: 10%; right: 18%; bottom: 0; background: var(--card-bg); padding: 44px 44px 40px;
  box-shadow: 0 20px 50px rgb(17 20 24 / .08); }
.dl-sol__card h3 { font: 200 clamp(28px, 1.6vw + 12px, 38px)/1.25 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.03em; margin-top: var(--s-2); }
.dl-sol__card h3 span { color: var(--action); }
.dl-sol__card p { color: var(--muted); margin-top: var(--s-4); }
.dl-sol__card .dl-btn { margin-top: var(--s-6); }

/* 3. 사진 위 글씨 카드 (VOD·제품) */
.dl-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: var(--s-8); }
.dl-card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: #fff; text-decoration: none; background: #3a3f47; }
.dl-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.dl-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .62) 100%); }
.dl-card:hover img { transform: scale(1.03); }
.dl-card__text { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; display: grid; gap: var(--s-2); }
.dl-card__tag { font-size: 13px; font-weight: 700; opacity: .9; }
.dl-card__text strong { font-size: clamp(22px, 1vw + 12px, 28px); font-weight: 800; line-height: 1.3; }
.dl-card__text span:last-child { font-size: 15px; line-height: 1.55; opacity: .92; }

/* 4. 후기: 가운데 강조 말풍선 */
main > section.dl-review { background: var(--p-surface); text-align: center; }
main > section#care { background: var(--p-surface); }   /* 후기 섹션과 같은 바탕 */
.dl-review .dl-title { margin-inline: auto; }
.dl-review__row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 28px; align-items: center; margin-top: var(--s-8); text-align: left; }
.dl-quote { padding: 40px 44px; color: var(--muted); }
.dl-quote--main { position: relative; background: var(--action); color: var(--action-ink); border-radius: 18px; box-shadow: 0 24px 50px rgb(17 20 24 / .12); }
.dl-quote--main::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 24px; height: 24px; background: var(--action); transform: translateX(-50%) rotate(45deg); }
.dl-quote__mark { font: 800 48px/1 "Pretendard Variable", Pretendard, sans-serif; }
.dl-quote p { margin-top: var(--s-3); font-size: 16px; line-height: 1.7; }
.dl-quote__meta { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid currentColor; font-size: 14px; }
.dl-review__who { margin-top: var(--s-7); display: grid; justify-items: center; gap: var(--s-2); color: var(--muted); font-size: 14px; }
.dl-review__who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* 5. 하단 큰 사진 배너 두 칸 */
main > section.dl-banners { padding: 0; height: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.dl-banner { position: relative; display: grid; place-items: center; height: 420px; overflow: hidden; color: #fff; text-decoration: none; text-align: center; background: #3a3f47; }
.dl-banner img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.dl-banner::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .38); }
.dl-banner[href="academy.html"]::after { background: rgb(0 0 0 / .55); }   /* 연출27-1이 밝아서 Brand와 밝기 맞춤 */
.dl-banner[href="spa.html"]::after { background: rgb(0 0 0 / .2); }   /* 연출26-1 원본이 어두워서 막을 옅게 */
.dl-banner[href="vod.html"]::after { background: rgb(0 0 0 / .45); }
.dl-banner[href="vod.html"] img { object-position: 62% 50%; }   /* 두 강사가 가운데 오게 */
.dl-banner[href="products.html"]::after { background: rgb(0 0 0 / .45); }
.dl-banner[href="products.html"] img { object-position: 50% 70%; }   /* 워머와 스톤이 가운데 오게 */
.dl-banner__text { position: relative; z-index: 1; display: grid; gap: var(--s-3); }
.dl-banner__text strong { font: 200 clamp(40px, 3vw + 12px, 60px)/1.1 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.02em; }
.dl-banner__text span { font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }

/* 화이트 시안 푸터: 회색 바탕, 큰 이름 글자 없이 (달리아식 정보 푸터) */
/* 푸터 색은 모든 페이지 공통이라 site.css 로 옮김 (2026-11-24) */

@media (max-width: 1023px) {
  .dl-entries { grid-template-columns: 1fr 1fr; }
  .dl-sol { grid-template-columns: 1fr; }
  .dl-sol > div:first-child { padding-top: 0; }
  .dl-sol__media { padding-bottom: 0; }
  .dl-sol__card { position: relative; left: auto; right: auto; margin: -110px 24px 0; }
  .dl-cards { grid-template-columns: 1fr 1fr; }
  .dl-review__row { grid-template-columns: 1fr; }
  .dl-review__row .dl-quote:not(.dl-quote--main) { display: none; }
}
@media (max-width: 639px) {
  main > section.dl { padding-block: 56px 56px; min-height: 0; height: auto; }
  main > section.dl-hero > .wrap { padding-bottom: calc(64px + var(--bar, 0px)); }
  .dl-hero h1 { font-size: 30px; }
  .dl-entries { margin-top: var(--s-6); gap: 8px; }
  .dl-entries a { padding: 14px; }
  .dl-entries a strong { font-size: 16px; }
  .dl-entries a span { font-size: 13px; }
  .dl-sol + .dl-sol { margin-top: 48px; }
  .dl-sol__card { margin: -70px 12px 0; padding: 28px 24px; }
  .dl-cards { gap: 12px; }
  .dl-card__text { left: 16px; right: 16px; bottom: 16px; }
  .dl-card__text span:last-child { display: none; }
  .dl-quote { padding: 32px 28px; }
  main > section.dl-banners { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0 !important; height: auto !important; align-content: start; }
  .dl-banner { height: 220px; }
  .dl-banner__text strong { font-size: 32px; }
  .dl-banner__text span { font-size: 14px; }
}


/* ---------- 움직임 (home.js가 html.mv 를 붙였을 때만. 동작 줄이기 설정이면 붙지 않는다) ---------- */
/* 첫 화면 사진: 천천히 확대에서 제자리로 (달리아의 영상 배경 대신, 사진 한 장일 때) */
@keyframes dl-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
html.mv .dl-hero__bg { animation: dl-kenburns 14s cubic-bezier(.2,.75,.5,1) both; }
/* 첫 화면 글: 아래에서 차례로 */
@keyframes dl-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
html.mv .dl-hero__kicker { animation: dl-up 900ms cubic-bezier(.2,.75,.5,1) 200ms both; }
html.mv .dl-hero h1 { animation: dl-up 900ms cubic-bezier(.2,.75,.5,1) 380ms both; }
html.mv .dl-entries > li { animation: dl-up 800ms cubic-bezier(.2,.75,.5,1) both; }
html.mv .dl-entries > li:nth-child(1) { animation-delay: 650ms; }
html.mv .dl-entries > li:nth-child(2) { animation-delay: 750ms; }
html.mv .dl-entries > li:nth-child(3) { animation-delay: 850ms; }
html.mv .dl-entries > li:nth-child(4) { animation-delay: 950ms; }
/* 스크롤 안내: 마우스 휠 */
.dl-scroll { position: absolute; right: max(24px, calc((100vw - 1200px) / 2)); top: 50%; z-index: 1; width: 26px; height: 42px;
  border: 2px solid rgb(255 255 255 / .85); border-radius: 14px; }
.dl-scroll::before { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }
@keyframes dl-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
html.mv .dl-scroll::before { animation: dl-wheel 1.8s ease-in-out infinite; }
@media (max-width: 1023px) { .dl-scroll { display: none; } }

/* 제목: 줄 단위로 가림막 안에서 올라옴 */
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: inline-block; }
html.mv [data-lines] .ln > span { transform: translateY(105%); transition: transform 1000ms cubic-bezier(.2,.75,.5,1); }
html.mv [data-lines].is-in .ln > span, html.mv-safe [data-lines] .ln > span { transform: none; }

/* 블록·카드: 아래에서 살짝 올라오며 나타남 */
html.mv [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 900ms cubic-bezier(.2,.75,.5,1), transform 900ms cubic-bezier(.2,.75,.5,1); }
html.mv [data-reveal].is-in, html.mv-safe [data-reveal] { opacity: 1; transform: none; }

/* 대표 관리: 왼쪽 글이 사진 옆에 붙어 따라온다 (PC) */
@media (min-width: 1024px) {
  .dl-sol > div:first-child { position: sticky; top: 140px; }
}

/* 제목 자리에 쓴 라벨(Signature Care)은 시안의 얇은 제목 굵기를 따르지 않는다 */
:root h2.dl-eyebrow, :root[data-theme] h2.dl-eyebrow { font: 700 16px/1.3 var(--font-text); letter-spacing: 0; }

/* Signature Care 겹친 카드: 반투명 유리 느낌 (사진이 비쳐 보이게) */
.dl-sol__card { background: rgb(255 255 255 / .45); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / .5); }
/* 휴대폰: 대표 관리 블록의 1 / 3 · 2 / 3 · 3 / 3 번호 숨김 */
@media (max-width: 639px) { .dl-sol__count { display: none; } }
/* 휴대폰·태블릿 스파 프로그램 카드 줄: 가운데 카드 1장 + 양옆 카드가 조금씩 보이게.
   양옆 카드는 화면에 조금만 걸쳐 나타남 효과가 시작되지 않아 비어 보였으므로, 이 줄의 카드는 처음부터 보이게 한다 */
@media (max-width: 1023px) {
  html.mv .dl-track > .dl-card[data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 639px) {
  /* 손가락으로 넘기면 항상 카드 하나가 가운데에 멈추게 */
  :root .dl-track-wrap .dl-track { scroll-snap-type: x mandatory; }
  :root .dl-track-wrap .dl-track > .dl-card { scroll-snap-align: center; }
}
