/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Pretendard", sans-serif;
  background: #f5f5f5;
  color: #111;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  background: rgba(255,255,255,0.95);
  z-index: 10;
}
.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 14px; letter-spacing: 0.1em; }
.nav a {
  margin-left: 24px;
  font-size: 13px;
  text-decoration: none;
  color: #111;
}

/* HERO */
.hero {
  position: relative;
  height: 90vh;
  margin-top: 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("hero-image-1.jpg") center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.4), rgba(0,0,0,.1));
}
.hero-content {
  position: absolute;
  left: 80px;
  bottom: 120px;
  max-width: 520px;
  color: #fff;
}
.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 24px;
}
.hero-cta {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.5);
}

/* BODY */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 48px;
}

/* PROJECT GRID */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* CARD */
.project-card {
  text-decoration: none;
  color: #111;
}

/* IMAGE AREA */
.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #000;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* 명도 조절 */
  filter: brightness(0.88) contrast(1.05);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* hover */
.project-card:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* TEXT */
.project-info {
  padding: 14px 2px;
}

.project-info strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.project-info span {
  font-size: 12px;
  color: #777;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* 상단 메뉴 컨테이너 */
.nav {
  display: flex;
  gap: 34px;                 /* 메뉴 간격 */
  align-items: center;
}

/* 메뉴 링크 */
.nav a {
  font-family: "Inter", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;    /* 건축/디자인 느낌 핵심 */
  text-transform: uppercase; /* 감성 + 정돈 */
  color: #111;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 호버 */
.nav a:hover {
  opacity: 0.6;
  transform: translateY(-1px);
}

/* 현재 선택된 메뉴(active) 밑줄 */
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #111;
  opacity: 0.8;
}

/* 반응형(모바일) 간격만 자동 조절 */
@media (max-width: 768px) {
  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 12px;
    letter-spacing: 0.06em;
  }
}

/* ===== Header Layout ===== */
.site-header {
  position: sticky;       /* 핵심: 스크롤 고정 */
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); /* iOS/모던 브라우저에서 고급스러운 느낌 */
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* 스크롤 내려갔을 때(클래스가 붙으면) 더 단단한 느낌 */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(17, 17, 17, 0.12);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;   /* 헤더 높이 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== Brand (Logo) ===== */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: #111;
}

.brand-mark {
  font-family: "Inter", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  font-family: "Inter", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  line-height: 1.1;
}

/* ===== Nav (이전 제공 톤 유지) ===== */
.nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav a {
  font-family: "Inter", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  opacity: 0.6;
  transform: translateY(-1px);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #111;
  opacity: 0.8;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-inner {
    padding: 14px 16px;
  }
  .nav {
    gap: 18px;
  }
  .nav a {
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .brand-mark {
    font-size: 15px;
  }
}


.project-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-slider {
  overflow: hidden;     /* ✅ 핵심: 바깥은 숨김 */
  width: 100%;
}

.project-grid {
  display: flex;        /* ✅ grid -> flex로 “가로 슬라이드” */
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* ✅ 화면에 3개만 보이게 */
.project-card {
  flex: 0 0 calc((100% - 32px) / 3); /* gap 16px * 2 = 32px */
}

/* 버튼 */
.project-nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.15);
  background: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-nav:active {
  transform: scale(0.98);
}

/* 모바일에서는 1~2개만 보이게 조정 */
@media (max-width: 900px) {
  .project-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 600px) {
  .project-card {
    flex: 0 0 100%;
  }
}
