:root {
    --ink: #17130e;
    --muted: #71695f;
    --paper: #f8f4ed;
    --ivory: #fffaf2;
    --line: rgba(39, 31, 22, 0.12);
    --gold: #c59d5f;
    --gold-soft: #dcc18b;
    --dark: #0d0b08;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
    line-height: 1.6;
    word-break: keep-all;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(23, 19, 14, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 19, 14, 0.04) 1px, transparent 1px);
    background-size: 86px 86px;
}

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

img {
    display: block;
    width: 100%;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 82px;
    color: #fff;
    transition: color 320ms ease, background 320ms ease, border-color 320ms ease;
}

.site-header.is-scrolled {
    border-bottom: 1px solid rgba(23, 19, 14, 0.08);
    background: rgba(248, 244, 237, 0.78);
    color: var(--ink);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1480px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(22px, 4vw, 56px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 36px;
    align-items: center;
}

.logo strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.logo span {
    display: block;
    margin-top: -2px;
    color: var(--gold-soft);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.38em;
}

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

.nav a {
    position: relative;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    opacity: 0.86;
    transition: color 220ms ease, opacity 220ms ease;
}

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

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

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

.header-contact {
    display: inline-flex;
    min-width: 108px;
    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;
}

.header-contact:hover {
    background: var(--gold);
    color: #111;
    transform: translateY(-2px);
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background: var(--dark);
}

.hero-slider,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.12);
    transition:
        opacity 1200ms ease,
        transform 7200ms linear;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    background:
        radial-gradient(circle at 78% 44%, rgba(197, 157, 95, 0.18), transparent 32%),
        linear-gradient(90deg, rgba(8, 7, 5, 0.78), rgba(8, 7, 5, 0.48) 45%, rgba(8, 7, 5, 0.18));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1480px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 150px clamp(22px, 4vw, 56px) 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow,
