/* =============================================================
   pages/index.css — 메인 페이지 전용
   파일명이 페이지명과 같으면 head.php가 자동으로 로드합니다.

   강변 저널 × 숫자 (2026-10-05)
   · 강물·모래·노을 3색. 제목·본문·숫자는 공통 고딕체로 통일한다.
   · 첫 화면에 판단 정보(상태·세대수·조건)를 모은다 — 슬라이드 자동 전환은 없앴다
     (자동 캐러셀 클릭률 1%, 클릭의 84%가 첫 장 — 노트르담대 측정, NN/g).
   ============================================================= */

.page-home main {
  --river-ink: #153f42;
  --river-deep: #102f32;
  --river-paper: #f5f1e8;
  --river-sand: #ebe4d7;
  --river-sunset: #9f4c31;   /* 글자로 쓸 때 밝은 모래색 바탕 대비 4.5 이상 (#a34e32 는 4.49, 2026-10-08 접근성) */
  --river-gold: #e5ba8a;
  --river-mist: #cfdbd8;
  --river-text: #52625e;     /* 보조 본문 — 흰 바탕 6.43 */
  --river-line: #d8d9ce;     /* 얇은 구분선 */
  --river-label: #677871;    /* 작은 라벨 — 흰 바탕 4.66 */
  --river-note: #6b7773;     /* 평형 카드 타입 — 4.65 */
  /* 기존 제목·숫자 스타일의 별칭도 공통 고딕체를 따른다. */
  --river-serif: var(--font-sans);
  --river-num: var(--font-sans);
  background: var(--river-paper);
}

.home-h2 {
  margin-top: 12px; color: var(--river-ink);
  font: 400 clamp(30px, 3.6vw, 46px)/1.35 var(--river-serif); letter-spacing: -.045em;
}
.page-home .section__eyebrow { color: var(--river-sunset); }
.home-lead { margin-top: var(--space-3); color: var(--river-text); }

/* '자세히 보기' 링크 모양은 components/button.css .link-more */

/* ── 전화·방문예약 버튼 한 쌍 ───────────────────────── */
.home-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
/* 버튼 모양·크기는 components/button.css (.btn .btn--lg). 메인 한 쌍에만 있는 그림자·떠오름만 여기 */
.home-cta .btn:hover { transform: translateY(-2px); }
.home-cta .btn--primary { box-shadow: 0 10px 24px rgba(163, 78, 50, .28); }
.home-cta .btn--outline b { letter-spacing: .02em; }

/* ── 첫 화면 ─────────────────────────────────────── */
/* 첫 화면 = 전체 화면 슬라이드 + 그 위 아래쪽에 글 (2026-11-13 영구님 지시 — 정보 띠를 없애고 글을 사진 위에
   모션으로 올림. 예전 10/6 결정 "글이 사진을 가리면 안 된다"를 바꿨다). 글 밑 사진만 어둡게 깔아 밝은 장에서도 읽힌다. */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100svh;
  margin-top: calc(var(--nav-height) * -1);
  background: var(--river-ink);
  color: var(--river-paper);
  /* clip: hidden 과 달리 스크롤 컨테이너를 만들지 않아 아래 스크롤 연동 애니메이션이 페이지 스크롤을 따른다 */
  overflow: hidden; overflow: clip; isolation: isolate;
}
/* 1024px 이하는 하단 가로 도크가 띠 아래를 덮는다 — 그 높이만큼 띠 아래를 비운다 (데스크톱은 변수 없음 → 30px) */
/* 좌우는 .container 의 1200px 가운데 정렬 대신 메뉴와 같은 --edge-gutter — 메인 문구가 모든 폭에서 로고와 한 세로선
   (1200 가운데 정렬이면 1903 폭에서 글이 367px 에서 시작해 왼쪽이 비었다 — 2026-11-19 영구님) */
.hero-grid {
  position: relative; z-index: 1; flex: none; width: 100%;
  max-width: none; padding-inline: var(--edge-gutter);
  /* 위 여백은 글이 넘칠 때만 쓰인다(글은 아래 정렬) — 48px 이면 낮은 노트북(1280×720 → 브라우저 안 1280×590)에서
     방문예약 버튼이 첫 화면 밖으로 24px 잘렸다 (2026-11-19 StatCounter 상위 화면 실측). 16px 로 줄여 들어오게 */
  padding-block: calc(var(--nav-height) + 16px) calc(var(--float-cta-height, 0px) + 40px);
  display: flex; flex-direction: column; gap: 18px;
}
.hero-copy { position: relative; min-width: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 2px 18px rgba(0, 0, 0, .35); }
/* 글 덩어리 뒤에만 옅은 그늘 — 사진 전체를 어둡게 하지 않고(10/6 "어둡다") 위쪽 작은 글자(상태·단지명)가
   밝은 하늘·건물 위에서 읽히게 한다. 대비 실측 1.5~2.0:1 → 4.5:1 이상 목표 (2026-11-14 가독성) */
.hero-copy::before {
  content: ""; position: absolute; inset: -30% -22% -14% -26%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 28, 31, .66), rgba(8, 28, 31, .58) 35%, rgba(8, 28, 31, .4) 60%, rgba(8, 28, 31, .16) 82%, rgba(8, 28, 31, 0));   /* 가장자리 선이 보이지 않게 단계적으로 */
  animation: hero-fade .8s ease both;
}

/* 슬라이드 — engle.co.kr 메인과 같은 전환(2초 교차 페이드 + 1.1배에서 제자리로 줌). 첫 화면 전체를 채운다. */
.hero-slides { position: absolute; inset: 0; overflow: hidden; background: var(--river-ink); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.1);
  transition: opacity 2s cubic-bezier(.42, 0, .58, 1), transform 2.5s cubic-bezier(.42, 0, .58, 1);
}
.hero-slide.is-active { opacity: 1; transform: none; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
/* 위: 메뉴 글자용 옅은 띠 · 아래·왼쪽: 글 밑만 어둡게 */
.hero-slides::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 30, 34, .35) 0%, transparent 16%),
    linear-gradient(0deg, rgba(10, 34, 37, .9) 0%, rgba(10, 34, 37, .62) 30%, rgba(10, 34, 37, 0) 62%),
    linear-gradient(90deg, rgba(10, 34, 37, .55) 0%, rgba(10, 34, 37, 0) 55%);
}
/* 슬라이드 멈춤 버튼 — hero-slides.js 가 돌 때만 생긴다. 글이 왼쪽 아래에 있어 오른쪽 위(메뉴 아래)에 작게 (2026-10-08 접근성 점검) */
.hero-pause {
  position: absolute; z-index: 2; right: var(--page-gutter); top: calc(var(--nav-height) + 14px);
  display: grid; place-items: center;
  width: var(--tap-min); height: var(--tap-min); border-radius: 50%;
  background: rgba(8, 30, 34, .55); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  transition: background var(--transition);
}
.hero-pause:hover { background: rgba(8, 30, 34, .8); }

