﻿:root {
    --ink: #15130f;
    --muted: #6f685e;
    --cream: #f6f1e8;
    --ivory: #fbf8f2;
    --line: rgba(31, 25, 18, 0.12);
    --gold: #b99a63;
    --gold-soft: #d9c497;
    --dark: #0d0d0b;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--cream);
    color: var(--ink);
    font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
    word-break: keep-all;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(21, 19, 15, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 19, 15, 0.045) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.estate-wrap {
    overflow: hidden;
}

.estate-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: grid;
    width: 100%;
    height: 86px;
    grid-template-columns: auto 1fr auto;
    gap: 36px;
    align-items: center;
    padding: 0 clamp(24px, 5vw, 72px);
    color: #fff;
    transition:
        color 360ms ease,
        background 360ms ease,
        border-color 360ms ease,
        backdrop-filter 360ms ease;
}

.estate-header.is-scrolled {
    border-bottom: 1px solid rgba(21, 19, 15, 0.08);
    background: rgba(251, 248, 242, 0.78);
    color: var(--ink);
    backdrop-filter: blur(18px);
}

.estate-logo {
    display: grid;
    gap: 3px;
    letter-spacing: 0.13em;
}

.estate-logo span {
    font-size: 18px;
    font-weight: 900;
}

.estate-logo small {
    font-size: 9px;
    font-weight: 800;
    opacity: 0.68;
}

.estate-nav {
    display: flex;
    justify-content: center;
    gap: clamp(22px, 3vw, 44px);
}

.estate-nav a {
    position: relative;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.82;
    transition: opacity 220ms ease, color 220ms ease;
}

.estate-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 280ms var(--ease);
}

.estate-nav a:hover {
    color: var(--gold);
    opacity: 1;
}

.estate-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-btn {
    display: inline-flex;
    min-width: 116px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    transition:
        transform 240ms ease,
        background 240ms ease,
        color 240ms ease,
        box-shadow 240ms ease;
}

.header-btn:hover {
    background: var(--gold);
    color: #111;
    box-shadow: 0 18px 45px rgba(185, 154, 99, 0.24);
    transform: translateY(-2px);
}

section {
    position: relative;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 170px clamp(24px, 5vw, 72px) 92px;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
}

.hero-video,
.hero-video video,
.hero-overlay,
.hero-grid {
    position: absolute;
    inset: 0;
}

.hero-video {
    overflow: hidden;
    transform: scale(1.08);
    transition: transform 1800ms var(--ease);
}

.is-ready .hero-video {
    transform: scale(1);
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background:
        radial-gradient(circle at 72% 35%, rgba(185, 154, 99, 0.16), transparent 34%),
        linear-gradient(90deg, rgba(4, 4, 4, 0.84), rgba(4, 4, 4, 0.52) 42%, rgba(4, 4, 4, 0.2));
}

.hero-grid {
    opacity: 0.18;
    background:
        linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
}

.eyebrow,
.section-head span,
.life-left span,
.contact-content span {
    display: block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-btns,
.hero-side-card,
.scroll-mark {
    opacity: 0;
    transform: translateY(42px);
    transition:
        opacity 900ms var(--ease),
        transform 900ms var(--ease);
}

.is-ready .hero-content .eyebrow { transition-delay: 120ms; }
.is-ready .hero-content h1 { transition-delay: 240ms; }
.is-ready .hero-content p { transition-delay: 390ms; }
.is-ready .hero-btns { transition-delay: 520ms; }
.is-ready .hero-side-card { transition-delay: 680ms; }
.is-ready .scroll-mark { transition-delay: 760ms; }

.is-ready .hero-content .eyebrow,
.is-ready .hero-content h1,
.is-ready .hero-content p,
.is-ready .hero-btns,
.is-ready .hero-side-card,
.is-ready .scroll-mark {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    max-width: 540px;
    font-size: clamp(36px, 3.85vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.055em;
    margin-bottom: 26px;
}

.hero-content p {
    max-width: 650px;
    color: rgba(255,255,255,0.74);
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.85;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
}

.btn-main,
.btn-sub,
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 52px;
    border-radius: 999px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 900;
    transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.btn-main,
.contact-btn {
    background: var(--gold);
    color: #111;
}

.btn-sub {
    border: 1px solid rgba(255,255,255,0.38);
    color: #fff;
}

.btn-main::after,
.btn-sub::after,
.contact-btn::after {
    content: "→";
    transition: transform 240ms ease;
}

.btn-main:hover,
.btn-sub:hover,
.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(185, 154, 99, 0.24);
}

.btn-main:hover::after,
.btn-sub:hover::after,
.contact-btn:hover::after {
    transform: translateX(6px);
}

.hero-side-card {
    position: absolute;
    right: clamp(24px, 5vw, 72px);
    bottom: 76px;
    z-index: 2;
    width: min(360px, calc(100% - 48px));
    border: 1px solid rgba(255,255,255,0.18);
    padding: 28px;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 26px 80px rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);
}

