/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --bg-tint: #faf8f4;
  --ink: #17181c;
  --ink-2: #3d3f47;
  --ink-3: #6d707a;
  --line: #e6e2d8;
  --line-2: #efece5;
  --accent: #1f3b8b;
  --accent-2: #b48a3a;
  --accent-soft: #eef2fb;
  --shadow: 0 12px 40px rgba(19, 22, 34, .08);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1200px;
}

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.only-desktop { display: none; }
@media (min-width: 900px){ .only-desktop { display: inline; } }

/* ===== Top info bar ===== */
.topbar {
  background: linear-gradient(90deg, #10152a 0%, #1a2144 55%, #0e1220 100%);
  color: #fff;
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  align-items: center; justify-content: space-between;
}
.topbar__project {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-size: 14px; line-height: 1.4;
}
.topbar__badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-2); color: #14172a;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
}
.topbar__project b { font-weight: 700; letter-spacing: .01em; }
.topbar__sub { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500; }
.topbar__tel {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.topbar__tel:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); transform: translateY(-1px); }
.topbar__tel-label { font-size: 11px; letter-spacing: .16em; color: rgba(255,255,255,.75); font-weight: 600; text-transform: uppercase; }
.topbar__tel-num { font-size: 16px; font-weight: 800; letter-spacing: .02em; color: #fff; }
@media (max-width: 640px){
  .topbar__inner { padding: 10px 16px; }
  .topbar__project { font-size: 13px; gap: 6px 10px; }
  .topbar__sub { display: block; width: 100%; font-size: 12px; }
  .topbar__tel-num { font-size: 15px; }
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .04em;
}
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800;
}
.brand__name { font-size: 15px; }
.brand__name em { font-style: normal; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.nav__links {
  display: none; gap: 22px; margin-left: 22px; flex: 1;
  font-size: 14px; color: var(--ink-2);
}
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  transition: transform .15s ease;
}
.nav__cta:hover { transform: translateY(-1px); }

@media (min-width: 860px){
  .nav__links { display: flex; }
  .nav__inner { padding: 18px 32px; }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  background: #0e1220;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('assets/yongin-1.png');
  background-size: cover; background-position: center;
  transform: scale(1.06);
  animation: heroZoom 16s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,28,.15) 0%, rgba(10,14,28,.55) 60%, rgba(10,14,28,.85) 100%),
    linear-gradient(90deg, rgba(10,14,28,.55) 0%, rgba(10,14,28,0) 45%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 120px 20px 80px;
  color: #fff;
}
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  margin-bottom: 22px;
}
.eyebrow--dark { color: var(--ink-3); border-color: var(--line); }
.eyebrow--light { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.4); }
.hero__title {
  font-family: "Pretendard", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -.015em;
  display: flex; flex-direction: column; gap: 8px;
}
.hero__title--accent {
  font-family: "Pretendard", sans-serif;
  font-weight: 800;
  color: #ffffff;
}
.hero__title-sub {
  font-family: "Pretendard", sans-serif;
  font-size: clamp(15px, 1.9vw, 22px);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: .01em;
}
.hero__sub {
  max-width: 560px;
  font-size: clamp(15px, 1.5vw, 17px);
  color: rgba(255,255,255,.85);
  margin: 0 0 24px;
}
.hero__tel {
  display: inline-flex; align-items: baseline; gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  margin-bottom: 28px;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.hero__tel:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }
