:root{
  --navy:#101820;
  --navy-2:#0a0f15;
  --gold:#c9a25a;
  --gold-soft:#d8b877;
  --line:rgba(255,255,255,.06);
  --muted:#71767b;
  --rail:966px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--navy-2);
  color:#e8eaed;
  font-family:"Pretendard Variable",Pretendard,-apple-system,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
/* 데스크탑 양옆 배경: 딥네이비 그라디언트 + 미세 골드 글로우 (고정) */
.bg-deco{
  position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(1200px 700px at 15% 8%, rgba(201,162,90,.10), transparent 60%),
    radial-gradient(1000px 800px at 88% 78%, rgba(201,162,90,.07), transparent 60%),
    linear-gradient(160deg, #0d141c 0%, #0a0f15 42%, #070a0e 100%);
}
/* 아주 흐린 조감도 텍스처를 배경 최하단에 (채도↓·어둡게) */
.bg-deco::after{
  content:"";position:absolute;inset:0;
  background:url("images/01.jpg") center top / 150% auto no-repeat;
  filter:blur(60px) saturate(.35) brightness(.28);
  opacity:.5;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.9), transparent 55%);
  -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,.9), transparent 55%);
}
/* 브로슈어 레일 좌우 경계에 은은한 골드 헤어라인 (데스크탑서 콘텐츠를 배경과 분리) */
@media (min-width:968px){
  .brochure{
    box-shadow:0 0 0 1px rgba(201,162,90,.14), 0 30px 80px rgba(0,0,0,.55);
  }
}
img{display:block;max-width:100%;height:auto}
a{text-decoration:none;color:inherit}

/* 스크롤 진행바 */
.scroll-progress{
  position:fixed;top:0;left:0;height:3px;width:0;
  background:linear-gradient(90deg,var(--gold),var(--gold-soft));
  z-index:60;transition:width .08s linear;
  box-shadow:0 0 8px rgba(201,162,90,.5);
}

/* 상단 헤더 */
.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(16,24,32,.82);
  backdrop-filter:saturate(140%) blur(12px);
  -webkit-backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width:var(--rail);margin:0 auto;
  height:60px;padding:0 18px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.brand{display:flex;align-items:baseline;gap:8px;line-height:1}
.brand-mark{
  font-size:22px;font-weight:800;letter-spacing:.5px;
  color:var(--gold);font-style:italic;
}
.brand-sub{
  font-size:12px;font-weight:700;letter-spacing:2px;
  color:#c7ccd1;
}
.header-call{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 15px;border-radius:999px;
  background:var(--gold);color:#101820;
  font-size:14px;font-weight:700;
  box-shadow:0 6px 18px rgba(201,162,90,.28);
  min-height:44px;
}
.header-call svg{flex:0 0 auto}
.header-call-txt{white-space:nowrap}
.header-call-txt strong{font-weight:800;letter-spacing:0}

/* 브로슈어 이미지 레일 */
.brochure{
  max-width:var(--rail);
  margin:0 auto;
  display:flex;flex-direction:column;
  gap:8px;
  background:var(--navy);
  padding-top:8px;
}
.brochure img{
  width:100%;
  background:#141c25;
  opacity:1;
}
/* 첫 조감도만 부드러운 페이드인 (JS 실패 시에도 보이도록 기본 opacity:1) */
.brochure img.fade-init{opacity:0;transform:translateY(8px)}
.brochure img.is-loaded{opacity:1;transform:none;transition:opacity .28s ease,transform .28s ease}
/* 분양가표 등 초세로 이미지: 데스크탑 확대 힌트 */
.brochure img.is-price{cursor:zoom-in}