.hero-side-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.hero-side-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.3;
}

.hero-side-card p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.7;
}

.scroll-mark {
    position: absolute;
    right: clamp(24px, 5vw, 72px);
    top: 50%;
    z-index: 2;
    display: grid;
    gap: 14px;
    justify-items: center;
    color: rgba(255,255,255,0.72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    writing-mode: vertical-rl;
}

.scroll-mark i {
    width: 1px;
    height: 70px;
    background: linear-gradient(#fff, transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.45; }
    50% { transform: scaleY(1); opacity: 1; }
}

.section-head {
    max-width: 880px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-head.left {
    margin-left: 0;
    text-align: left;
}

.section-head h2,
.life-left h2,
.contact-content h2 {
    color: var(--ink);
    font-size: clamp(34px, 4.25vw, 62px);
    line-height: 1.12;
    letter-spacing: -0.055em;
}

.section-head p,
.life-left p,
.contact-content p {
    margin-top: 24px;
    color: var(--muted);
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.85;
}

.area-section,
.service-section,
.property-section,
.insight-section {
    padding: clamp(100px, 11vw, 160px) clamp(24px, 5vw, 72px);
    background: var(--cream);
}

.area-grid,
.life-grid,
.property-grid,
.insight-grid {
    display: grid;
    gap: 18px;
}

.area-grid {
    grid-template-columns: repeat(4, 1fr);
}

.area-card,
.life-card,
.property-card,
.service-card,
.insight-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    transition:
        transform 420ms var(--ease),
        box-shadow 420ms var(--ease),
        border-color 420ms var(--ease);
}

.area-card,
.life-card {
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    color: #fff;
    background: #191713;
}

.area-card::before,
.life-card::before,
.property-img,
.gallery-item,
.contact-bg {
    background-size: cover;
    background-position: center;
}

.area-card::before,
.life-card::before {
    content: "";
    position: absolute;
    inset: 0;
    transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.area-card::after,
.life-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.76)),
        radial-gradient(circle at 50% 0, rgba(185,154,99,0.22), transparent 45%);
}

.area-card:hover,
.life-card:hover,
.property-card:hover,
.service-card:hover,
.insight-card:hover {
    transform: translateY(-10px);
    border-color: rgba(185, 154, 99, 0.42);
    box-shadow: 0 30px 80px rgba(31, 25, 18, 0.16);
}

.area-card:hover::before,
.life-card:hover::before {
    filter: brightness(1.05);
    transform: scale(1.08);
}

.area-card div,
.life-card h3,
.life-card p {
    position: relative;
    z-index: 2;
}

.area-card span {
    display: block;
    margin-bottom: 14px;
    color: var(--gold-soft);
    font-size: 14px;
    font-weight: 900;
}

.area-card h3,
.life-card h3 {
    margin-bottom: 10px;
    font-size: clamp(26px, 2.2vw, 36px);
    letter-spacing: -0.04em;
}

.area-card p,
.life-card p {
    color: rgba(255,255,255,0.76);
    font-size: 15px;
    line-height: 1.65;
}

