/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 112.5%; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; }

/* ---------- tokens ---------- */
:root {
    --white: #ffffff;
    --silver: #f2efea;
    --silver-2: #ececea;
    --line: #cfc4b8;
    --ink: #1f1c1a;
    --ink-soft: #534c46;
    --cherry: #b33a2b;
    --cherry-bright: #932e21;
    --serif: 'Noto Serif KR', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: #fbfaf8;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 2px solid var(--cherry);
    outline-offset: 2px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.overline {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    color: var(--cherry);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
}
.overline--badge {
    display: inline-block;
    background: var(--silver-2);
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 1rem;
}

.section-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.4;
    margin: 12px auto 0;
    text-align: center;
}
#before-after .section-title,
#spaces .section-title {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.section-lead { color: var(--ink-soft); margin: 16px auto 0; max-width: 46em; text-align: center; font-size: 1.08rem; text-wrap: balance; }

section { padding: 120px 0; }
section + section { border-top: 1px solid var(--line); }
section:nth-of-type(even) { background: var(--silver); }

.page-hero__text .overline { text-align: left; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

.big-num {
    font-family: var(--serif);
    font-weight: 900;
    color: var(--silver-2);
    -webkit-text-stroke: 1px var(--line);
}

/* ---------- header ---------- */
.nav-toggle { display: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251,250,248,0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}
.logo__icon { color: var(--cherry); flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 1rem; font-weight: 600; }
.main-nav a:not(.btn-call):hover { color: var(--cherry); }
.main-nav .btn-call { background: var(--cherry); border-color: var(--cherry); color: var(--white); }
.main-nav .btn-call:hover { background: var(--cherry-bright); border-color: var(--cherry-bright); }
.btn-call {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn-call:hover { background: var(--cherry); border-color: var(--cherry); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(179,58,43,0.28); }
.btn-call--lg {
    padding: 15px 36px;
    font-size: 0.95rem;
    margin-top: 22px;
    background: linear-gradient(135deg, var(--cherry), var(--cherry-bright));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 10px 24px rgba(179,58,43,0.24);
}
.btn-call--lg:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(179,58,43,0.32); }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}
.nav-burger span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* ---------- sticky CTA ---------- */
.cta-side {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--cherry), var(--cherry-bright));
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    padding: 20px 14px;
    border-radius: 10px 0 0 10px;
    z-index: 40;
    box-shadow: -3px 3px 14px rgba(0,0,0,0.18);
    animation: cta-pulse 2.4s ease-in-out infinite;
}
.cta-side::before { content: '📞'; display: block; font-size: 1.3rem; margin-bottom: 4px; }
@keyframes cta-pulse {
    0%, 100% { box-shadow: -3px 3px 14px rgba(0,0,0,0.18); }
    50% { box-shadow: -3px 3px 14px rgba(0,0,0,0.18), 0 0 0 7px rgba(179,58,43,0.18); }
}
@media (prefers-reduced-motion: reduce) { .cta-side { animation: none; } }
.cta-mobile {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 40;
    background: linear-gradient(135deg, var(--cherry), var(--cherry-bright));
    color: var(--white);
    text-align: center;
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    padding: 17px 0;
    padding-bottom: max(17px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
    animation: cta-mobile-pulse 2.4s ease-in-out infinite;
}
.cta-mobile::before { content: '📞 '; }
@keyframes cta-mobile-pulse {
    0%, 100% { box-shadow: 0 -4px 16px rgba(0,0,0,0.18); }
    50% { box-shadow: 0 -4px 16px rgba(0,0,0,0.18), 0 0 0 6px rgba(179,58,43,0.2); }
}
@media (prefers-reduced-motion: reduce) { .cta-mobile { animation: none; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 0; border-top: none; }
.hero__inner { text-align: center; }
.hero h1 {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 6rem);
    margin: 18px 0 22px;
    letter-spacing: -0.01em;
}
.hero__copy {
    max-width: 32em;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 1.18rem;
    text-wrap: balance;
}
.hero-photo {
    position: relative;
    max-width: 920px;
    aspect-ratio: 4/3;
    margin: 48px auto 0;
    border: 1px solid var(--line);
    overflow: hidden;
    touch-action: pan-y;
}
.hero-photo__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .4s ease;
}
.hero-photo__slide { position: relative; flex: 0 0 100%; height: 100%; }
.hero-photo__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo__slide .change-tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.hero-photo__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(31,28,26,0.55);
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-photo__nav:hover { background: var(--cherry); }
.hero-photo__nav--prev { left: 14px; }
.hero-photo__nav--next { right: 14px; }
.hero-photo__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-photo__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
}
.hero-photo__dots span.is-active { background: var(--white); }