.section-label {
    display: block;
    margin-bottom: 18px;
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.hero-inner .eyebrow,
.hero-inner h1,
.hero-inner p,
.hero-actions,
.hero-progress {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

body.is-ready .hero-inner .eyebrow { transition-delay: 120ms; }
body.is-ready .hero-inner h1 { transition-delay: 240ms; }
body.is-ready .hero-inner p { transition-delay: 380ms; }
body.is-ready .hero-actions { transition-delay: 520ms; }
body.is-ready .hero-progress { transition-delay: 700ms; }

body.is-ready .hero-inner .eyebrow,
body.is-ready .hero-inner h1,
body.is-ready .hero-inner p,
body.is-ready .hero-actions,
body.is-ready .hero-progress {
    opacity: 1;
    transform: translateY(0);
}

.hero-inner h1 {
    max-width: 640px;
    font-size: clamp(48px, 6vw, 92px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.065em;
}

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

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

.btn-gold,
.btn-line {
    display: inline-flex;
    width: fit-content;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 999px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 900;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

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

.btn-line {
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn-line.light {
    border-color: rgba(255,255,255,0.42);
    color: #fff;
}

.btn-gold::after,
.btn-line::after {
    content: "→";
    transition: transform 240ms ease;
}

.btn-gold:hover,
.btn-line:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 46px rgba(197, 157, 95, 0.2);
    transform: translateY(-3px);
}

.btn-gold:hover::after,
.btn-line:hover::after {
    transform: translateX(6px);
}

.hero-progress {
    position: absolute;
    right: clamp(22px, 4vw, 56px);
    bottom: 68px;
    z-index: 3;
    display: flex;
    gap: 14px;
    align-items: center;
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.hero-progress i {
    position: relative;
    width: 96px;
    height: 1px;
    background: rgba(255,255,255,0.26);
    overflow: hidden;
}

.hero-progress b {
    position: absolute;
    inset: 0;
    width: 0;
    background: var(--gold);
    transition: width 5600ms linear;
}

.hero-progress b.is-running {
    width: 100%;
}

.section-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(22px, 4vw, 56px);
}

.section-label {
    color: var(--gold);
}

.about-section,
.service-section,
.works-section {
    padding: clamp(96px, 10vw, 150px) 0;
}

.about-section {
    background: var(--paper);
}

.about-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: clamp(42px, 7vw, 92px);
    align-items: center;
}

.about-text h2,
.section-title h2,
.process-head h2,
.contact-title h2 {
    font-size: clamp(34px, 4.2vw, 62px);
    font-weight: 520;
    line-height: 1.14;
    letter-spacing: -0.055em;
}

.about-text p {
    max-width: 640px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.about-image,
.service-card,
.work-card {
    overflow: hidden;
}

.about-image {
    height: min(560px, 48vw);
    min-height: 340px;
    border: 1px solid var(--line);
}

.about-image img,
.service-card img,
.work-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.about-image:hover img,
.service-card:hover img,
.work-card:hover img {
    filter: contrast(1.04) saturate(1.05);
    transform: scale(1.06);
}

.service-section {
    background: var(--ivory);
}

.section-title {
    margin-bottom: 42px;
}

.service-grid,
.works-grid,
.process-grid {
    display: grid;
    gap: 18px;
}

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

.service-card {
    position: relative;
    border: 1px solid var(--line);
    background: #fff;
    transition: transform 420ms var(--ease), box-shadow 420ms var(--ease), border-color 420ms var(--ease);
}

.service-card:hover,
.work-card:hover,
.process-card:hover {
    border-color: rgba(197, 157, 95, 0.42);
    box-shadow: 0 30px 80px rgba(34, 26, 16, 0.13);
    transform: translateY(-9px);
}

.service-card img {
    height: 240px;
}

.service-card div {
    padding: 28px 26px 32px;
}

.service-card span,
.work-card p {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.service-card h3,
.work-card h3,
.process-card h3 {
    font-size: clamp(21px, 1.6vw, 27px);
    line-height: 1.32;
    letter-spacing: -0.04em;
}

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

.service-card.no-image {
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background:
        linear-gradient(rgba(13, 11, 8, 0.54), rgba(13, 11, 8, 0.72)),
        url('./img/interior-contact.jpg') center/cover no-repeat;
}

.service-card.no-image p {
    color: rgba(255,255,255,0.74);
}

.works-section {
    background: var(--paper);
}

.row-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

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

.work-card {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.82);
    transition: transform 420ms var(--ease), box-shadow 420ms var(--ease), border-color 420ms var(--ease);
}

.work-card img {
    height: 250px;
}

.work-card div {
    padding: 24px 24px 28px;
}

.work-card p {
    margin: 8px 0 0;
}

.process-section {
    position: relative;
    padding: clamp(88px, 9vw, 132px) 0;
    color: #fff;
    background:
        linear-gradient(rgba(13, 11, 8, 0.78), rgba(13, 11, 8, 0.9)),
        url('./img/interior-main.jpg') center/cover fixed;
}

.process-grid {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 42px;
}

.process-card {
    border-top: 1px solid rgba(197, 157, 95, 0.52);
    padding: 30px 0 8px;
    transition: transform 360ms var(--ease), border-color 360ms ease;
}

.process-card strong {
    display: block;
    margin-bottom: 22px;
    color: var(--gold-soft);
    font-size: 34px;
    font-weight: 300;
}

.process-card p {
    margin-top: 10px;
    color: rgba(255,255,255,0.68);
}

.contact-section {
    position: relative;
    overflow: hidden;
    padding: clamp(88px, 9vw, 132px) 0;
    background: var(--dark);
    color: #fff;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 50%, rgba(197, 157, 95, 0.2), transparent 28%),
        linear-gradient(rgba(13,11,8,0.74), rgba(13,11,8,0.88)),
        url('./img/interior-contact.jpg') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 1400ms var(--ease);
}

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

.contact-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 0.65fr) auto;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.contact-info {
    border-left: 1px solid rgba(255,255,255,0.18);
    padding-left: 42px;
}

.contact-info h3 {
    margin-bottom: 18px;
    font-size: 22px;
}

.contact-info p {
    margin-top: 8px;
    color: rgba(255,255,255,0.68);
}

.footer {
    background: #080706;
    color: #fff;
    padding: 34px 0;
}

.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(22px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

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

.reveal-image {
    clip-path: inset(12% 0 12% 0);
}

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

.reveal-section.is-visible .reveal-image {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(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; }

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

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

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

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 760px) {
    .site-header {
        height: 70px;
    }

    .hero-inner {
        padding-top: 120px;
    }

    .hero-inner h1 {
        font-size: 42px;
    }

    .hero-progress {
        right: 22px;
        bottom: 34px;
    }

    .about-inner,
    .service-grid,
    .works-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .row-title {
        display: block;
    }

    .row-title .btn-line {
        margin-top: 22px;
    }

    .service-card.no-image {
        min-height: 320px;
    }

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