:root {
    --ink: #1c1b18;
    --muted: #6f6a61;
    --soft: #f4f1eb;
    --line: #ddd5c8;
    --accent: #6f6253;
    --white: #ffffff;
    --max: 1180px;
    --ease: 220ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans KR", system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

body.intro-active {
    overflow: hidden;
}

html.intro-seen body.intro-active {
    overflow: auto;
}

body.intro-active .site-nav,
body.intro-active main,
body.intro-active .site-footer {
    opacity: 0;
}

html.intro-seen body.intro-active .site-nav,
html.intro-seen body.intro-active main,
html.intro-seen body.intro-active .site-footer {
    opacity: 1;
}

main {
    position: relative;
    isolation: isolate;
    transition: opacity 360ms ease;
}

img {
    max-width: 100%;
}

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

button,
input,
textarea {
    font: inherit;
}

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.34)),
        url("image%20folder/dongmin_background.jpg") center / cover;
    opacity: 1;
    transition: opacity 620ms ease, visibility 620ms ease;
}

.intro-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.intro-seen .intro-screen {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-enter {
    position: relative;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 18px 28px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transform: scale(1);
    transition: color var(--ease), opacity var(--ease), transform var(--ease);
}

.intro-enter::before {
    content: "";
    position: absolute;
    inset: -18px -28px;
}

.intro-enter:hover,
.intro-enter:focus-visible {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.08);
}

.intro-screen.is-hidden .intro-enter {
    opacity: 0;
    pointer-events: none;
}

.intro-enter:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.62);
    outline-offset: 4px;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.68);
    border-bottom: 1px solid rgba(23, 23, 23, 0);
    backdrop-filter: blur(10px);
    transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.site-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(23, 23, 23, 0.08);
    box-shadow: 0 10px 30px rgba(23, 23, 23, 0.04);
}

.nav-inner {
    width: min(var(--max), calc(100% - 40px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    display: block;
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 0.95rem;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--ink);
}

.hero {
    min-height: 88vh;
    padding: 150px 24px 80px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(rgba(28, 27, 24, 0.38), rgba(28, 27, 24, 0.44)),
        url("image%20folder/dongmin_background.jpg") center / cover;
    transform: translate3d(0, var(--hero-parallax, 0px), 0);
    will-change: transform;
}

.hero-copy {
    width: min(900px, 100%);
    transform: translate3d(0, calc(var(--hero-parallax, 0px) * 0.35), 0);
    will-change: transform;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 4.4vw, 4.5rem);
    line-height: 1.16;
    font-weight: 700;
    word-break: keep-all;
}

.mobile-break {
    display: none;
}

@media (max-width: 640px) {
    .mobile-break {
        display: block;
    }
}

.hero p:not(.eyebrow) {
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    min-width: 140px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.button-line {
    color: var(--white);
}

.button-fill {
    color: var(--ink);
    background: var(--white);
    border-color: var(--white);
}

.button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.trust-strip {
    position: sticky;
    top: 76px;
    z-index: 2;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 -1px 0 var(--soft);
}

.trust-strip::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -76px;
    height: 76px;
    background: var(--soft);
}

.trust-inner {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.section {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 104px 0;
    position: relative;
    z-index: 3;
    background: var(--white);
    box-shadow: 0 0 0 100vmax var(--white);
    clip-path: inset(0 -100vmax);
}

.section-heading {
    margin-bottom: 44px;
}

.section-heading h2,
.contact-copy h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
    justify-content: center;
    gap: 48px 28px;
}

.gallery-item,
.gallery-item:nth-child(6n + 1),
.gallery-item:nth-child(6n + 4) {
    grid-column: auto;
}

.gallery-item {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 520ms ease, transform 520ms ease;
}

.gallery-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.gallery-visual {
    overflow: hidden;
    background: var(--soft);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-visual img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    aspect-ratio: auto;
    object-fit: contain;
    background: var(--soft);
    transition: transform 520ms ease, filter 520ms ease;
}

.gallery-item:hover .gallery-visual img,
.gallery-item:focus-visible .gallery-visual img {
    transform: scale(1.035);
    filter: saturate(0.94);
}

.gallery-info {
    position: relative;
    padding-top: 18px;
}

.gallery-info h3 {
    margin-bottom: 3px;
    font-size: 1.05rem;
}