/* 데스크톱 — 글은 왼쪽 아래 한 줄기(최대 640px), CG 안내는 오른쪽 아래 */
@media (min-width: 769px) {
  .hero-grid { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .hero-copy { flex: 0 1 640px; }
  .hero-note { flex: 0 1 360px; text-align: right; }
}
/* 오른쪽 끝 세로 탭이 안내 글 오른쪽에 걸칠 수 있다 — 그 밑으로 들어가지 않게 비운다.
   (1025×700 처럼 좁고 낮은 화면에서 탭과 겹친다 — 2026-10-09 감사 실측)
   화면 오른쪽 끝에서 안내 글까지: 좁은 PC 208px → 넓을수록 줄어 탭 폭 + 24px(80px)에서 멈춘다. 폭 경계에서 튀지 않게 한 식 */
@media (min-width: 1025px) {
  .hero-note { margin-right: calc(max(var(--float-tab-w) + var(--space-5), min(208px, 808px - 50vw)) - var(--edge-gutter)); }
}

.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border: 1px solid rgba(229, 186, 138, .6); border-radius: var(--radius-pill);
  background: rgba(10, 32, 35, .68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);   /* .35 였을 때 밝은 하늘 위 1.5:1 (2026-11-14) */
  color: var(--river-gold); font-size: 14px; font-weight: var(--fw-bold); letter-spacing: .02em; text-shadow: none;
}
.hero-status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--river-gold); }
.hero-status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--river-gold); animation: status-pulse 2.4s ease-out infinite;
}
@keyframes status-pulse { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }

/* h1 이지만 작은 단지명 줄로 보인다 — base.css 의 h1 굵기·줄간격을 되돌린다 */
.hero-name { margin-top: 14px; font-size: 15px; font-weight: var(--fw-medium); line-height: var(--lh-body); letter-spacing: .04em; color: #fff; }
.hero-title {
  position: relative; width: fit-content; max-width: 100%;
  margin-top: 8px; margin-bottom: .6em;   /* 둘째 줄 아래 물그림자 자리 — 요약 글과 겹치지 않게(.5em 이면 PC 에서 8px 걸침, 11-15 실측) */
  font: 400 clamp(40px, 5vw, 72px)/1.1 var(--river-serif); letter-spacing: -.05em; color: #fff;   /* 1.22 → 1.1 (11-17 영구님): PC 1280×720 에서 글 묶음이 사진 위 1/4 안으로 올라가던 것 */
}
.hero-line { position: relative; display: block; }
.hero-summary { margin-top: 14px; color: #e6eeec; font-size: var(--fs-body); font-weight: var(--fw-medium); }

.hero-terms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-terms li {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: none;
  font-size: var(--fs-small); font-weight: var(--fw-bold); color: #fff;
}
.hero-terms small { font-size: var(--fs-caption); font-weight: var(--fw-normal); color: var(--river-mist); }

.hero .home-cta { margin-top: 22px; text-shadow: none; }
.hero-note { margin-block: 0; font-size: 12px;   /* margin: 0 이면 위 1025·1280 규칙의 margin-right 를 덮는다 (11-19 실측) */ line-height: 1.5; color: var(--river-mist); opacity: .85; }
.hero .btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(13, 36, 38, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .btn--outline:hover { background: rgba(255, 255, 255, .08); }

@media (max-width: 768px) {
  /* 모바일 글은 사진 아래쪽에 세로로 쌓고, 하단 고정 도크 위에서 끝난다. 글 밑은 더 짙게 */
  .hero-slides::after {
    background:
      linear-gradient(180deg, rgba(8, 30, 34, .35) 0%, transparent 16%),
      linear-gradient(0deg, rgba(10, 34, 37, .94) 0%, rgba(10, 34, 37, .75) 38%, rgba(10, 34, 37, 0) 70%);
  }
  .hero-grid { gap: 14px; padding-block: calc(var(--nav-height) + 40px) calc(var(--float-cta-height, 0px) + 18px); }   /* --float-cta-height 에 홈 표시줄 여백이 이미 들어 있다 — 또 더하면 두 번 (2026-10-09 감사 5-3) */
  /* 휴대폰 상태 배지 — 뒤 건물 창 불빛이 비쳐 글자가 지저분했다 → 바탕을 거의 불투명하게, 글자 14px.
     세로 가운데는 줄 상자가 아니라 실제 글자 픽셀로 맞췄다 — Noto Sans KR 은 글자가 줄 상자 아래쪽에 그려져
     위아래 여백을 같게 두면 1.9px 내려앉는다. 위 9px·아래 11px 에서 글자 위아래 여백 11.4/11.8px (2026-11-14 실측) */
  .hero-status { font-size: 14px; line-height: 1; padding-block: 9px 11px; background: rgba(10, 32, 35, .86); letter-spacing: .01em; }
  .hero-status__dot { top: 1px; }   /* 위 여백이 2px 적어 점이 1px 떠오른다 — 배지 가운데로 */
  .hero-name { margin-top: 10px; font-size: 13px; }
  .hero-title { font-size: clamp(34px, 10.5vw, 46px); }
  .hero-summary { margin-top: 10px; font-size: var(--fs-small); }
  .hero-terms { margin-top: 14px; gap: 6px; }
  .hero-note { font-size: 11px; }
  .hero-terms li { padding: 7px 12px; font-size: 14px; }
  /* 모바일은 하단 고정 도크가 같은 두 버튼을 늘 보여준다 — 첫 화면은 사진에 양보 */
  .hero .home-cta { display: none; }
}

/* ── 숫자 띠 ─────────────────────────────────────── */
.home-figures { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); background: var(--river-paper); }
.home-figures__list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--river-ink); }
.home-figures__list > div { padding: 22px 20px 4px 0; }
.home-figures__list > div + div { padding-left: 24px; border-left: 1px solid var(--river-line); }
.home-figures__list dt { font-size: 13px; font-weight: var(--fw-bold); letter-spacing: .04em; color: var(--river-text); }
.home-figures__list dd { margin-top: 8px; color: var(--river-ink); font-size: var(--fs-small); font-weight: var(--fw-bold); }
.home-figures__list strong {
  margin-right: 4px; font: 400 clamp(40px, 5vw, 66px)/1 var(--river-num); letter-spacing: -.03em; color: var(--river-ink);
}
.home-figures__list small { margin-right: 4px; font-size: var(--fs-caption); color: var(--river-text); }
.home-figures__note { margin-top: 28px; font-size: var(--fs-caption); color: var(--color-text-muted); }
.home-figures__note a {
  display: inline-flex; align-items: center; min-height: var(--tap-min); margin-left: 4px;
  font-weight: var(--fw-bold); color: var(--river-sunset); text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 768px) {
  .home-figures__list { grid-template-columns: 1fr 1fr; }
  .home-figures__list > div { padding: 18px 12px 16px 0; border-bottom: 1px solid var(--river-line); }
  .home-figures__list > div + div { padding-left: 0; border-left: 0; }
  .home-figures__list > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--river-line); }
  .home-figures__list strong { font-size: clamp(34px, 10vw, 44px); }
}

