/* =========================================================
   ELIF 시흥 더프라임
   ========================================================= */
:root {
  --green: #0e5a45;
  --green-deep: #0a4636;
  --ivory: #f1ede2;
  --ivory-2: #e9e3d4;
  --ink: #1f1f1d;
  --gray: #6b6760;
  --white: #fff;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --en: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --script: "Antro Vectra", "Great Vibes", "Snell Roundhand", "Cormorant Garamond", serif;
  --label: "Haboro Contrast Cond", "Haboro Contrast", "Pretendard", sans-serif;
  --sans: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-intro { overflow: hidden; }
/* 인트로가 끝나기 전에는 메인 요소를 숨겨, 인트로가 걷힐 때 완성된 메인이 먼저 비치지 않게 함 */
body.is-intro :is(.header, .hero__video, .hero__arch-text, .hero__center > *, .hero__copy > *, .hero__badge, .hero__m-arch, .hero__m-leaf, .hero__m-land, .hero__m-builder) { opacity: 0; visibility: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
figure { overflow: hidden; background: linear-gradient(135deg, #cfc6b3, #9d917b); }
figure img, figure video { width: 100%; height: 100%; object-fit: cover; }
img.is-missing { visibility: hidden; }

.bg-video, .intro__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.side-text {
  position: absolute; left: 34px; bottom: 60px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: .3em;
  color: rgba(255,255,255,.7); z-index: 3;
}
.side-text.dark { color: rgba(0,0,0,.45); }

/* 영문 라벨 : Haboro Contrast Cond Medium.
   정식 Cond Medium 파일(assets/fonts/haboro-contrast-cond-medium.woff2)이 없으면
   무료 데모(Norm Regular)를 좁히고(scaleX) 굵게(stroke) 보정해서 비슷하게 보이게 한다 */
.cond { display: inline-block; }
html:not(.has-label-cond) .cond,
html:not(.has-label-cond) .pt small { transform: scaleX(.84); }
html:not(.has-label-cond) .prime__left .cond { transform-origin: right center; }
html:not(.has-label-cond) .prime__en .cond,
html:not(.has-label-cond) .pr-en:not(.pr-en--r) .cond,
html:not(.has-label-cond) .contact__title .cond,
html:not(.has-label-cond) .pt small { transform-origin: left center; }
html:not(.has-label-cond) .pr-en--r .cond { transform-origin: right center; }
html:not(.has-label-cond) :is(.cond, .pt small, .scroll-cue span, .prime__vt, .prime__num, .brand__en, .skip, .vision__more) { -webkit-text-stroke: .025em currentColor; }

/* 모든 화면 좌측 하단에 고정되는 SCROLL DOWN */
.scroll-cue {
  position: fixed; left: 34px; bottom: 0; z-index: 800;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: rgba(255,255,255,.8); pointer-events: none;
  transition: color .4s, opacity .4s;
}
.scroll-cue span { writing-mode: vertical-rl; font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: .3em; }
.scroll-cue i { position: relative; width: 1px; height: 56px; background: currentColor; opacity: .35; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: currentColor; animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
.scroll-cue.is-ink { color: rgba(0,0,0,.55); }
.scroll-cue.is-end, body.is-intro .scroll-cue { opacity: 0; }

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: #111; color: #fff;
}
.intro__scene {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
}
.intro__scene.is-active { opacity: 1; visibility: visible; }
.intro__scene--1 { background: linear-gradient(120deg, #3a332b 0%, #7b7163 45%, #b3a894 60%, #5a5146 100%); }
.intro__scene--2 { background: radial-gradient(ellipse at 50% 40%, #e3cfb5 0%, #a98a6b 50%, #3b2c20 100%); }
.intro__scene--3 { background: linear-gradient(110deg, #0b0b0b 0%, #2d2d2d 40%, #6a6a6a 55%, #1a1a1a 100%); }
.intro__dim { position: absolute; inset: 0; background: rgba(0,0,0,.5); }

.intro__copy {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center; white-space: nowrap;
}
.intro__sub {
  font-family: var(--serif); font-size: 15px; letter-spacing: .08em;
  opacity: .85; margin-bottom: 18px;
}
.intro__bracket {
  display: inline-flex; align-items: center;
  font-family: var(--serif); font-size: clamp(18px, 2.2vw, 30px); letter-spacing: .06em;
}
.br { font-weight: 300; font-size: 1.35em; opacity: .9; display: inline-block; }
.br__text {
  display: inline-block; overflow: hidden;
  width: 0;                      /* JS가 실제 폭으로 펼침 */
}
.br__text span { display: inline-block; padding: 0 1.1em; }

.intro__word {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
/* LIFE → ELIF : 로고 글자 4개를 실제 로고 좌표 사이에서 이동 (161.13 x 55.678 로고 박스 기준) */
.word {
  position: relative;
  width: clamp(240px, 22vw, 420px); aspect-ratio: 161.13 / 55.678;
  visibility: hidden;
}
.word .ch { position: absolute; display: block; will-change: transform; }
.word .ch svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; }
.word .ch .g-elif { opacity: 0; }
.intro__caption {
  font-family: var(--serif); font-size: clamp(13px, 1.1vw, 17px);
  letter-spacing: .08em; margin-top: 26px;
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap; opacity: 0;
}
.intro__caption--elif { font-family: var(--sans); font-weight: 600; }

.skip {
  position: absolute; right: 50px; bottom: 50px; z-index: 5; font-family: var(--label); font-weight: 500;
  width: 58px; height: 58px; border-radius: 50%;
  background: #fff; color: #222;
  font-size: 10px; letter-spacing: .08em;
  transition: transform .4s var(--ease);
}
.skip:hover { transform: scale(1.1); }
/* 마우스 환경 : SKIP 버튼이 커서를 대신해 따라다님 */
.intro.is-cursor.is-following, .intro.is-cursor.is-following .skip { cursor: none; }
.intro.is-cursor .skip { transition: none; will-change: transform; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; padding: 0 50px;
  color: #fff;
  transition: background .4s, color .4s, height .4s, transform .5s var(--ease);
}
.header.is-ink { color: var(--ink); }
.header.is-hidden { transform: translateY(-100%); }
.header__logo, .footer__logo { display: flex; align-items: center; gap: 12px; }
/* ELIF 로고 (inline SVG, 색은 currentColor) */
.elif-logo { display: block; fill: currentColor; aspect-ratio: 161.13 / 55.678; height: auto; }
.logo-elif { width: 64px; }
/* 헤더 로고 (ELIF + 시흥 더프라임, PSD 원본 비율)
   어두운 배경 = 모두 흰색 / 흰·밝은 배경 = ELIF 진초록 + 시흥 더프라임 회색 */
.logo-full { display: block; width: 190px; height: auto; aspect-ratio: 152.821 / 17.881; fill: currentColor; }
.header:is(.is-ink, .is-solid, .is-scrolled) .logo-full { --lf-elif: #174538; --lf-name: #7a756f; }
.logo-name { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.gnb { display: flex; gap: 56px; font-size: 14px; }
.gnb a { position: relative; padding: 6px 0; }
.gnb a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width .35s var(--ease), left .35s var(--ease);
}
.gnb a:hover::after { width: 100%; left: 0; }
.header__util { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.header__util a { display: inline-flex; align-items: center; gap: 7px; }
.header__util svg { width: 15px; height: 15px; }
.tel { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.tel svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
/* PC 메뉴 : 로고 · 메뉴 · 전화번호 조금 크게 */
@media (min-width: 1025px) {
  .header { height: 92px; }
  .logo-full { width: 236px; }
  .gnb { gap: 62px; font-size: 18px; font-weight: 500; }
  .header__util { gap: 30px; font-size: 16px; }
  .header__util svg { width: 18px; height: 18px; }
  .tel { font-size: 21px; }
}
.btn-reg svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.menu-btn { display: none; width: 30px; height: 20px; position: relative; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: .3s; }
.menu-btn span:first-child { top: 5px; }
.menu-btn span:last-child { bottom: 5px; }

/* 모바일 햄버거 메뉴 (mobile/m_nav.php) */
.m-menu {
  position: fixed; inset: 0; z-index: 950; display: flex; flex-direction: column;
  padding: 26px 28px 40px; background: #1b453d; color: #fff;
  opacity: 0; visibility: hidden; transform: translateX(6%);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s;
}
body.is-menu { overflow: hidden; }
body.is-menu .m-menu { opacity: 1; visibility: visible; transform: none; }
.m-menu__close { position: absolute; right: 18px; top: 16px; width: 40px; height: 40px; }
.m-menu__close::before, .m-menu__close::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 1px; background: #fff; transform: rotate(45deg); }
.m-menu__close::after { transform: rotate(-45deg); }
.m-menu__logo { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.m-menu__logo .elif-logo { width: 64px; }
.m-menu nav { display: flex; flex-direction: column; margin-top: 50px; }
.m-menu nav a { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-family: var(--sans); font-weight: 500; font-size: 21px; letter-spacing: -.01em; }
.m-menu nav a.is-current { color: #d9c9a3; }
.m-menu__tel { margin-top: auto; align-self: flex-start; padding: 14px 24px; border: 1px solid rgba(255,255,255,.5); border-radius: 30px; font-size: 15px; font-weight: 600; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; height: 100vh; min-height: 680px; overflow: hidden;
  background: #193d3a;
  color: #f3eadb;
}
/* 영상(1.885:1)을 화면에 cover로 깔고, 영상 속 아치 안에 카피를 맞춰 올린다 */
/* 영상은 화면을 꽉 채우지 않고 가로 최대 90% 크기로 가운데에.
   세로가 낮은 넓은 모니터에서는 높이 94%에 맞춰짐 (영상 위쪽은 빈 하늘이라 메뉴 아래로 들어가도 됨).
   가장자리는 배경색으로 자연스럽게 사라짐. 안쪽 글씨는 영상 폭(cqw) 기준이라 영상과 같은 비율로 커지고 작아짐 */
.hero__stage {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(90vw, calc(max(100vh, 680px) * .94 * 1.8847));
  aspect-ratio: 1.8847;
  container-type: inline-size;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}

/* 아치 + 메인 카피 */
.hero__center {
  position: absolute; left: 71.8%; top: 20%; transform: translateX(-50%);
  width: 32%; text-align: center;
}
.hero__lead { font-family: var(--serif); font-size: clamp(14px, 1.42cqw, 26px); opacity: .9; }
.hero__headline { font-family: var(--serif); font-size: clamp(20px, 2.05cqw, 38px); font-weight: 500; margin-top: 8px; letter-spacing: .02em; }
.hero__bar { display: block; width: 1px; height: clamp(24px, 2.4cqw, 44px); background: rgba(243,234,219,.6); margin: clamp(12px, 1.25cqw, 24px) auto; }
.hero__logo { display: flex; flex-direction: column; align-items: center; }
.hero__logo .elif-logo { width: clamp(130px, 11.5cqw, 220px); color: #fff; }
.hero__logo small { font-size: clamp(14px, 1.45cqw, 26px); font-weight: 600; margin-top: clamp(8px, .8cqw, 14px); letter-spacing: .04em; }

.hero__script { position: absolute; left: 7.5%; bottom: 9%; pointer-events: none; }
/* 마스크 위치(--p)를 옮겨 왼쪽부터 부드럽게 드러냄. 획이 잘리지 않도록 위아래·좌우 여유(padding)를 둠 */
.hero__script-text {
  --p: 0%;
  padding: .3em .45em .55em .25em;
  font-family: var(--script); font-size: clamp(48px, 4.1vw, 82px); line-height: 1.2; white-space: nowrap;
  color: rgba(243,234,219,.97); text-shadow: 0 2px 16px rgba(10,30,25,.45);
  transform: rotate(-8deg); transform-origin: left bottom;
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--p) - 22%), transparent var(--p));
  mask-image: linear-gradient(100deg, #000 calc(var(--p) - 22%), transparent var(--p));
}
body.is-intro .hero__script-text { --p: 0%; }
.hero__badge {
  position: absolute; right: 52px; top: 57.5%;
  width: 172px; height: 172px;
  display: grid; place-items: center;
}
.hero__badge svg { position: absolute; inset: 0; overflow: visible; fill: #fff; font-family: var(--en); font-weight: 500; font-size: 8.8px; word-spacing: .28em; animation: spin 18s linear infinite; }
.hero__badge span { display: flex; flex-direction: column; align-items: center; font-family: 'SUIT Hero', var(--sans); line-height: 1.2; text-align: center; }
.hero__badge em, .hero__badge i { font-style: normal; }
.hero__badge em { font-size: 19px; font-weight: 800; }
.hero__badge i { font-size: 15px; font-weight: 300; margin-top: 2px; }
.hero__badge span b { font-size: 24px; font-weight: 800; letter-spacing: .01em; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__copy {
  position: absolute; right: 66px; bottom: 13%; text-align: right;
  font-family: 'SUIT Hero', var(--sans); color: #fff; line-height: 1.3;
}
.hero__copy p { font-size: clamp(16px, 1.05vw, 20px); font-weight: 400; opacity: .92; margin-bottom: .55em; }
.hero__copy strong { display: block; font-size: clamp(22px, 1.46vw, 28px); font-weight: 800; }
/* 아치 위 "Enhance your life" (PC) */
.hero__arch-text { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero__arch-text text { fill: #eadfc6; font-family: var(--en); font-weight: 500; font-size: 23px; letter-spacing: 2.5px; }

/* =========================================================
   BRAND
   ========================================================= */
.brand {
  position: relative; height: 100vh; min-height: 760px; overflow: hidden;
  background: #73695a; color: #fff;
}
/* 배경 영상 위 검정 20% (사진·글자는 그대로) */
.brand .bg-video { filter: brightness(.8); }
.brand__floats { position: absolute; inset: 0; }
.fl { position: absolute; box-shadow: 0 20px 40px rgba(0,0,0,.25); will-change: transform, opacity; }
/* 모인 뒤에는 각자 천천히 떠 있는 느낌 (transform과 별개인 translate 속성 사용) */
.brand.is-gathered .fl { animation: drift 7s ease-in-out infinite alternate; }
.brand.is-gathered .fl:nth-child(2n) { animation-duration: 8.5s; animation-delay: -2s; }
.brand.is-gathered .fl:nth-child(3n) { animation-duration: 9.5s; animation-delay: -4s; }
@keyframes drift { from { translate: 0 -8px; } to { translate: 0 8px; } }
.fl--1 { left: 10.9%; top: 25.3%; width: 11.1vw; aspect-ratio: 214/120; }
.fl--2 { left: 22.1%; top: 41.3%; width: 12.9vw; aspect-ratio: 248/139; }
.fl--3 { left: -3.5%; top: 51.8%; width: 16.9vw; aspect-ratio: 324/182; }
.fl--4 { left: 61.8%; top: 32.1%; width: 15.4vw; aspect-ratio: 296/155; }
.fl--5 { left: 80.8%; top: 23.6%; width: 13.8vw; aspect-ratio: 265/149; }
.fl--6 { left: 86.1%; top: 59.3%; width: 9.5vw;  aspect-ratio: 183/103; }

.brand__center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center; width: min(640px, 90vw);
}
.brand__logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 44px; }
.brand__logo .elif-logo { width: clamp(130px, 9.5vw, 190px); }
.brand__logo small { font-size: 13px; font-weight: 600; margin-top: 10px; letter-spacing: .04em; }
.brand__title { font-family: var(--sans); font-weight: 600; font-size: clamp(18px, 1.45vw, 27px); line-height: 1.6; }
.brand__desc { font-size: 16px; line-height: 1.8; opacity: .75; margin-top: 18px; }
.brand__en { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); font-family: var(--label); font-weight: 500; font-size: 13px; letter-spacing: .3em; opacity: .8; padding-bottom: 4px; border-bottom: 1px solid currentColor; }

/* =========================================================
   THE PRIME
   ========================================================= */
.prime { position: relative; }
.prime__stage {
  position: relative; height: 100vh; min-height: 700px; overflow: hidden;
  color: var(--ink);
}
.prime__bgs, .prime__bg { position: absolute; inset: 0; }
.prime__bg { opacity: 0; transition: opacity 1s var(--ease); }
.prime__bg.is-on { opacity: 1; }
.prime__bg.is-light { background: #f0efe2; }
.prime__bg[data-i="1"] { background: linear-gradient(170deg, #45504e 0%, #8d8a72 50%, #b48b2c 100%); }
.prime__bg[data-i="3"] { background: linear-gradient(175deg, #1e2233 0%, #4b3b4a 45%, #b0643a 75%, #2a2016 100%); }
.prime__bg[data-i="1"]::after, .prime__bg[data-i="3"]::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.5); }
.prime__stage.is-dark { color: #fff; }

.prime__line {
  position: absolute; right: 0; bottom: 0; width: 30.8vw; height: auto; opacity: 0;
  transition: opacity .8s; pointer-events: none;
}
.prime__line--2 { right: .4vw; width: 28.2vw; }
.prime__line.is-on { opacity: 1; }

.prime__nav {
  position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 20px; z-index: 3;
}
.prime__num { width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-family: var(--label); font-weight: 500; font-size: 10px; font-style: normal; }
.prime__num em { font-style: normal; }
.prime__nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prime__nav li { width: 1px; height: 14px; background: currentColor; opacity: .3; transition: height .4s, opacity .4s; }
.prime__nav li.on { height: 36px; opacity: 1; }
.prime__vt { writing-mode: vertical-rl; font-family: var(--label); font-weight: 500; font-size: 10px; letter-spacing: .3em; margin-top: 30px; opacity: .6; }

.prime__left, .prime__en {
  font-family: var(--label); font-weight: 500; line-height: 1;
  font-size: clamp(18px, 1.6vw, 30px); letter-spacing: .55em;
}
.prime__left { position: absolute; right: calc(50% + 12vw); top: 41%; white-space: nowrap; z-index: 2; }
.prime__card {
  position: absolute; left: 50%; top: 50%;
  width: min(22vw, 360px); aspect-ratio: 3 / 4.4;
  transform: translate(-50%, -50%); z-index: 2;
}
.prime__frame {
  position: absolute; left: 34%; right: -16%; top: -5%; bottom: -12%;
  background: var(--green);
}
.prime__media { position: absolute; inset: 0; overflow: hidden; }
.pm {
  position: absolute; inset: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease);
}
.pm.is-on { clip-path: inset(0 0 0 0); z-index: 2; }
.pm.is-prev { clip-path: inset(0 0 0 0); z-index: 1; }
.pm video { width: 100%; height: 100%; object-fit: cover; }
.pm[data-i="0"] { background: linear-gradient(180deg, #e2b169 0%, #b88744 35%, #5e5a4f 100%); }
.pm[data-i="1"] { background: linear-gradient(180deg, #9cc4de 0%, #d9c38a 60%, #e0b43a 100%); }
.pm[data-i="2"] { background: linear-gradient(160deg, #e8d7bd 0%, #c29a6c 100%); }
.pm[data-i="3"] { background: linear-gradient(180deg, #3b4568 0%, #b8617a 50%, #e8a247 70%, #251c18 100%); }
.prime__script {
  position: absolute; left: 62%; bottom: -8%;
  font-family: var(--script); font-size: clamp(48px, 5vw, 84px); color: #fff;
  transform: rotate(-12deg); z-index: 3; white-space: nowrap;
}
.prime__script span { position: absolute; left: 0; bottom: 0; padding: 0 .3em .15em 0; opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease) .35s, opacity .2s; }
.prime__script span.is-on { opacity: 1; clip-path: inset(0 0 0 0); }

.prime__sub {
  position: absolute; z-index: 2; opacity: 0; transform: translateY(40px);
  transition: opacity .8s, transform .8s var(--ease);
}
.prime__sub.is-on { opacity: 1; transform: none; }
.prime__sub--0 { right: calc(50% + 19vw); top: 60%; width: 5.4vw; aspect-ratio: 3/4; background: linear-gradient(#c79a55, #6d5530); }
.prime__sub--2 { right: calc(50% + 17vw); top: 62%; width: 10vw; aspect-ratio: 16/10; background: linear-gradient(#b78e6a, #6a4a36); }

.prime__right { position: absolute; left: calc(50% + 15vw); top: 41%; z-index: 2; }
.prime__texts { position: relative; margin-top: 44px; min-height: 150px; width: 500px; }
.pt { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease); pointer-events: none; }
.pt.is-on { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
.pt h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.pt p { font-size: 15.5px; line-height: 1.75; opacity: .8; }
.pt small { display: block; font-family: var(--label); font-weight: 500; font-size: 15px; opacity: .55; margin-top: 18px; }

/* =========================================================
   PREMIUM (horizontal)
   ========================================================= */
.premium { position: relative; background: var(--ivory); }
.premium__pin { position: relative; height: 100vh; min-height: 700px; overflow: hidden; }
.premium__track { display: flex; height: 100%; width: max-content; }
.pr-panel { position: relative; height: 100%; flex-shrink: 0; }
.pr-panel--hero { width: 60vw; }
.pr-hero { position: absolute; left: 0; top: 13%; width: 45.9vw; height: 74%; background: linear-gradient(120deg, #d6cab3, #8a7a5f 55%, #4c6a3b); }
.pr-hero img { transform: scale(1.15); object-position: left center; transform-origin: left center; }
.pr-vt {
  position: absolute; left: 4vw; top: 14%; z-index: 2;
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 13px; line-height: 2.2; color: rgba(0,0,0,.6);
}
.pr-logo { position: absolute; left: 45.8vw; top: 13%; height: 34%; width: auto; aspect-ratio: 55.678 / 161.13; fill: var(--green-deep); }
.pr-panel--group { width: auto; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 26vh; padding-left: 6vw; }
.pr-cards { display: flex; gap: 2.2vw; }
.pr-card { width: 17vw; }
.pr-card figure { aspect-ratio: 16/10.5; margin-bottom: 20px; }
.pr-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.pr-card p { font-size: 14.5px; line-height: 1.7; color: var(--gray); }
.pr-title { margin-top: 50px; }
.pr-en { font-family: var(--label); font-weight: 500; font-size: 24px; letter-spacing: .6em; color: var(--green-deep); }
.pr-desc { font-size: 15px; line-height: 1.8; color: var(--gray); margin-top: 18px; }
.pr-panel--row { padding-left: 2.2vw; padding-right: 8vw; }
.pr-en--r { align-self: flex-end; margin: 70px 10vw 0 0; }
.pr-panel--end { width: 42vw; }
.pr-tall { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #7f6a36, #3f5a2b 60%, #1d2a17); }

/* =========================================================
   VISION
   ========================================================= */
.vision {
  position: relative; height: 100vh; min-height: 700px; overflow: hidden;
  background: linear-gradient(180deg, #a49885 0%, #e6a45e 38%, #3b3c43 55%, #1e2126 100%);
  color: #fff;
}
.vision__dim { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.vision__lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.22); }
.vision__lines i:nth-child(1) { left: 27.5%; }
.vision__lines i:nth-child(2) { left: 72.2%; }
.vision__lines i:nth-child(3) { display: none; }
.vision__head { position: absolute; left: 0; right: 0; top: 19%; text-align: center; }
.vision__head .elif-logo { width: clamp(90px, 5.7vw, 120px); margin: 0 auto; }
.vision__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 30px); letter-spacing: .3em; margin-top: 10px; }
.vision__cols {
  position: absolute; left: 0; right: 0; bottom: 15%;
  display: grid; grid-template-columns: 27.5% 44.7% 27.8%; align-items: end;
  font-size: 14px; line-height: 1.8; text-align: center;
}
.vision__cols > * { padding: 0 2vw; }
.vision__cols strong { display: block; font-family: var(--label); font-size: 21px; font-weight: 500; letter-spacing: .06em; margin-bottom: 10px; }

.vision__more { position: absolute; right: 7.3%; bottom: 26.5%; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: .06em; transition: transform .4s var(--ease); }
.vision__more:hover { transform: scale(1.1); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative; padding: 140px 6vw 160px; overflow: hidden;
  background: linear-gradient(90deg, #d8d3c6, #e3ddd1);
}
.contact__deco { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; }
.contact__inner { position: relative; max-width: 1100px; margin: 0 auto; }
.contact__title { font-family: var(--label); font-weight: 500; font-size: 44px; color: var(--green); margin-bottom: 30px; }
.contact__title small { font-family: var(--sans); font-size: 14px; color: var(--gray); font-weight: 400; margin-left: 6px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr .62fr; gap: 20px; align-items: start; }
.map { aspect-ratio: 382 / 339; background: #f6f4ec; overflow: hidden; box-shadow: 0 10px 30px rgba(60,50,30,.08); }
.map img { width: 100%; height: 100%; object-fit: cover; }
.contact__info dl { padding-top: 6px; margin-bottom: 40px; }
.contact__info dt { font-size: 15px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid #cfc7b6; margin-bottom: 12px; }
.contact__info dd { font-size: 14px; color: var(--gray); line-height: 1.7; }
.links { display: flex; gap: 8px; margin-top: 14px; }
.links a { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--green); color: var(--green); display: grid; place-items: center; transition: .3s; }
.links svg { width: 40%; height: 56%; fill: currentColor; }
.links a[aria-label^="티맵"] svg { width: 44%; height: 46%; }
.links a:hover { background: var(--green); color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: #232322; color: #bdb9b0; padding: 40px 3vw 40px 3vw; display: flex; gap: 40px; align-items: flex-start; }
.footer__logo { color: #fff; }
.footer__info { font-size: 13.5px; line-height: 1.9; }
.footer__info b { color: #fff; font-weight: 600; }
.footer__info .gap { margin-left: 28px; }
.footer__tel { margin-bottom: 4px; }
.footer__tel span { font-size: 14px; margin-right: 6px; }
.footer__tel b { font-size: 26px; letter-spacing: .02em; }
.footer__info .small { font-size: 12.5px; opacity: .6; margin-top: 8px; }
.footer__copy { margin-top: 10px; font-size: 12px; letter-spacing: .04em; opacity: .45; }
.footer__tel a { color: inherit; }
.footer__company { margin-left: auto; height: 24px; width: auto; flex-shrink: 0; margin-top: 10px; }
.top-btn { position: absolute; right: 3vw; top: -36px; z-index: 5; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.top-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* reveal helper */
.reveal { opacity: 0; transform: translateY(40px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* 모바일 전용 요소는 PC에서 숨김 */
.m-only, .m-br { display: none; }
/* 필기체 : PC 는 글꼴, 모바일은 벡터 이미지(include/script_svg.php) */
.script-svg { display: none; }

/* =========================================================
   MOBILE (m_main.psd · 640px 시안을 375px 기준 vw로 환산)
   ========================================================= */
@media (max-width: 1024px) {
  .m-only { display: block; }
  .script-txt { display: none; }
  .script-svg { display: inline-block; vertical-align: top; overflow: visible; fill: currentColor; }
  .prime-m__script .script-svg { filter: drop-shadow(0 4px 14px rgba(0,0,0,.25)); }
  .hero__script-text .script-svg { filter: drop-shadow(0 2px 16px rgba(10,30,25,.45)); }
  .skip { right: 20px; bottom: 30px; }
  .side-text, .scroll-cue { display: none; }

  /* ---------- 헤더 : 로고 + 관심고객 · 전화 아이콘 + 메뉴 ---------- */
  .gnb { display: none; }
  .header { padding: 0 4.6vw; height: 20vw; max-height: 80px; }
  .header.is-scrolled { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
  .logo-elif { width: 11.2vw; max-width: 46px; }
  .logo-name { font-size: 3.4vw; }
  .logo-full { width: 33vw; max-width: 150px; }
  .header__util { margin-left: auto; margin-right: 5vw; gap: 4.6vw; }
  .header__util a { font-size: 0; gap: 0; }
  .header__util svg { width: 5.4vw; height: 5.4vw; max-width: 22px; max-height: 22px; stroke-width: 1.5; }
  .header__util .btn-reg { order: -1; }
  .menu-btn { display: block; width: 6vw; max-width: 26px; height: 5.4vw; max-height: 22px; }
  /* 3줄 (PSD : 오른쪽 정렬, 아래로 갈수록 짧게) */
  .menu-btn span { left: auto; right: 0; height: 1.5px; }
  .menu-btn span:nth-child(1) { top: 0; width: 100%; }
  .menu-btn span:nth-child(2) { top: 50%; width: 83%; transform: translateY(-50%); }
  .menu-btn span:nth-child(3) { bottom: 0; width: 66%; }

  /* ---------- 메인 ---------- */
  .hero { height: 212vw; min-height: 0; }
  .hero__stage { position: static; transform: none; width: auto; height: auto; aspect-ratio: auto; container-type: normal; }
  .hero__video, .hero__copy, .hero__arch-text { display: none; }
  .hero__m-arch { position: absolute; left: 10.7vw; top: 22.1vw; width: 84.3vw; height: auto; overflow: visible; }
  .hero__m-arch-line { fill: none; stroke: #cdbf9f; stroke-width: 1.5; shape-rendering: geometricPrecision; }
  .hero__m-arch-line.thin { stroke-width: .8; opacity: .7; }
  .hero__m-arch text { fill: #e2d6bd; font-family: var(--en); font-weight: 500; font-size: 15px; letter-spacing: 1.5px; }
  .hero__m-land { position: absolute; left: -32vw; top: 108vw; width: 202vw; max-width: none; height: auto; }
  .hero__m-builder { position: absolute; left: 50%; top: 198vw; width: 17.6vw; height: auto; transform: translateX(-50%); }
  .hero__center { left: 52.6%; top: 41.3vw; width: 76vw; z-index: 2; }
  .hero__lead { font-size: 4.1vw; }
  .hero__headline { font-size: 5.4vw; margin-top: 1.4vw; }
  .hero__bar { height: 6.4vw; margin: 3.4vw auto; }
  .hero__logo .elif-logo { width: 31vw; }
  .hero__logo small { font-size: 4.3vw; margin-top: 2vw; }
  .hero__tag { margin-top: 5vw; }
  .hero__tag b { display: inline-block; padding: 1.4vw 4.4vw; background: #c8b9a0; color: #174538; font-size: 3.9vw; font-weight: 700; }
  .hero__tag span { display: flex; align-items: center; justify-content: center; gap: 3vw; margin-top: 2.6vw; font-size: 3.4vw; color: #d8cdb8; }
  .hero__tag span::before, .hero__tag span::after { content: ""; width: 1px; height: 3.6vw; background: rgba(216,205,184,.8); }
  .hero__badge { display: grid; left: 73.6vw; right: auto; top: 106.7vw; width: 20vw; height: 20vw; z-index: 2; }
  .hero__badge em { font-size: 3.2vw; }
  .hero__badge i { font-size: 2.6vw; }
  .hero__badge span b { font-size: 4.2vw; }
  .hero__script { left: 4vw; top: 178vw; bottom: auto; z-index: 2; }
  .hero__script-text { font-size: 11vw; transform: rotate(-12deg); }

  /* ---------- 사업개요 (사진이 모여드는 구역) ---------- */
  .brand { height: 166vw; min-height: 0; }
  .brand__floats .fl { right: auto; }
  .brand__floats .fl--1 { left: -13.3vw; top: 74.1vw; width: 40.6vw; }
  .brand__floats .fl--2 { left: 13.3vw;  top: 49.9vw; width: 30.3vw; }
  .brand__floats .fl--3 { left: 10.6vw;  top: 102vw;  width: 30.5vw; }
  .brand__floats .fl--4 { left: 56.3vw;  top: 98.7vw; width: 33.4vw; }
  .brand__floats .fl--5 { left: 59.8vw;  top: 41.6vw; width: 37.4vw; }
  .brand__floats .fl--6 { left: 71.3vw;  top: 70.7vw; width: 28.6vw; }
  .brand__center { position: static; transform: none; width: auto; }
  .brand__title { position: absolute; left: 0; right: 0; top: 25vw; font-family: var(--serif); font-weight: 500; font-size: 5.6vw; line-height: 1.55; }
  .m-br { display: inline; }
  .brand__logo { position: absolute; left: 50%; top: 75vw; transform: translateX(-50%); margin: 0; color: #174538; }
  .brand__logo .elif-logo { width: 22vw; }
  .brand__logo small { font-size: 2.9vw; margin-top: 1.6vw; white-space: nowrap; }
  .brand__desc { position: absolute; left: 0; right: 0; top: 123vw; margin: 0; font-size: 3.7vw; }
  .brand__en { top: 139vw; bottom: auto; font-size: 3vw; }

  /* ---------- 입지 (THE PRIME) : 좌우 슬라이드 ---------- */
  .prime__stage { display: none; }
  .prime-m { padding: 25vw 0 25vw; background: #f0efe2; }
  .prime-m__en { font-family: var(--label); font-weight: 500; font-size: 3.6vw; letter-spacing: .55em; line-height: 1; color: var(--green-deep); }
  .prime-m__en span { display: block; padding-left: 16.9vw; }
  .prime-m__en span + span { margin-top: 5vw; padding-left: 46.3vw; }
  .m-dots { display: flex; align-items: center; justify-content: space-between; margin: 5vw 16.2vw 0; }
  .m-dots__list { display: flex; align-items: center; gap: 5vw; }
  .m-dots__list i { position: relative; width: 1.6vw; height: 1.6vw; border-radius: 50%; background: #c9c4b6; transition: background .3s; }
  .m-dots__list i.on { background: #4a4843; }
  .m-dots__list i.on::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5.6vw; height: 5.6vw; border: 1px solid #4a4843; border-radius: 50%; transform: translate(-50%, -50%); }
  .m-dots__label { font-family: var(--label); font-size: 3.4vw; color: #8a8478; }
  .prime-m__track, .premium-m__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .prime-m__track::-webkit-scrollbar, .premium-m__track::-webkit-scrollbar { display: none; }
  .prime-m__track { margin-top: 6.7vw; }
  .prime-m__slide { flex: 0 0 100%; padding: 0 16.2vw; scroll-snap-align: start; }
  .prime-m__visual { position: relative; aspect-ratio: 433 / 782; }
  .prime-m__frame { position: absolute; left: 53.2%; top: 0; width: 46.8%; height: 100%; background: #004538; }
  .prime-m__media { position: absolute; left: 0; top: 3.8%; width: 93.1%; height: 82.1%; }
  .prime-m__script { position: absolute; left: 61%; top: 74%; font-family: var(--script); font-size: 13vw; line-height: 1; color: #fff; transform: rotate(-12deg); transform-origin: left bottom; white-space: nowrap; text-shadow: 0 4px 14px rgba(0,0,0,.25); }
  .prime-m__slide h3 { position: relative; margin-top: -6vw; font-size: 4.7vw; font-weight: 700; color: #222; }
  .prime-m__slide p { margin-top: 3vw; font-size: 3.75vw; line-height: 1.7; color: #7a756c; }

  /* ---------- 프리미엄 : 큰 이미지 + 좌우 카드 ---------- */
  .premium { background: #f0efe2; }
  .premium__pin { height: auto; min-height: 0; overflow: visible; }
  .premium__track { display: block; width: auto; transform: none !important; }
  .pr-panel--group, .pr-panel--row, .pr-panel--end { display: none; }
  .pr-panel--hero { position: relative; width: 100%; height: 125vw; padding: 0; }
  .pr-hero { left: 0; top: 0; width: 85.6vw; height: 125vw; }
  .pr-hero img { object-position: left center; }
  .pr-logo { display: block; left: 85.3vw; top: 0; height: 32vw; }
  .premium-m { padding: 15.5vw 0 25vw; }
  .premium-m__en { padding-left: 16.4vw; font-family: var(--label); font-weight: 500; font-size: 5vw; letter-spacing: .55em; line-height: 1; color: var(--green-deep); }
  .premium-m__desc { margin-top: 4vw; padding-left: 16.4vw; font-size: 3.75vw; line-height: 1.65; color: #4a4843; }
  .premium-m__track { gap: 8.3vw; margin-top: 15.5vw; padding: 0 16.2vw; scroll-padding: 0 16.2vw; }
  .premium-m__card { flex: 0 0 69vw; scroll-snap-align: start; }
  .premium-m__card figure { aspect-ratio: 443 / 282; }
  .premium-m__card h4 { margin-top: 7vw; font-size: 4.6vw; font-weight: 700; color: #222; }
  .premium-m__card p { margin-top: 2.6vw; font-size: 3.75vw; line-height: 1.65; color: #8a8478; }
  .premium-m .m-dots { margin-top: 9vw; }

  /* ---------- 브랜드 (일상을 새롭게 하다) ---------- */
  .vision { height: 188vw; min-height: 0; }
  .vision__lines, .vision__more { display: none; }
  .vision__head { top: 30.8vw; }
  .vision__head .elif-logo { width: 31.4vw; }
  .vision__head h2 { font-size: 6vw; margin-top: 3vw; }
  .vision__cols { top: 113.8vw; bottom: auto; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 0; font-size: 3.5vw; line-height: 1.65; }
  .vision__cols > * { text-align: center !important; padding: 0 6vw; }
  .vision__cols > div { display: contents; }
  .vision__cols strong { order: -1; font-size: 5vw; margin-bottom: 5vw; }
  .vision__cols > div > p { font-weight: 700; }
  .vision__cols > div > p::before, .vision__cols > p:last-child::before { content: ""; display: block; width: 1.8vw; height: 1.8vw; margin: 4vw auto; border-radius: 50%; background: #fff; }

  /* ---------- 오시는길 ---------- */
  .contact { padding: 25vw 0 25vw; background: #d8d3c6; }
  .contact__deco { display: none; }
  .contact__inner { max-width: none; }
  .contact__title { text-align: center; font-size: 9vw; margin-bottom: 9vw; }
  .contact__title small { display: block; margin: 2.4vw 0 0; font-size: 3.7vw; font-weight: 600; color: #2b2a27; }
  .contact__grid { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .contact__info { display: contents; }
  .contact__grid .map { order: 1; width: 75.3vw; max-width: none; aspect-ratio: 382 / 339; box-shadow: none; }
  .contact__grid .map + .map { order: 3; }
  .contact__info dl { order: 2; width: 75.3vw; margin: 0 0 6vw; padding: 7vw 4vw 8vw; background: #174538; color: #fff; text-align: center; }
  .contact__info dl + dl { order: 4; margin-bottom: 0; }
  .contact__info dt { padding: 0; margin: 0 0 4vw; border: 0; font-size: 4.5vw; color: #fff; }
  .contact__info dt::after { content: "."; }
  .contact__info dd { font-size: 3.7vw; line-height: 1.75; color: rgba(255,255,255,.9); }
  .contact__info .links { justify-content: center; gap: 2vw; margin-top: 5vw; }
  .contact__info .links a { width: 9vw; height: 9vw; border: 0; background: #fff; color: #174538; }

  /* ---------- 푸터 ---------- */
  .footer { flex-direction: column; align-items: center; gap: 0; padding: 12vw 6vw 16vw; text-align: center; }
  .footer__logo .logo-elif { width: 19vw; max-width: none; }
  .footer__logo .logo-name { font-size: 4.6vw; }
  .footer__info { width: 100%; margin-top: 6vw; padding-top: 6vw; border-top: 1px solid rgba(255,255,255,.12); font-size: 3vw; }
  .footer__info .gap { margin-left: 0; display: inline-block; margin-top: 1vw; }
  .footer__tel span { font-size: 3.4vw; }
  .footer__tel b { font-size: 5.4vw; }
  .footer__info .small { font-size: 2.4vw; }
  .footer__company { margin: 6vw 0 0; height: auto; width: 56vw; }
  .top-btn { top: -22vw; bottom: auto; right: 5vw; width: 12vw; height: 12vw; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
  .top-btn svg { width: 5vw; height: 5vw; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge svg { animation: none; }
}