/* 푸터 */
.legal-footer{
  background:var(--navy-2);
  padding:36px 20px calc(40px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
}
.footer-inner{max-width:var(--rail);margin:0 auto;text-align:center}
.footer-notice{font-size:12px;line-height:1.7;color:var(--muted)}
.footer-call{
  display:inline-block;margin-top:16px;
  font-size:16px;font-weight:800;letter-spacing:.5px;
  color:var(--gold-soft);
}
.credit{
  margin-top:22px;font-size:11px;font-weight:600;
  letter-spacing:2px;color:#44484e;
}

/* 데스크탑 우측하단 원형 플로팅 전화 */
.float-call{
  position:fixed;right:26px;bottom:34px;z-index:40;
  width:76px;height:76px;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  background:var(--gold);color:#101820;
  box-shadow:0 12px 30px rgba(0,0,0,.4), 0 0 22px rgba(201,162,90,.55);
  /* 무한 링 파동 + 아이콘 흔들림 동시 */
  animation:pulse-ring 1.8s ease-out infinite, float-jiggle 2.6s ease-in-out infinite;
  will-change:transform;
}
.float-call .float-svg{animation:ring-shake 2.6s ease-in-out infinite;transform-origin:center}
.float-call .float-label{font-size:10px;font-weight:800;letter-spacing:.5px}
.float-call:hover{background:var(--gold-soft);animation-play-state:paused}
.float-call:hover .float-svg{animation-play-state:paused}
@keyframes pulse-ring{
  0%{box-shadow:0 12px 30px rgba(0,0,0,.4),0 0 22px rgba(201,162,90,.55),0 0 0 0 rgba(201,162,90,.55)}
  70%{box-shadow:0 12px 30px rgba(0,0,0,.4),0 0 22px rgba(201,162,90,.2),0 0 0 26px rgba(201,162,90,0)}
  100%{box-shadow:0 12px 30px rgba(0,0,0,.4),0 0 22px rgba(201,162,90,.55),0 0 0 0 rgba(201,162,90,0)}
}
/* 버튼 전체가 통통 튀는 미세 바운스 */
@keyframes float-jiggle{
  0%,88%,100%{transform:translateY(0) scale(1)}
  92%{transform:translateY(-5px) scale(1.05)}
  96%{transform:translateY(-2px) scale(1.02)}
}
/* 수화기가 벨 울리듯 좌우로 흔들 */
@keyframes ring-shake{
  0%,86%,100%{transform:rotate(0)}
  88%{transform:rotate(-14deg)}
  90%{transform:rotate(12deg)}
  92%{transform:rotate(-10deg)}
  94%{transform:rotate(8deg)}
  96%{transform:rotate(-4deg)}
}

/* 모바일 하단 고정 CTA바 (기본 숨김) */
.mobile-call{
  display:none;
  position:fixed;left:0;right:0;bottom:0;z-index:45;
  min-height:60px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  align-items:center;justify-content:center;gap:10px;
  background:var(--navy);color:#fff;
  font-size:16px;font-weight:700;
  border-top:1px solid var(--gold);
  box-shadow:0 -6px 20px rgba(0,0,0,.4);
}
.mobile-call strong{color:var(--gold-soft);font-weight:800;letter-spacing:.5px}

/* ── 모바일 분기 ── */
@media (max-width:767px){
  .topbar-inner{height:56px;padding:0 14px}
  .brand-mark{font-size:19px}
  .header-call-txt{display:none}
  .header-call{padding:10px;min-width:44px;justify-content:center}
  .float-call{display:none}          /* 데스크탑 플로팅 숨김 */
  .mobile-call{display:flex}          /* 모바일 하단바 노출 */
  body{padding-bottom:74px}           /* 하단바 높이만큼 여백 */
  .brochure img.is-price{cursor:default}
}

/* 모션 최소화 선호 시 애니메이션 제거 */
.mobile-call{animation:mobile-glow 2.4s ease-in-out infinite}
@keyframes mobile-glow{
  0%,100%{box-shadow:0 -6px 20px rgba(0,0,0,.4), 0 0 0 rgba(201,162,90,0)}
  50%{box-shadow:0 -6px 20px rgba(0,0,0,.4), 0 -2px 16px rgba(201,162,90,.4)}
}

@media (prefers-reduced-motion:reduce){
  .float-call,.float-call .float-svg,.mobile-call{animation:none}
  .brochure img.is-loaded{transition:none}
  html{scroll-behavior:auto}
}
