/* ================================================================
   UNSEEN STUDIO — unseenstudio.co.kr
   국문: Pretendard / 영문: Montserrat (Montserrat를 앞에 두면
   라틴 글자는 Montserrat, 한글은 자동으로 Pretendard로 폴백됨)
   ================================================================ */
:root {
  --bg: #0c0c0c;
  --bg-soft: #131313;
  --ink: #f2f0eb;
  --muted: #8f8c85;
  --hairline: rgba(242, 240, 235, 0.14);
  --display: 'Montserrat', 'Pretendard Variable', Pretendard, -apple-system,
             BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --sans: 'Montserrat', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: min(1440px, 100% - clamp(40px, 6vw, 128px)); margin-inline: auto; }

/* ---------------- header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 20px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 26px; width: auto; }
.site-nav { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.site-nav a { color: var(--muted); transition: color 0.3s; }
.site-nav a:hover { color: var(--ink); }

/* ---------------- hero ---------------- */
.hero {
  min-height: clamp(520px, 72svh, 780px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(28px, 4vh, 52px);
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.04); animation: hero-zoom 18s var(--ease) forwards;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(12,12,12,0.42) 0%, rgba(12,12,12,0.05) 26%,
    rgba(12,12,12,0.12) 52%, rgba(12,12,12,0.86) 100%);
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-content { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: none; }
  .marquee-track { animation: none !important; }
}
.hero-kicker {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: clamp(20px, 3vh, 36px);
  font-weight: 500;
}
.hero-sub {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 20px;
  margin-top: clamp(28px, 4vh, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.hero-sub .tagline {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6; max-width: 30em;
  word-break: keep-all;
}
.hero-sub .tagline em { font-style: normal; color: var(--muted); }
.hero-sub .meta {
  font-size: 13px; color: var(--muted); text-align: right; line-height: 2;
}

/* ---------------- marquee ---------------- */
.marquee {
  border-block: 1px solid var(--hairline);
  overflow: hidden; white-space: nowrap;
  padding-block: 16px;
}
.marquee-track { display: inline-block; animation: marquee 38s linear infinite; }
.marquee span {
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 400; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 1.1em;
}
.marquee .ref { font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- section heads ---------------- */
section { padding-block: clamp(56px, 9vh, 112px); }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.sec-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
}
.sec-head .count { font-size: 14px; color: var(--muted); }

/* ---------------- works grid (정사각형 균일) ---------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 30px);
}
.work-card { display: block; }
.work-card .thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-radius: 2px;
}
.work-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.work-card:hover .thumb img { transform: scale(1.05); }
.work-card .info {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-top: 15px;
}
.work-card .info h3 {
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.35; word-break: keep-all;
}
.work-card .info .en {
  display: block; font-family: var(--display); color: var(--muted);
  font-weight: 500; font-size: 0.86em; margin-top: 3px;
}
.work-card .info .year { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.work-card .scope { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* ---------------- about ---------------- */
.about { border-top: 1px solid var(--hairline); }
.about-statement {
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.45; letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 22em;
  word-break: keep-all;
}
.about-statement .dim { color: var(--muted); }
.about-cols {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(36px, 5vh, 64px);
}
.about-cols .col { grid-column: span 4; font-size: 15px; color: var(--muted); }
.about-cols .col strong {
  display: block; color: var(--ink); font-weight: 600;
  margin-bottom: 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.about-cols .col p { word-break: keep-all; }

/* ---------------- services ---------------- */
.svc-list { border-top: 1px solid var(--hairline); }
.svc-row {
  display: grid; grid-template-columns: 80px 1fr 1.2fr;
  gap: clamp(16px, 3vw, 48px); align-items: baseline;
  padding-block: clamp(24px, 3.4vh, 40px);
  border-bottom: 1px solid var(--hairline);
}
.svc-row .no { color: var(--muted); font-size: 14px; font-weight: 600; }
.svc-row h3 {
  font-size: clamp(19px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.025em;
}
.svc-row h3 .en { font-family: var(--display); font-weight: 500; color: var(--muted); }
.svc-row p { font-size: 15px; color: var(--muted); word-break: keep-all; }

/* ---------------- clients ---------------- */
.clients p.lede { font-size: 13px; color: var(--muted); margin-bottom: 28px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.client-logos {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(24px, 3.4vw, 40px) clamp(36px, 4.5vw, 64px);
}
.client-logos img {
  height: var(--h, 26px); width: auto;
  opacity: 0.55; transition: opacity 0.35s;
}
.client-logos img:hover { opacity: 1; }
@media (max-width: 900px) {
  .client-logos img { height: calc(var(--h, 26px) * 0.82); }
}

/* ---------------- contact ---------------- */
.contact { border-top: 1px solid var(--hairline); text-align: left; }
.contact .big {
  font-family: var(--display);
  font-size: clamp(44px, 7.5vw, 112px);
  line-height: 1.02; letter-spacing: -0.04em; font-weight: 700;
}
.contact .big em { font-style: normal; color: var(--muted); }
.contact .cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(28px, 4vh, 48px); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 18px 36px; font-size: 15px; font-weight: 500;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.ghost { border-color: var(--hairline); color: var(--muted); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 32px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.site-footer a:hover { color: var(--ink); }

/* ---------------- work detail ---------------- */
.work-hero { padding-top: clamp(108px, 15vh, 168px); padding-bottom: 0; }
.work-hero .back {
  font-size: 13px; color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
}
.work-hero .back:hover { color: var(--ink); }
.work-hero h1 {
  font-size: clamp(34px, 5.4vw, 76px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.12;
  margin-top: 24px; word-break: keep-all;
}
.work-hero .en-sub {
  font-family: var(--display); font-size: clamp(18px, 2.2vw, 30px);
  color: var(--muted); margin-top: 10px; font-weight: 500;
}
.work-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-block: 1px solid var(--hairline);
  padding-block: 24px;
  margin-top: clamp(36px, 5vh, 64px);
  font-size: 14px;
}
.work-meta dt { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.work-meta dd { margin: 0; }
.work-desc {
  max-width: 46em;
  padding-block: clamp(36px, 5.5vh, 68px);
  font-size: clamp(16px, 1.35vw, 19px);
  color: #cfccc5;
  word-break: keep-all;
}
.work-desc p + p { margin-top: 1.2em; }
.work-images { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 36px); padding-bottom: clamp(60px, 9vh, 140px); }
.work-images .wimg { max-width: 1080px; width: 100%; margin-inline: auto; }
.work-images img { width: 100%; }
.next-project {
  display: block; text-align: center;
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 7vh, 96px);
}
.next-project .label { font-size: 13px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.next-project .name {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1.1; letter-spacing: -0.035em; font-weight: 700;
  margin-top: 12px;
  transition: opacity 0.3s;
}
.next-project:hover .name { opacity: 0.6; }
.back-bottom { text-align: center; padding-bottom: clamp(40px, 6vh, 72px); }
.back-bottom a {
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.back-bottom a:hover { color: var(--ink); }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-cols .col { grid-column: span 12; }
  .svc-row { grid-template-columns: 40px 1fr; }
  .svc-row p { grid-column: 2; }
  .work-meta { grid-template-columns: 1fr; gap: 16px; }
  .hero-sub .meta { text-align: left; }
  .site-nav { gap: 16px; font-size: 12px; }
  .site-nav a:nth-child(2), .site-nav a:nth-child(3), .site-nav a:nth-child(4) { display: none; }
  .site-nav.always a { display: inline; }
}
@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
}