.area01::before { background-image: url('./img/area-songdo.jpg'); }
.area02::before { background-image: url('./img/area-cheongna.jpg'); }
.area03::before { background-image: url('./img/area-pangyo.jpg'); }
.area04::before { background-image: url('./img/area-gangnam.jpg'); }

.life-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(36px, 6vw, 88px);
    padding: clamp(100px, 11vw, 160px) clamp(24px, 5vw, 72px);
    background: #0e0e0c;
    color: #fff;
}

.life-section::before,
.gallery-section::before,
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 82px 82px;
    opacity: 0.4;
    pointer-events: none;
}

.life-left {
    position: sticky;
    top: 126px;
    height: fit-content;
}

.life-left h2,
.contact-content h2 {
    color: #fff;
}

.life-left h2 {
    max-width: 480px;
    font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1.18;
}

.life-left p,
.contact-content p {
    color: rgba(255,255,255,0.68);
}

.life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.life-card {
    min-height: 360px;
}

.life01::before { background-image: url('./img/lifestyle-city.jpg'); }
.life02::before { background-image: url('./img/lifestyle-family.jpg'); }
.life03::before { background-image: url('./img/lifestyle-view.jpg'); }
.life04::before { background-image: url('./img/lifestyle-invest.jpg'); }

.service-section {
    padding-top: clamp(78px, 8vw, 120px);
    padding-bottom: clamp(82px, 8.5vw, 124px);
    background:
        radial-gradient(circle at 82% 22%, rgba(185, 154, 99, 0.13), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.78), rgba(246,241,232,0.92)),
        var(--ivory);
}

.service-section .section-head,
.insight-section .section-head {
    margin-bottom: 38px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1.02fr 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.service-card {
    min-height: 260px;
    padding: 34px 32px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.92), rgba(247,242,233,0.72));
    backdrop-filter: blur(12px);
}

.service-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -48px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(185, 154, 99, 0.22);
    border-radius: 50%;
    transition: transform 520ms var(--ease), opacity 520ms var(--ease);
}

.service-card:hover::after {
    opacity: 0.9;
    transform: translate(-12px, -10px) scale(1.08);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 36px;
    width: 46px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0.34);
    transform-origin: left;
    transition: transform 360ms var(--ease);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card span,
.property-info span,
.insight-card span {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.service-card span {
    margin-bottom: 34px;
    font-size: 13px;
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: clamp(22px, 1.8vw, 29px);
    letter-spacing: -0.045em;
}

.service-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.72;
}

.property-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.property-card {
    background: rgba(255,255,255,0.78);
}

.property-img {
    height: 300px;
    transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.property-card:hover .property-img {
    filter: saturate(1.05) contrast(1.04);
    transform: scale(1.065);
}

.property-info {
    padding: 28px;
}

.property-info span {
    margin-bottom: 14px;
}

.property-info h3 {
    margin-bottom: 16px;
    font-size: clamp(21px, 1.75vw, 28px);
    line-height: 1.35;
    letter-spacing: -0.045em;
}

.property-info p {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 15px;
}

.property-info strong {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-size: 16px;
}

.property-info strong::after {
    content: "→";
    color: var(--gold);
    transition: transform 240ms ease;
}

.property-card:hover .property-info strong::after {
    transform: translateX(6px);
}

.property01 { background-image: url('./img/space01.jpg'); }
.property02 { background-image: url('./img/space02.jpg'); }
.property03 { background-image: url('./img/space03.jpg'); }
.property04 { background-image: url('./img/space04.jpg'); }
.property05 { background-image: url('./img/space05.jpg'); }
.property06 { background-image: url('./img/space06.jpg'); }

.insight-section {
    padding-top: clamp(76px, 8vw, 116px);
    padding-bottom: clamp(78px, 8vw, 118px);
}

.insight-grid {
    gap: 16px;
}

.gallery-section {
    padding: clamp(100px, 11vw, 160px) clamp(24px, 5vw, 72px);
    background: #0e0e0c;
    color: #fff;
}

.gallery-section .section-head h2 {
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.9fr 0.9fr;
    grid-template-rows: 280px 280px;
    gap: 18px;
}

.gallery-item {
    min-height: 260px;
    border: 1px solid rgba(255,255,255,0.1);
    filter: grayscale(8%);
    transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.gallery-item:hover {
    filter: grayscale(0) brightness(1.07);
    transform: scale(1.018);
}

.gallery01 {
    grid-row: span 2;
    background-image: url('./img/gallery01.jpg');
}

.gallery02 { background-image: url('./img/gallery02.jpg'); }
.gallery03 { background-image: url('./img/gallery03.jpg'); }
.gallery04 { background-image: url('./img/gallery04.jpg'); }
.gallery05 { background-image: url('./img/gallery05.jpg'); }

.insight-card {
    min-height: 220px;
    padding: 30px 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,247,241,0.82));
}