/* ── 입지 ───────────────────────────────────────── */
.home-location { padding: clamp(56px, 8vw, 112px) 0; background: #fff; }
.home-location__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.home-location__rail { min-width: 0; padding: clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 28px) 20px; background: #fff; }
.home-rail__title { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin: 0 0 28px; font: 800 clamp(24px, 3.5vw, 42px)/1.45 var(--font-sans); letter-spacing: -.045em; text-align: center; }
.home-rail__title > span { color: #9261a4; white-space: nowrap; }
.home-rail__title b { display: inline-block; padding: 0 8px; border-radius: 5px; color: #fff; background: #9261a4; font-weight: inherit; }
.home-rail__title strong { color: #005357; font-weight: inherit; white-space: nowrap; }
.home-rail__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #9261a4 #e3dce7; }
.home-rail__scroll:focus-visible { outline: 2px solid #005357; outline-offset: 4px; }
.home-rail__scroll picture { display: block; min-width: 1050px; }
.home-rail__scroll img { display: block; width: 100%; height: auto; }
.home-rail__hint { margin: 0 0 10px; color: #66556e; font-size: 12px; text-align: right; }
.home-rail__note { margin: 14px 0 0; color: #62666a; font-size: 12px; line-height: 1.7; }
@media (min-width: 1200px) { .home-rail__hint { display: none; } }
.home-location__map { overflow: hidden; border-radius: 120px 4px 4px 4px; background: var(--river-sand); }
.home-location__map img { width: 100%; height: auto; }
.home-points { margin-top: 32px; border-top: 1px solid var(--river-ink); counter-reset: none; }
.home-points li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--river-line); }
.home-points__no { font: italic 28px/1.1 var(--river-num); color: var(--river-sunset); }
.home-points h3 { font-size: 17px; color: var(--river-ink); }
.home-points h3 span { margin-left: 6px; font-size: 11px; font-weight: var(--fw-normal); letter-spacing: .14em; text-transform: uppercase; color: var(--river-label); }   /* 흰 바탕 대비 4.66 (#97a6a0 은 2.54) */
.home-points p { margin-top: 6px; font-size: var(--fs-small); line-height: 1.8; color: var(--river-text); }
.home-location .link-more { margin-top: 24px; }
/* PC — 제목(+자세히 보기) / 지도 전체 폭 / 포인트 2×2. 지도를 반 칸에 두면 541px 로 줄어 글씨를 못 읽고
   오른쪽 글(827px)과 높이가 안 맞아 위아래가 비었다 (2026-10-15 운영자 B안 승인). HTML 순서는 모바일 그대로 */
@media (min-width: 769px) {
  .home-location__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head more" "rail rail" "map map" "points points";
    align-items: end; gap: 0 32px;
  }
  .home-location__body { display: contents; }
  .home-location__body > .reveal { grid-area: head; }
  .home-location .link-more { grid-area: more; margin: 0 0 6px; }
  .home-location__rail { grid-area: rail; margin-top: 36px; }
  .home-location__map { grid-area: map; margin-top: 20px; }
  .home-points { grid-area: points; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); margin-top: 40px; }
  .home-points li { padding: 24px 0; }
}
@media (max-width: 768px) {
  .home-location__map { border-top-left-radius: 64px; }
  .home-location__body { order: -1; }
  .home-points li { grid-template-columns: 40px minmax(0, 1fr); }
}

/* ── 교통 가치 ───────────────────────────────────── */
/* 숫자 띠와 흰 입지 사이(11/17 입지 위로 옮김)에 짙은 강물색 띠 — 숫자 띠와 같은 틀(가는 줄·큰 숫자)에 금빛 숫자 (2026-11-17) */
.home-value { padding: clamp(56px, 8vw, 112px) 0; background: var(--river-deep); color: #fff; }
.home-value .section__eyebrow { color: var(--river-gold); }
.home-value .home-h2 { color: #fff; }
.home-value .home-lead { color: rgba(255, 255, 255, .78); }
.home-value__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(229, 186, 138, .6);
}
.home-value__list > div { padding: 24px 20px 8px 0; }
.home-value__list > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.home-value__list dt { font-size: var(--fs-small); font-weight: var(--fw-bold); color: rgba(255, 255, 255, .86); }
.home-value__num { margin-top: 10px; color: var(--river-gold); font-size: var(--fs-small); font-weight: var(--fw-bold); white-space: nowrap; }
.home-value__num strong { margin-right: 3px; font: 400 clamp(34px, 3.2vw, 46px)/1 var(--river-num); letter-spacing: -.03em; }
.home-value__num small { margin-right: 4px; font-size: var(--fs-caption); }
.home-value__num sup { margin-left: 3px; font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .6); }
.home-value__desc { margin-top: 10px; font-size: var(--fs-caption); line-height: 1.6; color: rgba(255, 255, 255, .72); }
/* 김포아라 지구 지도 블록 (2026-11-20) — 마무리·버튼·출처 아래 (영구님 "지도 위에 있어야 함") */
.home-belt { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, .14); }
.home-belt__title { font: 700 clamp(22px, 2.4vw, 30px)/1.4 var(--river-serif); letter-spacing: -.03em; color: #fff; }
.home-belt__lead { max-width: 760px; margin-top: 12px; font-size: var(--fs-small); line-height: 1.75; color: rgba(255, 255, 255, .78); }
.home-belt__lead b { color: var(--river-gold); font-weight: var(--fw-bold); }
.home-belt__fig { max-width: 960px; margin: 24px 0 0; }
.home-belt__map { display: block; overflow: hidden; border-radius: 6px; background: #f2f1ec; }
.home-belt__map img { display: block; width: 100%; height: auto; }
.home-belt__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; padding: 0; list-style: none; font-size: var(--fs-caption); color: rgba(255, 255, 255, .86); }
.home-belt__legend li { display: flex; align-items: center; gap: 8px; }
.home-belt__legend i { flex: none; display: inline-block; width: 18px; height: 12px; border-radius: 2px; }
.home-belt__legend .is-site { width: 12px; border-radius: 50%; background: var(--river-gold); }
.home-belt__legend .is-zone { background: rgba(212, 84, 43, .45); border: 2px dashed #e06a3f; }
.home-belt__legend .is-l5 { height: 0; border-top: 4px dashed #b57fd6; border-radius: 0; }
.home-belt__legend .is-l2 { height: 0; border-top: 4px dashed #f0953f; border-radius: 0; }
.home-belt__note { margin-top: 10px; font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.home-belt__msg { margin-top: 20px; font: 400 clamp(18px, 2vw, 24px)/1.5 var(--river-serif); letter-spacing: -.03em; color: #fff; }
.home-belt__first { max-width: 760px; margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--river-gold); background: rgba(255, 255, 255, .06); font-size: var(--fs-small); line-height: 1.7; color: rgba(255, 255, 255, .9); }
.home-belt__first b { color: var(--river-gold); font-weight: var(--fw-bold); }
.home-belt__src { margin-top: 8px; font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.home-value__close { margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.home-value__stage { margin: 0 0 24px; font-size: var(--fs-small); color: rgba(255, 255, 255, .78); }
.home-value__stage b { color: var(--river-gold); }
.home-value__msg { margin: 0 0 8px; font: 400 clamp(20px, 2.2vw, 28px)/1.5 var(--river-serif); letter-spacing: -.03em; color: #fff; }
/* 어두운 띠 위 전화 버튼 — 기본 테두리(강물색)는 배경에 묻힌다 */
.home-value .home-cta .btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.home-value .home-cta .btn--outline:hover { background: rgba(255, 255, 255, .1); }
.home-value .home-cta .btn--primary { box-shadow: none; }
/* 근거 글 링크(/news-station-value) — 기본 .link-more 는 짙은 글자라 띠 위에서 안 보인다 */
.home-value .link-more { margin-top: 20px; color: #fff; border-bottom-color: rgba(255, 255, 255, .55); }
.home-value__src { margin-top: 32px; font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.home-value__src ol { margin: 6px 0 0; padding-left: 1.4em; list-style: decimal; }
@media (max-width: 1100px) {
  .home-value__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-value__list > div { padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .home-value__list > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .home-value__close { border-top: 0; padding-top: 0; }   /* 2칸·1칸일 때는 칸마다 아래 줄이 있어 겹친다 */
}
@media (max-width: 768px) {
  .home-value__list { grid-template-columns: 1fr; }
  .home-value__list > div, .home-value__list > div + div { padding: 20px 0; border-left: 0; }
  .home-value__num strong { font-size: clamp(36px, 11vw, 44px); }
  .home-value .home-cta { display: grid; grid-template-columns: 1fr; }
}

/* ── 평형 ───────────────────────────────────────── */
.home-units { padding: clamp(56px, 8vw, 112px) 0; background: var(--river-sand); }
.home-units__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.home-unit {
  position: relative; padding: 26px 24px 24px; border-radius: 4px 4px 48px 4px;
  background: #fff; border: 1px solid #ddd5c4;
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-unit:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(21, 63, 66, .10); }
.home-unit__size { display: flex; align-items: baseline; gap: 4px; color: var(--river-ink); font-size: 18px; }
.home-unit__size span { margin-right: 6px; font-size: 12px; letter-spacing: .08em; color: var(--river-label); }
.home-unit__size strong { font: 400 clamp(52px, 6vw, 76px)/1 var(--river-num); letter-spacing: -.04em; }
.home-unit:last-child .home-unit__size strong { color: var(--river-sunset); }
.home-unit__meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e3ddd0; font-weight: var(--fw-bold); color: var(--river-ink); font-size: var(--fs-small); }
.home-unit__types { margin-top: 4px; font-size: var(--fs-caption); letter-spacing: .03em; color: var(--river-note); }   /* 대비 4.65 (#7a8783 은 3.74) */
.home-units__more { margin-top: 20px; }   /* 평면도 링크는 카드 바로 아래 — 실내 둘러보기가 사이에 들어와서 (2026-11-15) */
.home-units__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 32px; }
@media (max-width: 1024px) { .home-units__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .home-units__list { gap: 10px; margin-top: 24px; }
  .home-unit { padding: 18px 16px 16px; border-bottom-right-radius: 32px; }
  .home-unit__size strong { font-size: clamp(42px, 12vw, 54px); }
  .home-unit__meta { margin-top: 12px; padding-top: 10px; font-size: 14px; }
  .home-units__foot { flex-direction: column; align-items: stretch; }
  .home-units .home-cta { display: grid; grid-template-columns: 1fr; }
}
/* 320px 대 — 숫자 42px 최소값에서 "전용 106㎡"가 카드 폭을 넘어 문서가 가로로 밀렸다 (2026-10-17 감사 M8, WCAG 1.4.10) */
@media (max-width: 359px) {
  .home-unit { padding-inline: 12px; }
  .home-unit__size strong { font-size: 36px; }
}

/* ── 평형 > 실내 둘러보기 (2026-11-15) ──────────────
   세로 합성컷이 4:5 액자 안에서 위→아래로 흐른다. 움직임은 transform 만 써서 휴대폰에서도 끊기지 않게.
   .is-live(움직임 켬)·.is-paused(멈춤 버튼·화면 밖)는 home-interior.js 가 붙인다. */
.home-interior {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  grid-template-areas: ". stage" "head stage" "tabs stage" "links stage" "note stage" ". stage";
  grid-template-rows: 1fr auto auto auto auto 1fr;   /* 글 묶음을 사진 높이 가운데에 */
  column-gap: clamp(32px, 6vw, 88px); align-items: start;
  margin-top: clamp(56px, 8vw, 96px);
}
.home-interior__head { grid-area: head; }
.home-interior__title { margin-top: 16px; font: 400 clamp(26px, 3vw, 38px)/1.45 var(--river-serif); letter-spacing: -.04em; color: var(--river-ink); }
.home-interior__desc { margin-top: var(--space-3); color: var(--river-text); }
.home-interior__stage { grid-area: stage; position: relative; }
.home-interior__frame {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 4px 4px 48px 4px; background: var(--river-paper);
}
.home-interior__frame:not([hidden]) { animation: hi-fade .6s ease both; }
.home-interior__frame picture, .home-interior__frame img { display: block; width: 100%; height: auto; }
.home-interior__frame img { will-change: transform; }
.home-interior__label {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(16, 47, 50, .78); color: #fff; font-size: 14px; font-weight: var(--fw-bold); letter-spacing: -.01em;
}
.home-interior__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .45); visibility: hidden; }
.home-interior__bar span { display: block; height: 100%; background: var(--river-gold); transform: scaleX(0); transform-origin: left; }
.home-interior__toggle {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  display: grid; place-items: center; width: var(--tap-min); height: var(--tap-min);
  border: 0; border-radius: 50%; background: rgba(16, 47, 50, .78); color: #fff; cursor: pointer;
}
.home-interior__toggle[hidden] { display: none; }   /* display: grid 가 hidden 속성을 이기지 않게 */
.home-interior__toggle:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.home-interior__icon-play, .is-paused .home-interior__icon-pause { display: none; }
.is-paused .home-interior__icon-play { display: block; }
.home-interior__tabs { grid-area: tabs; margin: var(--space-5) 0 0; }
.home-interior__links { grid-area: links; display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: var(--space-4); }
.home-interior__note { grid-area: note; margin-top: var(--space-4); font-size: var(--fs-caption); color: var(--river-note); }

.is-live .home-interior__bar { visibility: visible; }
.is-live .home-interior__frame img { animation: hi-pan 20s cubic-bezier(.45, 0, .55, 1) both; }
.is-live .home-interior__bar span { animation: hi-bar 20s linear both; }
.is-paused .home-interior__frame img, .is-paused .home-interior__bar span { animation-play-state: paused; }
@keyframes hi-pan { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(var(--pan, 0)); } }
@keyframes hi-bar { to { transform: scaleX(1); } }
@keyframes hi-fade { from { opacity: 0; } }

@media (max-width: 768px) {
  .home-interior { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "tabs" "links" "note"; grid-template-rows: none; }
  .home-interior__stage { margin-top: var(--space-5); }
  .home-interior__frame { border-bottom-right-radius: 32px; }
  .home-interior__tabs { margin-top: var(--space-4); }
  .home-interior__links { flex-direction: column; align-items: flex-start; gap: 0; margin-top: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  .home-interior__frame, .home-interior__frame img, .home-interior__bar span { animation: none !important; }
  .home-interior__bar, .home-interior__toggle { display: none; }
}

/* ── 한강의 하루: 이미지와 문장이 교차하는 세 장면 ── */
.river-stories { padding-block: clamp(64px, 9vw, 128px); scroll-margin-top: 16px; }   /* html scroll-padding-top(헤더+8px)에 더해져 헤더+24px — 예전과 같은 자리 */
.river-stories .section__head { text-align: left; margin-bottom: 64px; }
.river-stories .section__eyebrow { color: var(--river-sunset); }
.river-stories .section__title { color: var(--river-ink); font: 400 clamp(36px, 5vw, 64px)/1.35 var(--river-serif); letter-spacing: -.045em; margin-top: 20px; }
.river-stories .section__title em { font-style: normal; color: var(--river-sunset); }
.river-stories .section__desc { margin-top: 24px; }
.river-stories__list { display: grid; gap: clamp(56px, 8vw, 108px); }
.home-feature { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.home-feature:nth-child(2) { grid-template-columns: 1fr 1.4fr; }
.home-feature:nth-child(2) .feature__img { grid-column: 2; grid-row: 1; }
.home-feature:nth-child(2) .card__body { grid-column: 1; grid-row: 1; }
.home-feature .feature__img { overflow: hidden; }
.home-feature .feature__img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s ease; }
/* 실내체육관 CG는 568×300 원본을 넘겨 확대하거나 잘라내지 않는다. */
.home-feature:last-child .feature__img { width: 100%; max-width: 568px; }
.home-feature:last-child .feature__img img { aspect-ratio: auto; }
.home-feature:first-child .feature__img { border-top-right-radius: 100px; }
.home-feature:nth-child(2) .feature__img { border-bottom-left-radius: 100px; }
.home-feature .card__body { display: flex; flex-direction: column; align-items: flex-start; padding: 0; min-width: 0; }
.river-scene { color: var(--river-sunset); font-size: 11px; letter-spacing: .07em; display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.river-scene span { font: italic 36px/1 var(--font-sans); letter-spacing: -.04em; }
.home-feature .card__title { font: 400 clamp(25px, 2.5vw, 34px)/1.5 var(--river-serif); color: var(--river-ink); letter-spacing: -.04em; }
.home-feature .card__text { margin-top: 20px; color: var(--river-text); line-height: 1.95; }
.home-feature .link-more { align-self: flex-start; margin-top: 24px; }
.river-stories .notes { margin-top: 48px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-feature:not(:last-child):hover .feature__img img { transform: scale(1.025); }
}
@media (max-width: 768px) {
  .river-stories .section__head { margin-bottom: 36px; }
  .home-feature, .home-feature:nth-child(2) { grid-template-columns: 1fr; gap: 24px; }
  .home-feature:nth-child(2) .feature__img, .home-feature:nth-child(2) .card__body { grid-column: auto; grid-row: auto; }
  .home-feature:first-child .feature__img { border-top-right-radius: 64px; }
  .home-feature:nth-child(2) .feature__img { border-bottom-left-radius: 64px; }
  .river-scene { margin-bottom: 12px; }
}

/* ── 스크롤 진입 애니메이션 (2026-10-05) ───────────── */
/* IntersectionObserver(main.js)가 화면에 들어온 .reveal 에 .is-in 을 붙인다 — 한 번만.
   흐림이 걷히며 떠오르고, 같은 목록 안에서는 --i 순서대로 90ms씩 늦게 나온다.
   스크롤을 가로채지 않는다: 넘기는 속도·위치는 방문자 손에 그대로 둔다.
   JS가 실패해도 콘텐츠가 보이도록 no-js 폴백을 둔다.
   no-js 는 head 에서 일찍 떼므로, bundle.js 가 못 오거나 main.js 가 등장 효과 준비 전에 멈추면
   .reveal 이 투명한 채 남는다(평형·견본주택의 예약·전화 버튼 포함). 그때는 index.php 가
   <html>에 reveal-off 를 붙여 전부 보이게 한다 (2026-10-08 품질 분석 #1). */
.reveal {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1), filter .9s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.no-js .reveal, .reveal-off .reveal { opacity: 1; transform: none; filter: none; }
.reveal-off .reveal, .reveal-off .reveal--img img { transition: none; }   /* 안전장치는 서서히가 아니라 즉시 보인다 */

/* 이미지는 아래에서 위로 열리며 살짝 줌아웃된다 */
.reveal--img img {
  clip-path: inset(18% 0 0 0); transform: scale(1.08);
  transition: clip-path 1.2s cubic-bezier(.22, 1, .36, 1), transform 1.6s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-in.reveal--img img, .reveal.is-in .reveal--img img { clip-path: inset(0); transform: none; }
.no-js .reveal--img img, .reveal-off .reveal--img img { clip-path: none; transform: none; }
/* 위치도는 상자 자체가 떠오르지 않고 그림만 열린다 */
.home-location__map.reveal { transform: none; filter: none; }

/* 첫 화면 모션 "물그림자" (2026-11-15 영구님 승인) — CSS 만, 더 받는 파일 없음. 첫 슬라이드(LCP)는 늦추지 않는다.
   경쟁 사이트와 겹치지 않게 골랐다(11-15 실측): 공식·prugio-hangang 은 글자 단위로 왼쪽에서 밀며 등장,
   hangang-riverfront 는 금색 가로선 → 우리는 글자 단위·미끄러짐·가로선을 쓰지 않는다.
   낱말이 0.25초 간격으로 제자리에서 흐림이 걷히며 나타나고, "한강을 누리다." 아래에 옅은 물그림자가 생겨
   한 번 일렁이다 잔잔해진다. 물그림자 위로 금빛 물결 한 번, "한강"·"한강을"에 윤슬. 이어 상태·단지명 → 요약 → 조건 → 버튼 → CG 안내.
   ※ 낱말 애니메이션은 backwards 채움 — 끝나면 흐림이 남지 않는다
   ※ 순서 (2026-11-17 영구님 "메인멘트 끝나기도 전에 서브멘트가 올라옴"): 메인 모션(낱말·윤슬·물그림자·물결)이 3.2초에 모두 끝나고
     (같은 날 "조금 늦게" → 0.5초 더) 3.8초부터 상태·단지명 → 요약 → 조건 → 버튼 → CG 안내. 메인 시간을 늘리면 아래 서브 지연도 같이 늦춘다
   ※ 마지막 장면 "누리다. 점화" (2026-11-17 영구님 "마지막 액션이 더 강했으면"): 2.15초에 "누리다."가 금빛으로 번지며 1.06배로
     커졌다 흰 글자로 돌아오고, 같은 때 물그림자가 잠깐 진해지며 그 아래로 금빛 물결 두 겹이 퍼진다(3.2초 끝) */
/* 줄 단위 순서 (2026-11-18 영구님 A안): "프리미엄 한강"이 먼저 또렷해진 뒤(1.25초) "한강을 누리다."가 1.2초부터 나온다.
   흐림 걷힘 1.3→0.9초로 줄여 끝 시각(3.2초)과 서브·버튼 시각은 그대로
   (같은 날 "메인멘트 부드럽게") 흐림 걷힘 0.9→1.2초·흐림 10→5px(휴대폰 끊김 줄임)·곡선을 고르게, "누리다." 점화·물결 2.15→2.5초(글씨가 또렷해진 뒤), 끝 3.55초 */
.hero-word { position: relative; display: inline-block; --d: calc(.2s + var(--w) * .15s); animation: hero-focus 1.2s cubic-bezier(.33, 1, .68, 1) var(--d) backwards; }
.hero-line--reflect .hero-word { --d: calc(1.2s + (var(--w) - 2) * .15s); }
.hero-word.is-river {
  animation: hero-focus 1.2s cubic-bezier(.33, 1, .68, 1) var(--d) backwards,
             hero-glint 1.4s cubic-bezier(.45, 0, .55, 1) calc(var(--d) + .6s) both;
}
/* 마지막 낱말 "누리다." 점화 — 아래 .ev-lock 규칙과 우선순위가 같으므로 반드시 그보다 앞에 둔다 */
.hero-line--reflect .hero-word:last-child {
  transform-origin: 50% 60%;
  animation: hero-focus 1.2s cubic-bezier(.33, 1, .68, 1) var(--d) backwards,
             hero-ignite 1.05s cubic-bezier(.3, 0, .2, 1) 2.5s both;
}
/* 물그림자 — 둘째 줄을 뒤집어 아래로 눌러 그리고 아래로 갈수록 사라지게 */
.hero-line--reflect::before {
  content: attr(data-reflect); position: absolute; left: 0; top: 100%; margin-top: .02em;   /* 줄 간격 1.1 에서 글자↔물그림자 거리를 1.22 때(-.08em)와 같게 */ white-space: nowrap; pointer-events: none;
  transform: scaleY(-.72); transform-origin: 50% 0; opacity: .32; filter: blur(.6px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 70%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 70%);
  animation: hero-reflect-in 1.1s ease 1.5s backwards, hero-wobble 1.7s cubic-bezier(.37, 0, .63, 1) 1.5s both,   /* 둘째 줄이 나온 뒤(1.5초)에 생기고 3.2초에 잔잔해진다 (11/18) */
             hero-reflect-flash .95s ease 2.6s both;
}
/* "누리다." 아래 금빛 물결 두 겹 — 바깥 고리는 테두리, 안쪽 고리는 배경 그라데이션 */
.hero-line--reflect::after {
  content: ""; position: absolute; left: 3.45em; top: calc(100% + .3em); width: 1.6em; height: .26em; pointer-events: none;
  border: 1.5px solid rgba(229, 186, 138, .95); border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, transparent 52%, rgba(241, 211, 160, .75) 58%, transparent 66%);
  animation: hero-ripple 1.05s cubic-bezier(.15, .7, .3, 1) 2.5s both;
}
.hero-status, .hero-name { animation: hero-fade .8s ease 3.8s both; }
.hero-summary { animation: hero-rise .8s ease 3.85s both; }
.hero-terms li { animation: hero-rise .7s ease 4s both; }
.hero-terms li:nth-child(2) { animation-delay: 4.1s; }
.hero-terms li:nth-child(3) { animation-delay: 4.2s; }
.hero-terms li:nth-child(n+4) { animation-delay: 4.3s; }
.hero .home-cta { animation: hero-rise .8s ease 4.35s both; }
.hero-note { animation: hero-fade 1s ease 4.5s both; }
/* 이벤트 창(includes/event-sheet.php)이 0.4초 뒤 모달로 뜬다 — 열려 있는 동안은 글을 숨겨 두고, 닫으면 모션을 처음부터
   다시 재생해 "프리미엄"부터 튀어 들어오게 한다 (2026-11-14 영구님. 11/13 엔 멈췄다 이어서 → 닫을 때 첫 낱말이 이미 반쯤 들어와 있었다).
   창이 열리면 html 에 .ev-lock 이 붙고, 닫힘·Esc 에서 빠진다. animation 을 껐다 다시 붙이면 브라우저가 처음부터 재생한다.
   .ev-hold 는 창이 뜨기 전 0.4초 — 그 사이 글이 나왔다 사라지지 않게 들어올 때부터 숨긴다 (2026-11-22 영구님) */
:is(.ev-lock, .ev-hold) :is(.hero-status, .hero-name, .hero-word, .hero-word.is-river, .hero-summary, .hero-terms li, .hero .home-cta, .hero-note),
:is(.ev-lock, .ev-hold) .hero-line--reflect::before, :is(.ev-lock, .ev-hold) .hero-line--reflect::after, :is(.ev-lock, .ev-hold) .hero-copy::before {
  animation: none; opacity: 0;
}
@keyframes hero-fade { from { opacity: 0; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes hero-focus { 0% { opacity: 0; filter: blur(5px); } 100% { opacity: 1; filter: blur(0); } }
@keyframes hero-reflect-in { from { opacity: 0; } }
@keyframes hero-wobble {
  20% { transform: scaleY(-.72) skewX(-7deg) scaleX(1.02); }
  45% { transform: scaleY(-.72) skewX(5deg) scaleX(.99); }
  70% { transform: scaleY(-.72) skewX(-2deg); }
}
@keyframes hero-glint { 50% { color: #f1d3a0; text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 0 26px rgba(229, 186, 138, .8); } }
@keyframes hero-ripple { 0% { opacity: 0; transform: scale(.2); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(3.4, 2.6); } }
@keyframes hero-ignite {
  32% { color: #f6dcaa; transform: scale(1.06); text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 0 16px rgba(246, 220, 170, .95), 0 0 44px rgba(229, 186, 138, .75); }
  100% { transform: none; }
}
@keyframes hero-reflect-flash { 35% { opacity: .6; } }

/* 스크롤하면 첫 화면이 깊이감 있게 물러난다 — 스크롤 연동 애니메이션을 지원하는 브라우저만
   (Chrome 115+·Safari 26+). 미지원 브라우저는 효과 없이 그대로 보인다. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-grid { animation: hero-recede linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes hero-recede { to { opacity: .25; transform: translateY(-6%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .reveal--img img { clip-path: none; transform: none; transition: none; }
  .hero-copy > *, .hero-word, .hero-terms li, .hero-note, .hero-line--reflect::before { animation: none !important; }
  .hero-line--reflect::after { display: none; }
  .hero-slide { transform: none; transition: none; }
  .home-feature .feature__img img { transition: none; }
}

/* ── 홍보영상 ──────────────────────────────────────── */
.promotion-video { padding: clamp(56px, 8vw, 112px) 0; background: var(--river-deep); color: var(--river-paper); }
.promotion-video__head { text-align: left; }
.promotion-video__head .section__eyebrow { color: #e5ba8a; }
.promotion-video__title { margin-top: 20px; font: 400 clamp(28px, 3.5vw, 44px)/1.5 var(--river-serif); letter-spacing: -.04em; }
.promotion-video__desc { margin-top: var(--space-3); color: rgba(255, 255, 255, .78); }
.promotion-video__frame {
  max-width: 1120px; margin: var(--space-7) auto 0;
  overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 0;
  background: #000;
}
/* 유튜브 썸네일 파사드 — 누르면 같은 자리에 iframe 이 들어온다 (16:9 고정이라 바뀔 때 화면이 밀리지 않는다) */
.yt-facade, .promotion-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.yt-facade__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .12); transition: background var(--transition);
}
.yt-facade__play svg { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35)); transition: transform var(--transition); }
.yt-facade:hover .yt-facade__play, .yt-facade:focus-visible .yt-facade__play { background: rgba(0, 0, 0, .28); }
.yt-facade:hover .yt-facade__play svg, .yt-facade:focus-visible .yt-facade__play svg { transform: scale(1.08); }
.promotion-video__note {
  max-width: 1120px; margin: var(--space-3) auto 0;
  color: rgba(255, 255, 255, .62); font-size: var(--fs-caption); text-align: center;
}
@media (max-width: 768px) {
  .promotion-video__frame { margin-top: var(--space-6); }
}

/* ── 사업내용 (접힘) ─────────────────────────────── */
/* 8줄 표는 판단을 마친 사람만 펼쳐 본다. 내용은 검색엔진이 읽도록 DOM에 그대로 둔다. */
.business-overview { padding: clamp(40px, 6vw, 72px) 0; background: var(--river-paper); color: var(--river-ink); }
.business-overview__box { border-top: 1px solid var(--river-ink); border-bottom: 1px solid var(--river-ink); }
.business-overview__box summary {
  position: relative; display: block; padding: 24px 56px 24px 0; cursor: pointer; list-style: none;
}
.business-overview__box summary::-webkit-details-marker { display: none; }
.business-overview__box summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid var(--river-ink); border-bottom: 2px solid var(--river-ink);
  transform: rotate(45deg); transition: transform var(--transition);
}
.business-overview__box[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.business-overview__title { display: block; font: 400 clamp(24px, 2.6vw, 32px)/1.4 var(--river-serif); letter-spacing: -.04em; }
.business-overview__desc { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--color-text-muted); }
.business-overview__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 1px solid var(--river-line); }
.business-overview__item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center;
  min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--river-line);
}
.business-overview__item dt { font-weight: var(--fw-bold); font-size: 14px; }
.business-overview__item dd { color: var(--color-text-muted); font-size: var(--fs-small); }
.business-overview__box .link-more { margin: 16px 0 24px; }
@media (max-width: 768px) {
  .business-overview__list { grid-template-columns: 1fr; }
  .business-overview__item { grid-template-columns: 84px minmax(0, 1fr); }
}

/* ── 견본주택 예약 ───────────────────────────────── */
.home-visit { padding: clamp(56px, 8vw, 104px) 0; background: var(--river-sand); color: var(--river-ink); }
/* 왼쪽 제목·주소, 오른쪽 약도. 모바일은 제목 → 주소 → 약도 (버튼 한 쌍은 2026-10-13 운영자 지시로 뺐다) */
.home-visit__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 24px 64px; align-items: start;
  grid-template-areas: "title map" "info map";
  grid-template-rows: auto 1fr;
}
.home-visit__title { grid-area: title; font: 400 clamp(32px, 4vw, 52px)/1.35 var(--river-serif); letter-spacing: -.05em; }
/* '(견본주택)에서'는 한 덩어리로 두되, 앞의 '모델하우스'와는 줄을 나눌 수 있게 한다. */
.home-visit__title .nowrap { display: inline-block; }
/* 약도가 오른쪽을 차지해 한 줄 나열이 줄바꿈되면 "·"가 줄 머리에 남는다 — 세 줄로 쌓는다 */
.home-visit__info { grid-area: info; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-small); color: var(--river-text); }
.home-visit__map { grid-area: map; display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(20, 60, 62, .12); background: #fff; }
.home-visit__map img { display: block; width: 100%; height: auto; }
@media (max-width: 768px) {
  .home-visit__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "info" "map"; grid-template-rows: none; }
}
/* 예약 블록 다음은 푸터이므로 푸터 위 여백을 없애 한 덩어리로 닫는다 */
.page-home .footer { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-status__dot::after { animation: none; }
  .home-unit { transition: none; }
}
/* 푸터가 이미 하단 도크 높이만큼 여백을 갖고 있어 본문 하단 여백이 겹치면
   푸터 아래에 흰 띠가 생긴다 — 메인은 마지막이 늘 푸터이므로 본문 여백을 뺀다. */
body.page-home { padding-bottom: 0; }

/* ── 계약 고객 사은 이벤트 창 (includes/event-sheet.php, 2026-10-24 · 10-27 첫 화면 모달로) ─────────
   브라우저 기본 <dialog> + showModal(). 휴대폰·PC 모두 들어오면 가운데에 뜨는 모달 + ::backdrop.
   위: 상품권 사진(실제 5만원권 스캔 6장 부채꼴) · 아래: 제목·조건·예약/전화. 근거 문서는 event-sheet.php 머리 주석 */
.ev-sheet {
  /* 기본 dialog 모양(테두리·흰 바탕)을 지운다. 가운데 놓기는 브라우저 기본(inset 0 + margin auto) */
  inset: 0; margin: auto; padding: 0; border: 0;
  width: min(400px, calc(100% - var(--page-gutter) * 2)); max-width: none;
  height: fit-content; max-height: calc(100svh - var(--space-6));
  overflow: hidden;
  background: var(--river-paper); color: var(--river-ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.ev-sheet[open] { animation: ev-pop .3s cubic-bezier(.2, .8, .2, 1) backwards; }
.ev-sheet::backdrop { background: rgba(16, 47, 50, .6); animation: ev-fade .25s ease backwards; }
.ev-sheet__content { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.ev-sheet__title:focus { outline: none; }   /* 모달 첫 초점(읽기 시작점) — 누르는 요소가 아니라 테두리를 그리지 않는다 */
.ev-sheet__x {
  position: absolute; top: var(--space-1); right: var(--space-1); z-index: 1;
  display: grid; place-items: center;   /* ✕ 글자 → SVG (2026-11-19, 웹폰트에 ✕ 가 없어 기기마다 모양이 달랐다) */
  width: var(--tap-min); height: var(--tap-min); border-radius: 50%;
  color: var(--river-ink); background: var(--river-paper);
  box-shadow: 0 1px 6px rgba(16, 47, 50, .12);
}
.ev-sheet__x svg { pointer-events: none; }   /* 누름은 버튼이 받는다 */

/* 사진 띠 — 강물빛 바탕 위에 상품권 6장을 아래 가운데를 축으로 펼친다 */
.ev-sheet__visual {
  position: relative; height: 150px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(229, 186, 138, .45) 0%, transparent 60%),
    linear-gradient(180deg, var(--river-mist) 0%, var(--river-sand) 100%);
}
.ev-cards { position: absolute; inset: 0; }
.ev-card {
  position: absolute; left: 50%; bottom: 28px;
  width: 170px; height: auto; aspect-ratio: 400 / 166; margin-left: -85px;
  border-radius: 4px; background: #dbeaf6;
  box-shadow: 0 6px 14px rgba(16, 47, 50, .22), 0 0 0 1px rgba(16, 47, 50, .08);
  transform-origin: 50% 160%;
}
.ev-card:nth-child(1) { transform: rotate(-25deg); }
.ev-card:nth-child(2) { transform: rotate(-15deg); }
.ev-card:nth-child(3) { transform: rotate(-5deg); }
.ev-card:nth-child(4) { transform: rotate(5deg); }
.ev-card:nth-child(5) { transform: rotate(15deg); }
.ev-card:nth-child(6) { transform: rotate(25deg); }

/* 2026-11-19 영구님: 소제목·제목·안내는 가운데, 조건 세 줄은 가장 긴 줄 폭 묶음으로 가운데 + 왼쪽 정렬. --ev-pad = 조건 상자 좌우 안쪽 여백 */
.ev-sheet__body { --ev-pad: 10px; padding: var(--space-4) var(--space-4) var(--space-2); }
/* 공통 고딕체와 700 굵기 제목, 조건 16px, 보조 문구 14px로 읽는 순서를 구분한다. */
.ev-sheet__head { text-align: center; }   /* 소제목·제목은 가운데 (2026-11-19 영구님) */
/* 2026-11-19 영구님 승인 여백(근접성): 묶음 안(소제목↔제목·조건↔안내) 글자 사이 약 8px, 묶음 사이(제목→조건·안내→버튼) 약 24px.
   소제목은 한 줄 이름표라 줄 높이 1.2 로 아래 빈칸을 줄인다. 낮은 화면은 아래 @media 값 그대로 */
.ev-sheet__eyebrow { font-size: var(--fs-small); line-height: 1.2; font-weight: var(--fw-bold); color: var(--river-sunset); letter-spacing: .02em; }   /* 14→15px 공통 작은 글 단계 (2026-11-19 영구님) — 안내·닫고 둘러보기(14px)보다 한 단계 위 */
.ev-sheet__title {
  margin-top: 0;
  /* 2026-11-02 영구님 승인: 제목 한 단계 크게(390px 27→31px), 부제는 조건 줄(16px)보다 크고 굵게·세대 수만 강조색 */
  font: 700 clamp(28px, 8vw, 34px)/1.25 var(--font-sans); letter-spacing: -.03em; word-break: var(--wordbreak);
  overflow-wrap: anywhere;   /* 320px·글자 200% 에서 '신세계상품권'(keep-all 한 단어)이 폭을 넘길 때만 글자 단위로 꺾는다 */
}
.ev-sheet__title em { font-style: normal; font-weight: 700; color: var(--river-sunset); }

.ev-sheet__terms {
  /* 세 줄을 가장 긴 줄 폭의 한 묶음으로 상자 가운데에, 줄은 왼쪽 정렬 (2026-11-19 영구님).
     줄이 꺾이면 fit-content 가 상자 폭을 다 써서, 칸 폭은 event-sheet.php 스크립트가 가장 긴 글줄로 정한다 */
  display: grid; grid-template-columns: fit-content(100%); justify-content: center; gap: 6px;
  margin-top: calc(var(--space-4) + var(--space-1)); padding: 10px var(--ev-pad);
  border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--river-line);
  font-size: 16px; line-height: 1.55; color: var(--river-ink);
}
.ev-sheet__terms li { display: flex; gap: var(--space-2); align-items: flex-start; }
.ev-sheet__terms li > span { min-width: 0; }
.ev-sheet__terms strong { font-weight: 700; color: var(--river-sunset); }   /* 방문 고객·계약 고객 구분 (2026-11-05) */
/* 평소에는 날짜·조건을 묶고, 큰 글자 설정에서는 묶음 안에서도 줄을 바꾼다. */
.ev-sheet__terms .nowrap { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.ev-sheet__ico { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--river-sunset); }
/* 14px·본문 회색(대비 5.7:1) — 13px·#677871 은 4.14:1 로 WCAG 1.4.3 기준 4.5:1 미달 (2026-10-27 영구님 "가독성 향상") */
.ev-sheet__note { margin-top: var(--space-1); font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--river-text); text-align: center; }   /* 가운데 (2026-11-19 영구님) */
.ev-sheet__news { margin-top: 8px; font-size: 13px; line-height: 1.45; font-weight: 700; color: var(--river-ink); text-align: center; word-break: keep-all; }   /* 미래가치 한 줄 (2026-11-20) */

/* 방문예약 6 : 전화문의 4 — 하단 띠와 같은 우선순위 */
.ev-sheet__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: calc(var(--space-4) + var(--space-1)); }
/* 글자 18px·높이 52px(하단 띠 버튼과 같음)·모서리 18px — 기본 .btn--lg 16~17px·56px·알약 모양에서
   (2026-10-27 영구님 "글자는 키우고 크기 약간 줄이고" · "라디우스 조금 줄여요") */
/* 버튼 문구가 함께 들어가지 않으면 세로로 쌓아 200% 글자 확대에서도 잘리지 않게 한다. */
.ev-sheet__cta .btn { flex: 1 1 0; min-width: max-content; min-height: var(--float-btn-h); padding: 0 var(--space-3); border-radius: var(--radius); font-size: 18px; }
.ev-sheet__cta .btn--primary { flex-grow: 1.5; box-shadow: 0 4px 12px rgba(163, 78, 50, .18); }
/* 위치는 고정하고 색과 그림자로 조작 상태를 알린다. 터치에서는 hover가 남지 않게 한다. */
@media (hover: hover) and (pointer: fine) {
  .ev-sheet__cta .btn--primary:hover { background: #92442c; box-shadow: 0 5px 14px rgba(163, 78, 50, .22); }
  .ev-sheet__cta .btn--outline:hover { background: rgba(21, 63, 66, .07); }
}
.ev-sheet__cta .btn--primary:active { background: #813c27; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .16); }
.ev-sheet__cta .btn--outline:active { background: rgba(21, 63, 66, .12); }
.ev-sheet__cta .btn:focus-visible { outline: 3px solid var(--river-ink); outline-offset: 3px; }
/* 짧은 탭에서도 눌림 색이 즉시 보인다. 스크롤과 손가락 확대는 허용한다. */
@media (hover: none) and (pointer: coarse) {
  .ev-sheet__cta .btn { touch-action: manipulation; transition: none; }
}
.ev-sheet__dismiss {
  /* 위 CTA 와 누르는 영역 사이 12px — 닫으려다 방문예약·전화를 잘못 누르지 않게 (2026-10-27 영구님) */
  display: block; min-height: var(--tap-min); margin: var(--space-3) auto 0; padding: 0 var(--space-4);
  font-size: 14px; font-weight: 500; color: var(--river-text); text-decoration: underline; text-underline-offset: 3px;
}

@media (min-width: 1025px) {
  .ev-sheet { width: 440px; max-height: calc(100vh - var(--space-7)); }
  .ev-sheet__x { top: var(--space-2); right: var(--space-2); }
  .ev-sheet__visual { height: 176px; }
  .ev-card { width: 176px; margin-left: -88px; bottom: 34px; }
  .ev-sheet__body { padding: var(--space-5) var(--space-6) var(--space-3); }
  .ev-sheet__title { font-size: 36px; }
}
/* 작은 세로 화면에서도 하단 닫기까지 보이도록 사진 영역부터 줄인다. */
@media (max-height: 640px) {
  .ev-sheet { max-height: calc(100svh - 24px); }
  .ev-sheet__visual { height: 100px; }
  .ev-card { width: 132px; margin-left: -66px; bottom: 16px; }
  .ev-sheet__body { padding: 12px 16px 8px; }
}
/* 320×568 같은 더 작은 화면 — 방문·계약 조건 2줄(2026-11-05)까지 스크롤 없이 버튼이 보이도록 사진과 조건 칸을 더 줄인다. */
@media (max-height: 600px) {
  .ev-sheet__visual { height: 64px; }
  .ev-card { width: 96px; margin-left: -48px; bottom: 8px; }
  .ev-sheet__body { --ev-pad: 8px; }
  .ev-sheet__title { font-size: 26px; }
  .ev-sheet__terms { margin-top: 8px; padding: 6px var(--ev-pad); gap: 4px; font-size: 15px; line-height: 1.4; }
  .ev-sheet__note { margin-top: 4px; font-size: 13px; line-height: 1.35; }
  .ev-sheet__news { display: none; }   /* 320×568 — 버튼이 스크롤 없이 보이는 것이 먼저 */
  .ev-sheet__cta { margin-top: 8px; }
}
/* 가로 화면은 사진과 안내를 나란히 배치한다. 더 낮은 화면은 내용만 스크롤된다. */
@media (max-height: 480px) and (min-width: 560px) {
  .ev-sheet { width: min(720px, calc(100% - 32px)); }
  .ev-sheet__content { display: grid; grid-template-columns: minmax(140px, .36fr) minmax(0, 1fr); }
  .ev-sheet__visual { height: auto; min-height: 100%; }
  .ev-cards { top: 50%; bottom: auto; height: 110px; transform: translateY(-50%); }
  .ev-card { width: 58%; max-width: 126px; margin-left: 0; translate: -50% 0; bottom: 16px; }
  .ev-sheet__body { --ev-pad: 8px; min-width: 0; padding: 12px 16px 8px; }
  .ev-sheet__head { padding-right: 32px; }
  .ev-sheet__title { font-size: 26px; line-height: 1.25; }
  .ev-sheet__terms { margin-top: 8px; padding: 6px var(--ev-pad); gap: 4px; line-height: 1.45; }
  .ev-sheet__note { margin-top: 6px; }
  .ev-sheet__cta { margin-top: 8px; }
  .ev-sheet__cta .btn { min-height: 44px; }
}
@keyframes ev-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes ev-fade { from { opacity: 0; } }
/* 모달이 떠 있는 동안 뒤 페이지가 스크롤되지 않게 (inert 는 누름·초점만 막고 휠·터치 스크롤은 막지 않는다) */
html.ev-lock { overflow: hidden; }   /* 뒤 화면이 옆으로 밀리지 않게 하는 여백은 base.css 「창 열림 스크롤 잠금」 */

@media (prefers-reduced-motion: reduce) {
  .ev-sheet[open], .ev-sheet::backdrop { animation: none; }
}