/* ---------- before / after ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.ba-grid .change-wrap { margin-top: 0; }
.change-wrap { position: relative; margin: 56px auto 0; max-width: 640px; }
.page-body .change-wrap { max-width: 480px; }
.change-wrap__caption { margin-top: 20px; color: var(--ink-soft); font-size: 1rem; text-wrap: balance; }
.change-before {
    width: 46%;
    position: relative;
    z-index: 1;
}
.change-before img { border: 1px solid var(--line); }
.change-after {
    width: 72%;
    margin-left: 26%;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}
.change-after img { border: 2px solid var(--cherry); }
.change-tag {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.change-tag--after { background: var(--cherry); color: var(--white); }

/* ---------- space entry cards ---------- */
.space-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.space-grid--related { margin-top: 24px; gap: 14px; }
.space-grid--related .space-card__label { padding: 12px 14px; }
.space-card { display: block; border: 1px solid var(--line); overflow: hidden; background: var(--white); transition: transform .2s, box-shadow .2s; }
.space-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.1); }
.space-card__photo { overflow: hidden; }
.space-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform .3s; }
.space-card:hover img { transform: scale(1.06); }
.space-card__label {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.space-card__label .name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.space-card__label .arrow { color: var(--cherry); font-weight: 700; transition: transform .2s; }
.space-card:hover .arrow { transform: translateX(4px); }

/* ---------- mark removal block ---------- */
.mark-block {
    margin-top: 40px;
    border: 1px solid var(--line);
    background: var(--white);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
}
.mark-block__photo { overflow: hidden; align-self: stretch; aspect-ratio: 1/1; }
.mark-block__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mark-block__body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}
.mark-block__title { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.mark-block__text { color: var(--ink-soft); margin-top: 6px; font-size: 0.94rem; text-wrap: balance; }
.mark-block .btn-outline { flex-shrink: 0; }

/* ---------- situations ---------- */
.situ-list { margin: 40px auto 32px; border-top: 1px solid var(--line); max-width: 640px; }
.situ-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
    position: relative;
    padding-left: 22px;
}
.situ-list li::before { content: '—'; position: absolute; left: 0; color: var(--cherry); }

/* ---------- process ---------- */
.process-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 0; row-gap: 24px; margin: 48px 0 32px; }
.process-step { padding: 26px 20px; border-left: 1px solid var(--line); position: relative; }
.process-step:first-child, .process-step:nth-child(3) { border-left: none; }
.process-step .en { font-family: var(--serif); font-weight: 900; color: var(--cherry); font-size: 1.1rem; letter-spacing: 0.05em; }
.process-step .kr { font-weight: 700; font-size: 1.12rem; margin-top: 6px; }
.process-step .desc { color: var(--ink-soft); font-size: 0.96rem; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { margin: 40px auto 0; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer;
    padding: 22px 0;
    font-weight: 700;
    font-size: 1.08rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--cherry); font-weight: 700; font-size: 1.3rem; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 0 22px; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- contact strip / footer ---------- */
.contact-strip {
    text-align: center;
    padding: 88px 0;
    background: var(--ink);
    color: var(--white);
    border-top: 1px solid var(--line);
}
.contact-strip .overline { color: #e6a290; }
.contact-strip__label { font-family: var(--serif); font-weight: 700; font-size: 1.8rem; color: var(--white); }
.contact-strip__text { color: rgba(255,255,255,0.72); margin-top: 10px; font-size: 1.08rem; text-wrap: balance; }

.site-footer { background: var(--silver); padding: 40px 0 100px; }
.site-footer__inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; font-size: 0.82rem; color: var(--ink-soft); }
.site-footer__inner p { margin: 3px 0; }
.site-footer__brand { color: var(--ink); font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }

/* ---------- NSEO page ---------- */
.page-hero { padding: 56px 0 0; }
.page-hero__inner { display: flex; align-items: center; gap: 48px; }
.page-hero__text { flex: 1 1 340px; }
.page-hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 14px 0 16px; }
.page-hero__lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 32em; text-wrap: balance; }
.page-hero__photo { flex: 1 1 420px; max-width: 560px; margin-top: 0; }
.page-hero img { display: block; width: 100%; border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: cover; }
.page-body { max-width: 720px; margin: 0 auto; }
.page-body h2 {
    font-family: var(--serif);
    font-size: 1.55rem;
    margin: 72px 0 18px;
    padding-left: 18px;
    border-left: 4px solid var(--cherry);
}
.page-body h2:first-child { margin-top: 0; }
.page-body p { margin: 0 0 16px; color: var(--ink-soft); font-size: 1.06rem; }

.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 16px; }
.info-card { border: 1px solid var(--line); background: var(--white); padding: 20px 22px; }
.info-card__title { font-family: var(--serif); font-weight: 700; font-size: 1.14rem; color: var(--cherry); }
.info-card p { margin: 8px 0 0; color: var(--ink-soft); font-size: 1.02rem; }

.detail-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 36px; }
.detail-gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); }
.detail-gallery--single { max-width: 420px; }
.detail-gallery__tagged { position: relative; }

.btn-outline {
    display: inline-block;
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color .15s, color .15s, transform .15s;
}
.btn-outline:hover { border-color: var(--cherry); color: var(--cherry); transform: translateY(-2px); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 140px 0; }
.error-page .big-num { font-size: 6rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    section { padding: 72px 0; }
    .main-nav {
        position: fixed;
        top: 60px; left: 0; right: 0;
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 30px 24px;
        gap: 22px;
        font-size: 1.1rem;
        transform: translateX(100%);
        transition: transform .25s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 49;
    }
    .nav-toggle:checked ~ .site-header .main-nav { transform: translateX(0); }
    .nav-burger { display: flex; }
    .cta-side { display: none; }
    .cta-mobile { display: block; }
    section:last-of-type { padding-bottom: 90px; }

    .space-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mark-block { grid-template-columns: 1fr; }
    .mark-block__photo { aspect-ratio: 16/9; }
    .mark-block__body { flex-direction: column; align-items: flex-start; padding: 26px; }

    .change-wrap { max-width: 400px; }
    .ba-grid { grid-template-columns: 1fr; gap: 40px; }

    .page-hero__inner { flex-direction: column-reverse; gap: 28px; }
    .page-hero__photo { max-width: 100%; }
    .page-hero img { aspect-ratio: 4/3; }

    .info-cards { grid-template-columns: 1fr; }
}