.gallery-info p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.photo-count {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.process-section {
    border-top: 1px solid var(--line);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

.process-item span {
    display: block;
    margin-bottom: 18px;
    color: rgba(23, 23, 23, 0.22);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.process-item h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.process-item p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.contact-section {
    border-top: 1px solid var(--line);
}

.contact-copy {
    width: min(640px, 100%);
    margin-bottom: 44px;
}

.contact-copy p:not(.eyebrow) {
    color: var(--muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    gap: 72px;
}

.contact-methods {
    display: grid;
    gap: 26px;
}

.contact-methods span,
.inquiry-form span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-methods a {
    font-size: 1.45rem;
    font-weight: 700;
}

.contact-methods p {
    margin-bottom: 0;
}

.inquiry-form {
    display: grid;
    gap: 18px;
    padding: 34px;
    background: var(--soft);
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 13px 14px;
    color: var(--ink);
    border-radius: 0;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: 2px solid rgba(86, 104, 93, 0.28);
    border-color: var(--accent);
}

.inquiry-form button {
    margin-top: 4px;
    border: 0;
    padding: 15px;
    background: var(--ink);
    color: var(--white);
    cursor: pointer;
}

.artwork-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 48px;
    background: rgba(10, 10, 10, 0.94);
    color: var(--white);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.artwork-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: fixed;
    top: 28px;
    right: 32px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
}

.modal-shell {
    width: min(1240px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 38px;
    align-items: end;
    transform: translate3d(0, 18px, 0);
    transition: transform 320ms ease;
}

.artwork-modal.is-open .modal-shell {
    transform: translate3d(0, 0, 0);
}

.modal-stage {
    position: relative;
    margin: 0;
    min-height: 280px;
    background: #111;
}

.modal-stage img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    opacity: 1;
    transition: opacity 180ms ease;
}

.modal-stage img:not([src]),
.modal-stage img[src=""] {
    visibility: hidden;
}

.modal-stage img.is-switching {
    opacity: 0;
}

.modal-nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 44px;
    height: 64px;
    border: 0;
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.84);
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background var(--ease), color var(--ease), opacity var(--ease);
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.52);
    color: var(--white);
}

.modal-nav-prev {
    left: 0;
}

.modal-nav-next {
    right: 0;
}

.modal-panel {
    padding-bottom: 6px;
}

.modal-panel .eyebrow {
    color: rgba(255, 255, 255, 0.5);
}

.modal-panel h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
    line-height: 1.35;
}

.modal-location,
.modal-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.modal-location {
    margin-bottom: 8px;
}

.modal-description {
    margin-bottom: 24px;
}

.modal-counter {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.modal-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.artwork-modal.has-single-image .modal-thumbnails,
.artwork-modal.has-single-image .modal-counter,
.artwork-modal.has-single-image .modal-nav {
    display: none;
}

.modal-thumbnail {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    opacity: 0.48;
    cursor: pointer;
    transition: opacity var(--ease), border-color var(--ease);
}

.modal-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.modal-thumbnail:hover,
.modal-thumbnail.is-active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.9);
}

.site-footer {
    padding: 54px max(24px, calc((100vw - var(--max)) / 2));
    display: flex;
    justify-content: space-between;
    gap: 30px;
    background: #1c1b18;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
}

.site-footer strong {
    display: block;
    margin-bottom: 10px;
    color: var(--white);
}

.site-footer p {
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .gallery-item,
    .gallery-item:nth-child(6n + 1),
    .gallery-item:nth-child(6n + 4) {
        grid-column: span 6;
    }

    .process-grid,
    .contact-layout,
    .modal-shell {
        grid-template-columns: 1fr;
    }

    .modal-shell {
        gap: 24px;
        align-items: start;
    }

    .modal-stage img {
        max-height: 58vh;
    }

    .modal-nav {
        width: 40px;
        height: 56px;
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-inner {
        width: calc(100% - 28px);
        height: 66px;
    }

    .brand img {
        height: 40px;
    }

    .nav-links {
        gap: 18px;
        font-size: 0.9rem;
    }

    .hero {
        min-height: 82vh;
        padding: 120px 20px 64px;
    }

    .trust-strip {
        top: 66px;
    }

    .trust-strip::before {
        top: -66px;
        height: 66px;
    }

    .hero-actions {
        display: grid;
    }

    .trust-inner,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .trust-inner {
        text-align: left;
    }

    .section {
        width: calc(100% - 28px);
        padding: 74px 0;
    }

    .gallery-item,
    .gallery-item:nth-child(6n + 1),
    .gallery-item:nth-child(6n + 4) {
        grid-column: auto;
    }

    .contact-layout {
        gap: 42px;
    }

    .inquiry-form {
        padding: 24px;
    }

    .artwork-modal {
        padding: 64px 18px 24px;
        align-items: start;
    }

    .modal-close {
        top: 16px;
        right: 16px;
    }

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

    .site-footer {
        display: block;
    }
}

@media (max-width: 640px) and (orientation: portrait) {
    .intro-screen {
        background-position: calc(50% - 950px) center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-nav,
    .intro-screen,
    .intro-enter,
    .gallery-item,
    .gallery-visual img,
    .artwork-modal,
    .modal-shell,
    .modal-stage img {
        transition: none;
    }

    .gallery-item {
        opacity: 1;
        transform: none;
    }
}
