/* ===========================================================
   KOSIN Design Studio - Portfolio
   Eleos.la 톤 참고: 모노스페이스 타이포 + 뉴트럴 샌드/차콜 팔레트 + 원포인트 컬러
   =========================================================== */

:root {
    --color-black: #131313;
    --color-dark: #1c1f2b;
    --color-cream: #f4f4ed;
    --color-sand: #b7ab8c;
    --color-gray-light: #e2e1df;
    --color-gray-mid: #8a8a86;
    --color-gray-dark: #3a3d46;
    --color-border: #d8d6d0;
    --color-accent: #a8622f;

    --font-base: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', system-ui, sans-serif;

    --container-max: 960px;
}

@media (min-width: 1400px) {
    :root { --container-max: 1320px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-sand);
    margin: 0 0 12px;
}

/* ---------- Scroll reveal (general) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header--solid {
    background: rgba(19, 19, 19, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-cream);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo span {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-sand);
}

.nav a {
    color: var(--color-cream);
    font-size: 0.85rem;
    margin-left: 24px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.nav a:hover { border-color: var(--color-sand); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__bg { animation: none; }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19,19,19,0.55) 0%, rgba(19,19,19,0.75) 100%);
}

.hero__content {
    position: relative;
    color: var(--color-cream);
    padding-bottom: 90px;
}

.hero h1 {
    font-size: clamp(1.7rem, 4.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 16px;
}

.hero__sub {
    font-size: 1rem;
    color: var(--color-gray-light);
    max-width: 480px;
    margin: 0 0 40px;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-sand);
    padding-bottom: 4px;
}

/* ---------- About ---------- */
.about {
    padding: 100px 0 80px;
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 960px) {
    .about__layout { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
}

.about h2 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 600;
    margin: 0 0 16px;
}

.about__lead {
    color: var(--color-gray-dark);
    max-width: 480px;
    margin: 0 0 48px;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 640px) {
    .about__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .about__grid { grid-template-columns: 1fr; }
}

.about__item {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.about__item:nth-child(2) { transition-delay: 0.12s; }

.about__item h3 {
    font-size: 0.95rem;
    color: var(--color-accent);
    margin: 0 0 10px;
}

.about__item p {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    margin: 0;
}

/* ---------- About collage (Pinterest 무드보드 스타일) ---------- */
.about__collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__col--offset {
    margin-top: 48px;
}

.ph {
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(19,19,19,0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ph:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(19,19,19,0.18);
}

.ph--tall { aspect-ratio: 4 / 5; }
.ph--mid  { aspect-ratio: 1 / 1; }
.ph--short { aspect-ratio: 4 / 3; }

/* ---------- Trust ---------- */
.trust {
    background: var(--color-dark);
    color: var(--color-cream);
    padding: 80px 0;
    text-align: center;
}

.trust h2 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 600;
    margin: 0 0 48px;
}

.trust__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto 48px;
}

@media (min-width: 640px) {
    .trust__stats { grid-template-columns: repeat(3, 1fr); }
}

.trust__stat:nth-child(2) { transition-delay: 0.1s; }
.trust__stat:nth-child(3) { transition-delay: 0.2s; }

.trust__stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-sand);
    margin-bottom: 6px;
}

.trust__stat span {
    font-size: 0.8rem;
    color: var(--color-gray-light);
}

.trust__badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
}

.trust__badges li {
    font-size: 0.78rem;
    padding: 8px 16px;
    border: 1px solid var(--color-gray-dark);
    color: var(--color-gray-light);
}

.trust__reg {
    font-size: 0.75rem;
    color: var(--color-gray-mid);
    margin: 0;
}

/* ---------- Process ---------- */
.process {
    padding: 90px 0 100px;
    text-align: center;
}

.process h2 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 600;
    margin: 0 0 48px;
}

.process__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
}

@media (min-width: 960px) {
    .process__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

.process__step {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.process__step:nth-child(2) { transition-delay: 0.1s; }
.process__step:nth-child(3) { transition-delay: 0.2s; }

.process__num {
    font-size: 0.8rem;
    color: var(--color-sand);
}

.process__step h3 {
    font-size: 1.05rem;
    margin: 8px 0 16px;
}

.process__step ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--color-gray-dark);
}

.process__step li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
}

.process__step li:last-child { border-bottom: none; }

/* ---------- Section header ---------- */
.section-header {
    text-align: center;
    padding: 90px 0 40px;
}

.section-header h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    margin: 0 0 8px;
    font-weight: 600;
}

.section-counter {
    color: var(--color-gray-mid);
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- Project grid ---------- */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 100px;
}

@media (min-width: 640px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .project-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

.project-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card__image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: block;
}

.project-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card__image-wrap img {
    transform: scale(1.05);
}

.project-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card h3 {
    font-size: 1.05rem;
    margin: 0 0 10px;
    font-weight: 600;
}

.project-card__desc {
    font-size: 0.85rem;
    color: var(--color-gray-dark);
    margin: 0 0 20px;
    flex: 1;
}

.project-card__details {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.project-card__details li {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 8px 0;
    color: var(--color-gray-dark);
}

.project-card__details li:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.project-card__details li span {
    color: var(--color-gray-mid);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    align-self: flex-start;
    border-bottom: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding-bottom: 2px;
    transition: gap 0.2s ease;
}

.project-card__link:hover { gap: 10px; }

.portfolio__more {
    text-align: center;
    padding-bottom: 100px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: var(--color-dark);
    padding: 100px 0 16px;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-gray-light);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 6px;
    color: var(--color-gray-mid);
}

.breadcrumb a {
    color: var(--color-sand);
    border-bottom: 1px solid transparent;
}

.breadcrumb a:hover { border-color: var(--color-sand); }

/* ---------- Works hub / region ---------- */
.region-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 24px;
    padding-top: 40px;
}

.region-title:first-of-type { padding-top: 0; }

/* ---------- Work detail ---------- */
.work-detail {
    padding: 40px 0 80px;
}

.work-detail h1 {
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    font-weight: 600;
    margin: 0 0 20px;
    max-width: 720px;
}

.work-detail__desc {
    color: var(--color-gray-dark);
    max-width: 720px;
    margin: 0 0 24px;
}

.work-detail__meta {
    max-width: 320px;
    margin-bottom: 40px;
}

.work-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .work-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .work-gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.work-gallery__item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.work-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-gallery__item:hover img { transform: scale(1.05); }

/* ---------- CTA ---------- */
.cta {
    background: var(--color-dark);
    color: var(--color-cream);
    text-align: center;
}

.cta__inner { padding: 100px 20px; }

.cta h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 0 12px;
}

.cta p { color: var(--color-gray-light); margin: 0 0 32px; }

.cta__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--color-sand);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(19, 19, 19, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 100;
}

.lightbox.is-open { display: flex; }

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--color-cream);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-black);
    color: var(--color-gray-mid);
    text-align: center;
    font-size: 0.75rem;
    padding: 20px;
}