.hero__tel-label {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.75); font-weight: 700;
}
.hero__tel-num {
  font-family: "Playfair Display", "Pretendard", serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700; color: #fff;
  letter-spacing: .02em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: #fff; color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--wide { width: 100%; padding: 16px 20px; font-size: 15px; }

.hero__facts {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 620px;
}
.hero__facts li {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  border-radius: 14px;
}
.hero__facts b {
  display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 6px; font-weight: 600;
}
.hero__facts span { font-size: 15px; font-weight: 600; }
@media (min-width: 720px){
  .hero__facts { grid-template-columns: repeat(4, 1fr); }
}

.hero__scroll {
  position: absolute; z-index: 2;
  left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 14px;
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  display: block; width: 2px; height: 8px; background: #fff; border-radius: 2px;
  animation: dot 1.6s infinite;
}
@keyframes dot { 0%{transform: translateY(0); opacity:1} 100%{transform: translateY(10px); opacity:0} }
@media (min-width: 900px){ .hero__scroll { display: flex; } }

/* ===== Section ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 20px;
}
.section--tinted {
  max-width: none;
  padding-left: 20px; padding-right: 20px;
  background: var(--bg-tint);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.section--tinted > .section__head,
.section--tinted > .cards,
.section--tinted > .floors {
  max-width: var(--maxw);
  margin-left: auto; margin-right: auto;
}

.section__head { text-align: center; margin-bottom: 56px; }
.section__head h2 {
  font-family: "Playfair Display", "Pretendard", serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.section__lead {
  max-width: 680px; margin: 0 auto;
  color: var(--ink-2);
  font-size: clamp(14px, 1.5vw, 16px);
}
.section__lead b { color: var(--ink); font-weight: 600; }

/* ===== Overview ===== */
.overview {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
.overview__media {
  background: var(--bg-soft);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.overview__media img { border-radius: 12px; }
.overview__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat__num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 40px; font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  display: block; font-size: 13px; color: var(--ink-2); font-weight: 600;
}
.stat__label em { display: block; font-style: normal; font-weight: 400; color: var(--ink-3); margin-top: 4px; font-size: 12px; }

@media (min-width: 900px){
  .overview { grid-template-columns: 1.15fr 1fr; gap: 60px; }
}

/* ===== Cards ===== */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px){ .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px){ .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--pop:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 20px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ===== Type gallery ===== */
.type-hero {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  margin-bottom: 40px;
  align-items: center;
}
.type-hero img {
  border-radius: 14px; cursor: zoom-in;
  background: #fff;
}
.type-hero__cap p { color: var(--ink-2); font-size: 14px; margin: 6px 0 0; }
.type-hero__cap .eyebrow { color: var(--ink-3); border-color: var(--line); }
@media (min-width: 900px){
  .type-hero { grid-template-columns: 1.35fr 1fr; gap: 40px; padding: 32px; }
}

.cards--types .type-card {
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.type-card__img {
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.type-card__img img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 16px;
  transition: transform .35s ease;
}
.type-card__img:hover img { transform: scale(1.05); }
.type-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line);
}
.type-card__body { padding: 20px 22px 24px; }
.type-card__body h3 { margin: 0 0 6px; font-size: 16px; }
.type-card__body p { margin: 0; font-size: 13px; color: var(--ink-3); }
.type-card__meta {
  display: flex; gap: 14px; margin-top: 14px;
  font-size: 12px; color: var(--ink-2);
}
.type-card__meta span { display: inline-flex; gap: 4px; align-items: center; }
.type-card__meta b { color: var(--ink); font-weight: 600; }

/* ===== Floors ===== */
.floors {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
.floor {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: center;
  transition: box-shadow .2s ease;
}
.floor:hover { box-shadow: var(--shadow); }
.floor__img { background: var(--bg-soft); padding: 24px; cursor: zoom-in; }
.floor__img img { border-radius: 10px; margin: 0 auto; max-height: 460px; object-fit: contain; }
.floor__body { padding: 28px; }
.floor__tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.floor__body h3 { margin: 0 0 10px; font-size: 22px; font-family: "Playfair Display", serif; font-weight: 500; }
.floor__body p { color: var(--ink-2); margin: 0 0 16px; font-size: 14px; }
.floor__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.floor__body li {
  position: relative;
  padding-left: 18px;
  font-size: 13px; color: var(--ink-2);
}
.floor__body li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
}
@media (min-width: 900px){
  .floor { grid-template-columns: 1.3fr 1fr; }
  .floor:nth-child(even) { grid-template-columns: 1fr 1.3fr; }
  .floor:nth-child(even) .floor__img { order: 2; }
}

/* ===== Contact ===== */
.section--contact {
  max-width: none;
  padding-left: 20px; padding-right: 20px;
  background: linear-gradient(160deg, #10152a 0%, #1a2144 55%, #0e1220 100%);
  color: #fff;
}
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
.contact__copy h2 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 42px);
  margin: 0 0 18px;
}
.contact__copy p { color: rgba(255,255,255,.8); margin: 0 0 22px; max-width: 460px; }
.contact__perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact__perks li {
  position: relative; padding-left: 26px; font-size: 14px; color: rgba(255,255,255,.85);
}
.contact__perks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: rgba(255,255,255,.9); font-weight: 700;
}

.form {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}
.form h3 { margin: 0 0 22px; font-size: 20px; }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field__label em { color: #d84a3a; font-style: normal; margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,59,139,.14);
}
.field textarea { resize: vertical; min-height: 90px; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2);
  margin: 6px 0 20px;
}
.check input { margin-top: 3px; accent-color: var(--accent); }

.form__note { margin: 14px 0 0; min-height: 20px; font-size: 13px; text-align: center; }
.form__note.is-ok { color: #1a7f43; }
.form__note.is-err { color: #b93a2c; }

@media (min-width: 900px){
  .contact { grid-template-columns: 1fr 1fr; gap: 60px; }
  .section--contact { padding-top: 100px; padding-bottom: 100px; }
}

/* ===== Footer ===== */
.foot {
  background: #0a0d18; color: rgba(255,255,255,.7);
  padding: 40px 20px;
}
.foot__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px; justify-content: space-between; align-items: flex-start;
}
.foot__brand { margin: 0 0 4px; font-weight: 700; color: #fff; letter-spacing: .12em; }
.foot__brand em { font-style: normal; color: rgba(255,255,255,.75); margin-left: 4px; }
.foot__addr { margin: 0; font-size: 13px; }
.foot__tel { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.3); }
.foot__tel:hover { color: #ffffff; border-color: rgba(255,255,255,.7); }
.foot__copy { font-size: 12px; margin: 0; color: rgba(255,255,255,.5); }
@media (min-width: 720px){
  .foot__inner { flex-direction: row; align-items: center; }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 8, 18, .92);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  max-width: 1100px; width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox__stage img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  background: #fff; border-radius: 12px;
}
.lightbox__cap {
  color: rgba(255,255,255,.85); font-size: 13px; margin: 0;
  text-align: center;
}
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: #fff; font-size: 18px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.lightbox__close:hover { transform: rotate(90deg); background: rgba(255,255,255,.2); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ===== Small phones ===== */
@media (max-width: 480px){
  .section { padding: 70px 18px; }
  .hero__content { padding: 100px 18px 60px; }
  .form { padding: 26px 20px; }
}