.insight-card span {
    margin-bottom: 22px;
}

.insight-card h3 {
    margin-bottom: 14px;
    font-size: clamp(20px, 1.55vw, 25px);
    line-height: 1.36;
    letter-spacing: -0.045em;
}

.insight-card p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.72;
}

.contact-section {
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(100px, 11vw, 160px) clamp(24px, 5vw, 72px);
    overflow: hidden;
    background: #0d0d0b;
    color: #fff;
    text-align: center;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 50%, rgba(185,154,99,0.22), transparent 30%),
        linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.76)),
        url('./img/contact-bg.jpg') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 1600ms var(--ease);
}

.contact-section.is-visible .contact-bg {
    transform: scale(1);
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.contact-content h2 {
    font-size: clamp(42px, 5.8vw, 86px);
}

.contact-btn {
    margin-top: 44px;
}

.estate-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 42px clamp(24px, 5vw, 72px);
    background: #080807;
    color: #fff;
}

.estate-footer strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    letter-spacing: 0.12em;
}

.estate-footer p,
.estate-footer span {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}

.reveal-up,
.stagger-list > * {
    opacity: 0;
    transform: translateY(52px);
    transition:
        opacity 850ms var(--ease),
        transform 850ms var(--ease);
}

.reveal-section.is-visible .reveal-up,
.reveal-section.is-visible .stagger-list > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-section.is-visible .stagger-list > *:nth-child(1) { transition-delay: 80ms; }
.reveal-section.is-visible .stagger-list > *:nth-child(2) { transition-delay: 170ms; }
.reveal-section.is-visible .stagger-list > *:nth-child(3) { transition-delay: 260ms; }
.reveal-section.is-visible .stagger-list > *:nth-child(4) { transition-delay: 350ms; }
.reveal-section.is-visible .stagger-list > *:nth-child(5) { transition-delay: 440ms; }
.reveal-section.is-visible .stagger-list > *:nth-child(6) { transition-delay: 530ms; }

@media (max-width: 1180px) {
    .estate-nav {
        display: none;
    }

    .estate-header {
        grid-template-columns: auto auto;
    }

    .area-grid,
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-side-card {
        right: 24px;
        bottom: 32px;
    }
}

@media (max-width: 860px) {
    .estate-header {
        height: 74px;
        padding: 0 20px;
    }

    .header-btn {
        min-width: 96px;
        height: 38px;
        font-size: 12px;
    }

    .hero-section {
        min-height: 780px;
        padding: 126px 22px 210px;
    }

    .hero-side-card {
        left: 22px;
        right: 22px;
        bottom: 72px;
        width: auto;
    }

    .scroll-mark {
        display: none;
    }

    .area-grid,
    .life-section,
    .life-grid,
    .service-grid,
    .property-grid,
    .gallery-grid,
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .life-left {
        position: static;
    }

    .gallery-grid {
        grid-template-rows: none;
    }

    .gallery01 {
        grid-row: auto;
    }

    .area-card,
    .life-card {
        min-height: 320px;
    }

    .property-img {
        height: 250px;
    }

    .estate-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
