/* ============================================================
   Rustic Collage — v2 (이미지 기반 재구성)
   현재까지 적용된 섹션: Header / Hero
   다음 섹션은 이미지 받을 때마다 추가
   ============================================================ */

:root {
  /* 컬러 — 다크 히어로 톤 */
  --bg: #ffffff;                /* 다른 섹션 기본 배경 (추후 수정 가능) */
  --hero-text: #ffffff;
  --hero-text-soft: #cdc8c2;    /* 본문 흰색에 살짝 웜한 회색 */
  --hero-text-mute: #a9a39c;

  /* 레이아웃 */
  --nav-h: 58px;
  --gutter: 40px;
  --gutter-mobile: 24px;
  --container-max: 1680px;

  /* 타이포 — 사이트 전체 Pretendard Variable (단일 파일) */
  --font-display: 'Pretendard Variable', 'Pretendard', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-body: 'Pretendard Variable', 'Pretendard', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  /* 모션 */
  --t-fast: 200ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-med:  360ms cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* -------------------- RESET -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: #1a1a1a;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}
img, picture { display: block; max-width: 100%; height: auto; }

/* 스크롤바 숨김 — 스크롤 동작은 유지하되 시각적으로 안 보이게 */
html { scrollbar-width: none; -ms-overflow-style: none; }
body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
a { color: inherit; text-decoration: none; }

/* -------------------- HEADER / NAV -------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  /* 기본 상태: 상단 다크 그라데이션 (히어로 이미지 위 흰 텍스트 가독성용) */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  color: #fff;
  pointer-events: none; /* 그라데이션 영역 클릭 방해 안 하도록 */
  transition:
    background var(--t-med),
    backdrop-filter var(--t-med),
    color var(--t-med);
  -webkit-backdrop-filter: saturate(100%) blur(0);
  backdrop-filter: saturate(100%) blur(0);
}

/* 스크롤 시: Apple Liquid Glass — 굴절 필터 + 거의 투명 배경 + 유리 테두리
   서브페이지(라이트)와 동일한 시각 언어. 메인은 다크 hero 위라 가장자리 흰 빛은 약하게. */
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: url(#rc-liquid-glass);
  box-shadow:
    inset 0 0 0 0px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.04);
}
/* SVG 필터 미지원 브라우저 폴백 */
@supports not (backdrop-filter: url(#x)) {
  .nav.is-scrolled {
    background: rgba(20, 20, 22, 0.22);
    backdrop-filter: saturate(190%) brightness(108%) blur(40px);
  }
}
.nav__inner {
  pointer-events: auto;
  height: 100%;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .nav__inner { padding: 0 var(--gutter); } }
@media (min-width: 1280px) { .nav__inner { padding: 0 64px; } }

.nav__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

.nav__menu {
  display: none;
  align-items: center;
  gap: 36px;
}
@media (min-width: 768px) { .nav__menu { display: flex; gap: 32px; } }
@media (min-width: 1024px) { .nav__menu { gap: 48px; } }

.nav__menu a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: opacity var(--t-fast);
  opacity: 0.92;
}
.nav__menu a:hover { opacity: 1; }

/* -------------------- HAMBURGER TOGGLE -------------------- */
.nav__toggle {
  position: relative;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #fff;
  display: block;
}
@media (min-width: 768px) { .nav__toggle { display: none; } }

.nav__toggle-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
    top 350ms cubic-bezier(0.4, 0, 0.2, 1),
    bottom 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__toggle-bar:nth-child(1) { top: 6px; }
.nav__toggle-bar:nth-child(2) { bottom: 6px; }

/* 햄버거 → X 모핑 */
body.menu-open .nav__toggle-bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
body.menu-open .nav__toggle-bar:nth-child(2) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* -------------------- MOBILE DRAWER — 라이트 톤, 가로 풀너비, 하단 소셜 -------------------- */
.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 55;
}
body.menu-open .nav__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 480px;
  background: #ffffff;
  color: #111111;
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
  padding: calc(var(--nav-h) + 24px) 28px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}
body.menu-open .nav__drawer { transform: translateX(0); }

.nav__drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav__drawer-menu a {
  position: relative;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 22px 4px;
  border-bottom: 1px solid #E5E5E5;
  transition: color 350ms cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
/* 호버/활성 시 좌→우로 자라는 #3c00a2 프로그레스 바 (콜라쥬 컬렉션 탭과 동일 패턴) */
.nav__drawer-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #3c00a2;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 550ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.nav__drawer-menu a:hover { color: #3c00a2; }
.nav__drawer-menu a:hover::after,
.nav__drawer-menu a.is-active::after {
  transform: scaleX(1);
}
.nav__drawer-menu a.is-active { color: #3c00a2; }

/* 드로어 우상단 명확한 X 닫기 버튼 */
.nav__drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: #111111;
  cursor: pointer;
  border-radius: 50%;
  transition: background 200ms ease;
  z-index: 10;
}
.nav__drawer-close svg { display: block; }
/* 드로어가 열려있을 때 메인 nav 의 햄버거는 숨겨서 드로어 자체 X 만 보이도록 */
body.menu-open .nav__toggle {
  visibility: hidden;
  pointer-events: none;
}

/* 하단 소셜 아이콘 — 화면 하단에 고정 */
.nav__drawer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 32px 0 8px;
}
.nav__drawer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #D6D6D6;
  color: #111111;
  transition: background 200ms ease, color 200ms ease;
}
.nav__drawer-social a:hover {
  background: #111111;
  color: #ffffff;
}
.nav__drawer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* 메뉴 열렸을 때 nav 본체는 투명 + 브랜드 글자 숨김 (이미지처럼 X만 보이도록) */
body.menu-open .nav {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.menu-open .nav__brand {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
/* X(햄버거→X 모핑된 상태) 색을 흰 드로어 위에서도 확실히 진하게 */
body.menu-open .nav__toggle,
body.menu-open .nav .nav__toggle {
  color: #111111;
}

/* 데스크톱에선 드로어/백드롭 숨김 */
@media (min-width: 768px) {
  .nav__backdrop,
  .nav__drawer { display: none; }
}

/* 메뉴 열려 있을 때 body 스크롤 방지 */
body.menu-open { overflow: hidden; }

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #1a1612;  /* 이미지 로딩 전 폴백 */
  color: var(--hero-text);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  overflow: hidden;
}

/* 자동 슬라이드 (3개) — 천천히 크로스페이드 + 미세 줌 */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
  animation: heroFade 21s infinite cubic-bezier(0.4, 0.0, 0.2, 1);
  transform: scale(1);
  background: #1a1612; /* 이미지 로드 전 폴백 */
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.02);
}
.hero__slide--1 { animation-delay: 0s; }
.hero__slide--2 { animation-delay: 7s; }
.hero__slide--3 { animation-delay: 14s; }

/* 21초 사이클 — 슬라이드당 7초:
   ~1s 페이드인 → ~5s 홀드 → ~1s 페이드아웃 */
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.00); }
  5%   { opacity: 1; }
  28%  { opacity: 1; }
  33%  { opacity: 0; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.04); }
}
.hero::after {
  /* 좌측 하단 텍스트 가독성을 위한 부드러운 그라데이션 */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0) 50%,
      rgba(0,0,0,0.35) 85%,
      rgba(0,0,0,0.5) 100%
    ),
    linear-gradient(90deg,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.1) 40%,
      rgba(0,0,0,0) 60%
    );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile) clamp(48px, 9vh, 96px);
  display: flex;
  align-items: flex-end;
}
@media (min-width: 768px) { .hero__inner { padding: 0 var(--gutter) clamp(64px, 9vh, 112px); } }
@media (min-width: 1280px) { .hero__inner { padding: 0 64px clamp(72px, 9vh, 120px); } }

.hero__text {
  max-width: 720px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(39px, 8.5vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--hero-text);
  margin: 0 0 18px;
}
@media (min-width: 1024px) { .hero__title { margin: 0 0 18px; } }

.hero__copy {
  margin: 0;
  color: var(--hero-text-soft);
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: clamp(1, 1.1vw, 1.7);
  letter-spacing: -0.03em;
  font-weight: 400;
}
.hero__copy + .hero__copy { margin-top: 18px; }

.hero__copy--ko {
  font-family: var(--font-body);
}
.hero__copy--en {
  font-family: var(--font-display);
  color: var(--hero-text-soft);
  letter-spacing: -0.03em;
  line-height: 1.7;
}

/* -------------------- SHARED CONTAINER -------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
@media (min-width: 768px)  { .container { padding: 0 var(--gutter); } }
@media (min-width: 1280px) { .container { padding: 0 64px; } }

/* -------------------- COLLECTION -------------------- */
.collection {
  background: #ffffff;
  color: #111111;
  padding: clamp(80px, 10vh, 200px) 0 clamp(64px, 10vh, 160px);
}

.collection__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-bottom: clamp(3px, 7vh, 24px);
}

.collection__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5.2vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  color: #111111;
}

/* 둥근 보더 pill 버튼 — 호버 시 텍스트가 좌측으로 이동하며 화살표 등장 (Variant C) */
.pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 44px 0 28px; /* 우측 패딩 더 — 화살표 공간 확보 */
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: transparent;
  color: #111111;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition:
    background 480ms cubic-bezier(0.65, 0, 0.35, 1),
    color 480ms cubic-bezier(0.65, 0, 0.35, 1),
    border-color 480ms cubic-bezier(0.65, 0, 0.35, 1);
}
.pill-btn__label {
  display: inline-block;
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pill-btn__arrow {
  position: absolute;
  right: 22px;
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pill-btn:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}
.pill-btn:hover .pill-btn__label {
  transform: translateX(-6px);
}
.pill-btn:hover .pill-btn__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* 풀폭 변형 — 화살표 위치는 우측 끝 22px 그대로 */
.pill-btn--full {
  width: 100%;
  height: 54px;
  font-size: 16px;
}

/* 모바일 전용 CTA — 데스크톱에선 숨김 */
.collection__cta-mobile { display: none; }

@media (max-width: 640px) {
  /* 헤드 안의 pill-btn은 모바일에서 숨김 */
  .collection__head .pill-btn { display: none; }
  /* 헤드 아래 마진 축소 */
  .collection__head { margin-bottom: 20px; }
  /* 그리드 아래에 풀폭으로 노출 */
  .collection__cta-mobile {
    display: inline-flex;
    margin-top: 36px;
  }
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1024px) {
  .collection__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 640px) {
  .collection__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* -------------------- PROJECTS -------------------- */
.projects {
  background: #ffffff;
  color: #111111;
  padding: clamp(0px, 10vh, 10px) 0 clamp(64px, 10vh, 160px);
}

.projects__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-bottom: clamp(3px, 7vh, 24px);
}

.projects__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5.2vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  color: #111111;
}

.projects__cta-mobile { display: none; }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1024px) {
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
/* 슬라이드 프로그레스 바 — 모바일에서만 보임 */
.projects__progress {
  display: none;
}
@media (max-width: 640px) {
  .projects__progress {
    display: block;
    /* 컨테이너 gutter 안쪽까지만 — 화면 끝에서 살짝 여백 두고 깔림 */
    margin: 24px 0 0;
    width: 100%;
    height: 2px;
    background: #E5E5E5;
    overflow: hidden;
  }
  .projects__progress-fill {
    height: 100%;
    width: 0%;
    background: #111111;
    transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (max-width: 640px) {
  .projects__head .pill-btn { display: none; }
  .projects__head { margin-bottom: 20px; }
  .projects__cta-mobile {
    display: inline-flex;
    margin-top: 36px;
  }
  /* 모바일에선 카드들이 가로 스와이프 슬라이드로 — 가로 스크롤 + scroll-snap */
  .projects__grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 마지막 카드 끝에 약간 숨 쉴 여백 */
    padding-right: 24px;
    /* container padding 위로 살짝 비집고 나와서 화면 가장자리까지 스크롤 가능 */
    margin-left: calc(-1 * var(--gutter-mobile));
    margin-right: calc(-1 * var(--gutter-mobile));
    padding-left: var(--gutter-mobile);
  }
  .projects__grid::-webkit-scrollbar { display: none; }
  .projects__grid > .product-card {
    flex: 0 0 82%;
    max-width: 340px;
    scroll-snap-align: start;
  }
}

/* Projects 카드는 약간 더 키 큰 비율 — 17:10 → 6:5 (약 +100px) */
.projects .product-card__media {
  aspect-ratio: 6 / 5;
  position: relative;
}
/* 모바일 슬라이드에선 카드 높이 약 +20px (비율을 9:8 로 살짝 길게) */
@media (max-width: 640px) {
  .projects .product-card__media {
    aspect-ratio: 9 / 8;
  }
}

/* Projects 호버: 이미지 블러+살짝 확대, 다크 오버레이 페이드인 (텍스트 함께) */
.projects .product-card__media img {
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.projects .product-card:hover .product-card__media img {
  transform: scale(1.05);
  filter: blur(6px);
}

.projects .product-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 500ms cubic-bezier(0.65, 0, 0.35, 1),
    visibility 0s linear 500ms;
  pointer-events: none;
}
.projects .product-card:hover .product-card__overlay {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 500ms cubic-bezier(0.65, 0, 0.35, 1),
    visibility 0s linear 0s;
}

.projects .product-card__overlay-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #ffffff;
}
.projects .product-card__overlay-desc {
  font-size: 14px;
  letter-spacing: -0.03em;
  line-height: 0.68;
  margin: 0;
  color: #ffffff;
  opacity: 0.92;
  max-width: 300px;
}
/* desc 두 줄 사이 간격 */
.projects .product-card__overlay-desc + .product-card__overlay-desc {
  margin-top: 0px;
}

.product-card {
  display: block;
  color: inherit;
}
.product-card__media {
  margin: 0;
  aspect-ratio: 17 / 10;
  overflow: hidden;
  background: #f3f3f3;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-card__media img { transform: scale(1.03); }

.product-card__name {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #111111;
}
@media (max-width: 640px) {
  .product-card__name {
  margin: 8px 0 0;
}
  }

/* -------------------- SUBPAGE — 페이지 헤더 + 본문 -------------------- */
.page-hero {
  position: relative;
  min-height: 60vh;
  background: #0c0c0c;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 64px) 0 80px;
  overflow: hidden;
}
.page-hero .container { width: 100%; }

.page-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hero-text-mute);
  margin: 0 0 20px;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}
.page-hero__lead {
  margin: 28px 0 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--hero-text-soft);
  max-width: 560px;
}

.page-body {
  background: #fff;
  color: #111;
  padding: clamp(80px, 14vh, 160px) 0;
  min-height: 50vh;
}
.page-body__note {
  font-size: 14px;
  color: #999;
  letter-spacing: -0.03em;
  margin: 0;
}

/* -------------------- ABOUT PAGE — 풀블리드 50/50 + 베이지 컨셉 띠 -------------------- */
/* Split section (좌 이미지 + 우 텍스트 / 또는 반대) — 컨테이너 없이 풀블리드 */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(700px, 60vh, 620px);
  background: #F7F1E8;
  /* transform/will-change 합성 레이어 경계에서 생기는 sub-pixel 흰 줄 방지 —
     다음 섹션(footer 또는 about-concepts)과 1px 겹치게 함. */
  margin-bottom: -1px;
  overflow: hidden;
}
.about-split__media {
  margin: 0;
  overflow: hidden;
  background: #F3F3F3;
}
.about-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-split__panel {
  background: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 60px 45px;
}
.about-split__text {
  font-size: 15px;
  line-height: 1.9;
  color: #6B6560;
  letter-spacing: -0.02em;
  max-width: 320px;
  text-align: left;
}
.about-split__text p {
  margin: 0 0 1.4em;
}
.about-split__text p:last-child { margin-bottom: 0; }

/* 두 번째 split (이미지가 오른쪽) — 텍스트 패널은 우측 정착 */
.about-split--image-right .about-split__panel {
  justify-content: flex-end;
  padding: 0 45px 60px 0;
}
.about-split--image-right .about-split__text {
  text-align: right;
}

/* Concepts — 딥 퍼플 배경 이미지 + 3개 텍스트 블록 */
.about-concepts {
  background-color: #f1f1f1;
  padding: clamp(72px, 11vh, 120px) clamp(24px, 5vw, 80px);
}
.about-concepts__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 60px);
  max-width: 1200px;
}
.about-concept {
  text-align: center;
  background: transparent;
  border: 0;
  padding: 0;
}
.about-concept__ko {
  font-size: 14px;
  color: #6B6560;
  margin: 0 0 4px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.about-concept__en {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #6B6560;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Responsive — 1024px 이하 (태블릿 포함) 부터 스택 + 중앙 정렬 */
@media (max-width: 1024px) {
  .about-split {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .about-split__media {
    aspect-ratio: 4 / 3;
  }
  .about-split--image-right { display: grid; grid-template-areas: "img" "txt"; }
  .about-split--image-right .about-split__media { grid-area: img; }
  .about-split--image-right .about-split__panel { grid-area: txt; }
  /* 모바일/태블릿에선 좌하단 정착 대신 정중앙 정렬 — 두 split 모두 동일한 패딩 */
  .about-split__panel,
  .about-split--image-right .about-split__panel {
    align-items: center;
    justify-content: center;
    padding: clamp(36px, 7vh, 64px) 24px;
  }
  .about-split__text,
  .about-split--image-right .about-split__text {
    font-size: 14px;
    line-height: 1.85;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .about-concepts {
    padding: clamp(40px, 7vh, 64px) 20px;
  }
  .about-concepts__grid {
    gap: 24px;
  }
  .about-concept__en { font-size: 20px; }
  .about-concept__ko { font-size: 12px; }
}

/* -------------------- CONTACT -------------------- */
.contact {
  position: relative;
  min-height: 720px;
  background: #1a1410;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(60px, 9vh, 120px) 0;
  /* 스크롤 진입 애니메이션: Scale 0.5 + Y +200 → Scale 1 + Y 0 (Framer 'Layer in View') */
  transform-origin: center center;
  transform: scale(0.5) translateY(200px);
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  /* transform/will-change 합성 레이어 경계에서 생기는 sub-pixel 갭(흰 줄) 방지 —
     아래의 footer 와 1px 겹치게 해서 body 의 흰 배경이 새지 않도록. */
  margin-bottom: -1px;
}
.contact.is-revealed {
  transform: scale(1) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .contact {
    transform: none;
    transition: none;
  }
}
.contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.contact__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
}

.contact__card {
  background: #ffffff;
  border-radius: 4px;
  padding: 40px 44px;
  width: 100%;
  max-width: 540px;
  color: #1a1410;
}

.contact__eyebrow {
  font-size: 14px;
  font-weight: 400;
  color: #6b6b6b;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.contact__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: -10px 0 18px;
  color: #1a1410;
}

.contact__call {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  color: #1a1410;
}


.contact__call svg { flex-shrink: 0; }
.contact__call a {
  color: inherit;
  text-decoration: none;
}
.contact__call a:hover { opacity: 0.7; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 15px;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 10px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #1a1410;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #c9c2b4;
  outline: none;
  resize: none;
  transition: border-color 200ms ease;
}
.contact__field textarea {
  min-height: 120px;
  line-height: 1.6;
  padding: 12px 0;
  resize: vertical;
}
.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: #999;
  letter-spacing: -0.03em;
}
.contact__field input:focus,
.contact__field textarea:focus {
  border-bottom-color: #1a1410;
}

.contact__submit {
  width: 100%;
  height: 54px;
  background: #111111;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-top: 12px;
  transition: background 240ms cubic-bezier(0.65, 0, 0.35, 1);
}
.contact__submit:hover { background: #2a2a2a; }
.contact__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact__feedback {
  margin: 14px 0 0;
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: -0.03em;
  line-height: 1.5;
  border-radius: 6px;
}
.contact__feedback--success {
  color: #155a30;
  background: #e7f3ec;
  border: 1px solid #c5e3cf;
}
.contact__feedback--error {
  color: #8a1f1f;
  background: #fceaea;
  border: 1px solid #f0c5c5;
}

@media (max-width: 768px) {
  .contact { min-height: 640px; }
  .contact__inner { justify-content: center; }
  .contact__card {
    padding: 32px 28px;
    max-width: 460px;
  }
  .contact__title { font-size: 26px; }
  .contact__row { gap: 16px; }
}

/* -------------------- PROJECTS PAGE (그리드 리스트) -------------------- */
.proj-page-hero {
  background: #ffffff;
  padding: calc(var(--nav-h) + clamp(56px, 9vh, 96px)) 0 clamp(28px, 4vh, 48px);
}
.proj-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 14px;
  color: #111111;
}
.proj-page-hero__lead {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.03em;
  color: #888888;
}

.proj-page-list {
  background: #ffffff;
  padding: clamp(32px, 5vh, 64px) 0 clamp(96px, 14vh, 160px);
}
.proj-page-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 24px;
}
@media (max-width: 1024px) {
  .proj-page-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
}
@media (max-width: 640px) {
  .proj-page-list__grid { grid-template-columns: 1fr; gap: 36px; }
}

.proj-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.proj-card__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}
.proj-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover .proj-card__media img { transform: scale(1.03); }

.proj-card__name {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #111111;
}

/* -------------------- NOTICE / NEWS PAGE (게시판) -------------------- */
.notice-page-hero {
  background: #ffffff;
  padding: calc(var(--nav-h) + clamp(56px, 9vh, 96px)) 0 clamp(20px, 3vh, 36px);
}
.notice-page-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.notice-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  color: #111111;
}

/* 카테고리 탭 — 우측 정렬, | 구분자 */
.notice-tabs {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.notice-tabs__tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 2px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #888888;
  cursor: pointer;
  transition: color 200ms ease;
}
.notice-tabs__tab:hover { color: #111111; }
.notice-tabs__tab.is-active { color: #111111; font-weight: 700; }
.notice-tabs__sep {
  color: #D6D6D6;
  font-size: 13px;
  user-select: none;
}

/* 게시판 테이블 */
.notice-page-list {
  background: #ffffff;
  padding: 0 0 clamp(96px, 14vh, 160px);
}
.notice-table {
  width: 100%;
  border-top: 2px solid #111111;
}
.notice-table__head,
.notice-row {
  display: grid;
  grid-template-columns: 120px 1fr 160px;
  align-items: center;
  border-bottom: 1px solid #E5E5E5;
}
.notice-table__head {
  border-bottom: 1px solid #111111;
}
.notice-cell {
  padding: 18px 12px;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #333333;
}
.notice-table__head .notice-cell {
  font-weight: 600;
  color: #111111;
  text-align: center;
}
.notice-table__head .notice-cell--title {
  justify-content: flex-start;
  text-align: left;
}
.notice-cell--num {
  text-align: center;
  color: #666666;
  font-variant-numeric: tabular-nums;
}
.notice-cell--title {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  text-align: left;
}
.notice-cell--date {
  text-align: center;
  color: #888888;
  font-variant-numeric: tabular-nums;
}
.notice-row {
  transition: background 160ms ease;
  color: inherit;
  text-decoration: none;
}
.notice-row:hover { background: #FAFAFA; }
.notice-row:hover .notice-title { color: #000000; }
/* 상단 고정 공지 — 일반 행과 시각적으로 분리 */
.notice-row--pinned { background: #f9f9f9; }
.notice-row--pinned:hover { background: #F3F3F3; }
.notice-row--pinned .notice-cell--num { font-weight: 600; color: #111111; }
.notice-title {
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.notice-heart {
  flex-shrink: 0;
}
/* "공지" 핀 행 */
.notice-row .notice-cell--num:not(:empty) {
  font-weight: 500;
}
.notice-loading,
.notice-empty {
  padding: 48px 12px;
  text-align: center;
  font-size: 14px;
  color: #888888;
}

@media (max-width: 768px) {
  .notice-tabs { gap: 10px; }
  .notice-tabs__tab { font-size: 12px; }
  .notice-table__head,
  .notice-row {
    grid-template-columns: 64px 1fr 96px;
  }
  .notice-cell { padding: 14px 8px; font-size: 13px; }
  .notice-cell--title { justify-content: flex-start; text-align: left; }
  .notice-cell--date { font-size: 12px; }
}
@media (max-width: 480px) {
  .notice-page-hero__row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .notice-table__head,
  .notice-row { grid-template-columns: 48px 1fr 84px; }
}

/* -------------------- NOTICE DETAIL PAGE -------------------- */
.notice-detail {
  background: #ffffff;
  padding: clamp(20px, 3vh, 36px) 0 clamp(80px, 12vh, 140px);
}
.notice-detail__header {
  padding: 0 0 28px;
  border-bottom: 1px solid #E5E5E5;
  margin: 0 0 32px;
}
.notice-detail__category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #888888;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.notice-detail__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #111111;
}
.notice-detail__meta {
  margin: 0;
  font-size: 13px;
  color: #888888;
  font-variant-numeric: tabular-nums;
}
/* 위지윅 본문 — Quill 출력 HTML 렌더링 */
.notice-detail__body {
  font-size: 15px;
  line-height: 1.75;
  color: #333333;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
}
.notice-detail__body p,
.notice-detail__body h1,
.notice-detail__body h2,
.notice-detail__body h3,
.notice-detail__body ul,
.notice-detail__body ol {
  margin: 0 0 0.6em;
}
.notice-detail__body p:last-child,
.notice-detail__body h1:last-child,
.notice-detail__body h2:last-child,
.notice-detail__body h3:last-child,
.notice-detail__body ul:last-child,
.notice-detail__body ol:last-child { margin-bottom: 0; }
.notice-detail__body h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: #111111; margin-top: 1.2em; }
.notice-detail__body h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: #111111; margin-top: 1em; }
.notice-detail__body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; color: #111111; margin-top: 0.8em; }
.notice-detail__body ul,
.notice-detail__body ol { padding-left: 1.4em; }
.notice-detail__body li { margin: 0 0 0.25em; }
.notice-detail__body a { color: #3c00a2; text-decoration: underline; }
.notice-detail__body strong { font-weight: 700; color: #111111; }
.notice-detail__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}
/* Quill 정렬 클래스 — 본문에서 작성자가 지정한 정렬 유지 */
.notice-detail__body .ql-align-center { text-align: center; }
.notice-detail__body .ql-align-right { text-align: right; }
.notice-detail__body .ql-align-justify { text-align: justify; }
.notice-detail__body .ql-align-center img { margin-left: auto; margin-right: auto; }
.notice-detail__body .ql-align-right img { margin-left: auto; margin-right: 0; }
.notice-detail__body .ql-align-left img { margin-left: 0; margin-right: auto; }
/* Quill 크기 클래스 */
.notice-detail__body .ql-size-small { font-size: 12px; }
.notice-detail__body .ql-size-large { font-size: 18px; }
.notice-detail__body .ql-size-huge { font-size: 24px; }
.notice-detail__footer {
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
  border-top: 1px solid #E5E5E5;
}
.btn-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid #111111;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: background 200ms ease, color 200ms ease;
}
.btn-list:hover { background: #111111; color: #ffffff; }
@media (max-width: 768px) {
  .notice-detail__body { font-size: 14px; }
  .notice-detail__images { gap: 16px; }
}

/* -------------------- COLLECTION PAGE (탭 필터 + 4컬럼 그리드) -------------------- */
.coll-page-hero {
  background: #ffffff;
  padding: calc(var(--nav-h) + clamp(56px, 9vh, 96px)) 0 clamp(28px, 4vh, 48px);
}
.coll-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 -20px;
  color: #111111;
}
.coll-page-hero__lead {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.03em;
  color: #888888;
}

/* 카테고리 탭 — 이미지처럼 가로 균등 분할 + 활성 탭 밑줄 강조 */
.coll-page-tabs {
  background: #ffffff;
  padding: clamp(20px, 3vh, 36px) 0 clamp(28px, 4vh, 48px);
}
.coll-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}
.coll-tabs__tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 14px 0 16px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #B8B8B8;
  cursor: pointer;
  position: relative;
  transition: color 350ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}
/* 항상 깔리는 회색 1px 베이스 라인 */
.coll-tabs__tab::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #E5E5E5;
  pointer-events: none;
}
/* 호버/활성 시 좌→우로 자라는 검정 2px 라인 (프로그레스바 스타일) */
.coll-tabs__tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #111111;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 550ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.coll-tabs__tab:hover { color: #111111; }
.coll-tabs__tab:hover::after,
.coll-tabs__tab.is-active::after {
  transform: scaleX(1);
}
.coll-tabs__tab.is-active { color: #111111; }
@media (max-width: 640px) {
  .coll-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
    overflow-x: visible;
  }
  .coll-tabs__tab { font-size: 15px; padding: 12px 0 14px; }
}

/* 카드 그리드 — 4컬럼 (이미지 매칭) */
.coll-page-list {
  background: #ffffff;
  padding: 0 0 clamp(96px, 14vh, 160px);
}
.coll-grid {
  display: grid;
  margin-top:20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 20px;
}
@media (max-width: 1024px) {
  .coll-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
}
@media (max-width: 768px) {
  .coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
}
@media (max-width: 640px) {
  .coll-grid { grid-template-columns: 1fr; gap: 32px; }
}

.coll-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.coll-card[hidden] { display: none; }
.coll-card__media {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f3f3;
}
.coll-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.coll-card:hover .coll-card__media img { transform: scale(1.03); }
.coll-card__name {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #111111;
}
.coll-empty {
  margin: 48px 0 0;
  font-size: 14px;
  color: #888888;
  text-align: center;
}

/* -------------------- PROJECT DETAIL PAGE -------------------- */
.proj-detail-bc {
  background: #ffffff;
  padding: calc(var(--nav-h) + clamp(36px, 6vh, 60px)) 0 clamp(20px, 3vh, 32px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  letter-spacing: -0.03em;
  color: #888;
}
.breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 200ms ease;
}
.breadcrumb a:hover { color: #111; }
.breadcrumb__sep { color: #cfcfcf; }
.breadcrumb__current { color: #888; }

.proj-detail {
  background: #ffffff;
  padding: 0 0 clamp(80px, 11vh, 120px);
}
.proj-detail__grid {
  display: grid;
  /* 좌측 = 정보(디테일), 우측 = 이미지. 이미지 영역은 기존보다 약 100px 좁아짐 */
  grid-template-columns: 1fr 1.2fr;
  column-gap: clamp(40px, 5vw, 80px);
  row-gap: 16px;
  align-items: start;
}
/* 모든 이미지: 우측 컬럼에 자동으로 세로 누적 (갯수 무관) */
.proj-detail__img {
  margin: 0;
  overflow: hidden;
  grid-column: 2;
}
.proj-detail__img img {
  width: 100%;
  height: auto;
  display: block;
  background: #f3f3f3;
}

/* 정보 영역: 좌측 컬럼 첫 행 — DOM 위치(첫 이미지 다음)와 무관하게 고정 */
.proj-detail__info {
  grid-column: 1;
  grid-row: 1;
  /* 우측 이미지가 스크롤될 동안 좌측 정보는 nav 바로 아래에서 sticky로 머무름 */
  position: sticky;
  top: 90px;
  align-self: start;
  /* sticky 스크롤 중 sub-pixel 좌우 진동 방지 — GPU 레이어 분리 + 픽셀 스냅 */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  contain: layout style;
}
.proj-detail__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #111111;
}
.proj-detail__desc {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.03em;
  color: #6b6b6b;
}

/* expandable rows */
.proj-detail__expand {
  border-top: 1px solid #e3e3e3;
  padding: 14px 0;
}
.proj-detail__expand:last-of-type {
  border-bottom: 1px solid #e3e3e3;
}
.proj-detail__expand summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #111;
  cursor: default;
  pointer-events: none;          /* 클릭으로 접히지 않도록 — 항상 펴진 상태 유지 */
}
.proj-detail__expand summary::-webkit-details-marker { display: none; }
.proj-detail__expand-body {
  padding: 12px 0 4px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -0.03em;
  color: #888;
}
.proj-detail__expand-body p { margin: 0; }

/* 모바일/태블릿: 단일 컬럼, 정보가 최상단 → 이후 이미지들이 순서대로 */
@media (max-width: 900px) {
  .proj-detail__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 60px;
  }
  .proj-detail__img,
  .proj-detail__info {
    grid-column: 1;
  }
  /* 모바일은 sticky 해제 + 정보 영역을 최상단으로 */
  .proj-detail__info {
    grid-row: auto;
    position: static;
    top: auto;
    order: -1;       /* DOM 순서와 무관하게 최상단 */
  }
  .proj-detail__title { font-size: 22px; }
}


/* -------------------- OTHER PROJECT (디테일 페이지 하단) -------------------- */
.other-projects {
  background: #ffffff;
  padding: clamp(40px, 6vh, 80px) 0 clamp(96px, 14vh, 160px);
}
.other-projects__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 24px;
  color: #111;
}
.other-projects__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px) {
  .other-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 모바일에선 2개만 노출 (3번째 이후 숨김) */
@media (max-width: 640px) {
  .other-projects__grid .proj-card:nth-child(n+3) { display: none; }
  .other-projects__grid { gap: 14px; }
}

/* -------------------- LIGHT SUBPAGE — NAV 색상 적응 -------------------- */
body.subpage--light .nav {
  /* 기본 다크 그라디언트 제거, 흰 배경에서 가독성 확보 */
  background: transparent;
  color: #111111;
}
body.subpage--light .nav__brand,
body.subpage--light .nav__menu a {
  color: #111111;
}
body.subpage--light .nav__toggle { color: #111111; }

/* 스크롤 시: 서브페이지도 메인의 .nav.is-scrolled 룩을 그대로 사용
   (별도 override 없음 — 글자색은 adaptive nav tone JS 가 자동으로 처리) */

/* -------------------- ADAPTIVE NAV TONE — nav 뒤 배경 밝기에 따라 자동 전환 --------------------
   JS가 nav 바로 아래의 픽셀을 샘플링해서 .nav--on-light / .nav--on-dark 를 토글함.
   subpage--light, is-scrolled 보다 뒤에 선언해서 가장 마지막에 적용되도록 함. */
body .nav.nav--on-light,
body .nav.nav--on-light .nav__brand,
body .nav.nav--on-light .nav__menu a,
body .nav.nav--on-light .nav__toggle {
  color: #111111;
}
body .nav.nav--on-dark,
body .nav.nav--on-dark .nav__brand,
body .nav.nav--on-dark .nav__menu a,
body .nav.nav--on-dark .nav__toggle {
  color: #ffffff;
}

/* -------------------- SOLID NAV — 어바웃처럼 풀블리드 페이지에서 사용 --------------------
   nav 관련 모든 규칙(subpage--light, is-scrolled, adaptive tone) 뒤에 선언해서
   순서 기반으로 모두 덮어씀. */
body.subpage--solid-nav .nav,
body.subpage--solid-nav .nav.is-scrolled {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.subpage--solid-nav .nav,
body.subpage--solid-nav .nav__brand,
body.subpage--solid-nav .nav__menu a,
body.subpage--solid-nav .nav__toggle,
body.subpage--solid-nav .nav.nav--on-light,
body.subpage--solid-nav .nav.nav--on-light .nav__brand,
body.subpage--solid-nav .nav.nav--on-light .nav__menu a,
body.subpage--solid-nav .nav.nav--on-light .nav__toggle,
body.subpage--solid-nav .nav.nav--on-dark,
body.subpage--solid-nav .nav.nav--on-dark .nav__brand,
body.subpage--solid-nav .nav.nav--on-dark .nav__menu a,
body.subpage--solid-nav .nav.nav--on-dark .nav__toggle {
  color: #111111;
}
body.subpage--solid-nav main {
  padding-top: var(--nav-h);
}

/* 디테일 페이지(컬렉션/프로젝트 상세) — 헤더 로고 색은 적응형 톤 영향 받지 않고 항상 검정 고정.
   메뉴/햄버거는 그대로 적응형 동작. */
body.subpage--detail .nav__brand,
body.subpage--detail .nav.nav--on-light .nav__brand,
body.subpage--detail .nav.nav--on-dark .nav__brand,
body.subpage--detail .nav.is-scrolled .nav__brand {
  color: #111111;
}

/* -------------------- FOOTER -------------------- */
.footer {
  background: #000000;
  color: #ffffff;
  padding: clamp(56px, 8vh, 6px) 0 clamp(28px, 4vh, 40px);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 96px);
}
.footer__brand {
  display: flex;
  flex-direction: column;
}
.footer__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #ffffff;
}
.footer__contacts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}
.footer__contacts a {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: -0.03em;
  transition: opacity 200ms ease;
  text-decoration: none;
}
.footer__contacts a:hover { opacity: 0.7; }
.footer__address {
  display: inline-block;
  color: #ffffff;
  font-size: 15px;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms ease;
  width: max-content;
  max-width: 100%;
}
.footer__address:hover { opacity: 0.7; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copyright {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.6);
}
.footer__socials {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
/* 블로그 아이콘만 80% 사이즈로 (인스타 대비) */
.footer__social[aria-label="Naver Blog"] svg,
.nav__drawer-social a[aria-label="Naver Blog"] svg {
  transform: scale(0.8);
}
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  transition: opacity 200ms ease;
}
.footer__social:hover { opacity: 0.7; }
.footer__social svg {
  width: 120%;
  height: 120%;
  display: block;
}

@media (max-width: 480px) {
  .footer__title { font-size: 26px; }
  .footer__bottom {
    align-items: flex-start;
    gap: 16px;
  }
}

/* -------------------- ANIMATION COMPONENTS — data-rc-anim 기반 재사용 컴포넌트 --------------------
   사용 예: <h2 data-rc-anim="01">제목</h2>  또는  <figure data-rc-anim="02"><img ...></figure>
   별명:
     "01" = "letter-stagger" (글자 한 자씩 아래에서 페이드 인, 스크롤 진입 시 1회)
     "02" = "scale-in" (1.1배 → 1배 부드럽게 안착, 스크롤 진입 시 1회 — 이미지 권장)
   .collection__title / .projects__title 도 letter-stagger 자동 적용 (하위 호환). */

/* "02" / scale-in — 컨테이너에 overflow:hidden 권장. transform-origin 은 중앙. */
[data-rc-anim="02"],
[data-rc-anim="scale-in"] {
  overflow: hidden;
  transform-origin: center center;
}
[data-rc-anim="02"] > *,
[data-rc-anim="scale-in"] > * {
  transform: scale(1.1);
  transform-origin: center center;
  transition: transform 1000ms cubic-bezier(0.44, 0, 0.56, 1);
  will-change: transform;
}
[data-rc-anim="02"].is-revealed > *,
[data-rc-anim="scale-in"].is-revealed > * {
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  [data-rc-anim="02"] > *,
  [data-rc-anim="scale-in"] > * {
    transform: none;
    transition: none;
  }
}

/* "03" / stagger-fade-up — 자식 요소들이 좌→우 순서로 위로 올라오며 페이드 인 */
[data-rc-anim="03"] > *,
[data-rc-anim="stagger-fade-up"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-rc-anim="03"] > *:nth-child(1),
[data-rc-anim="stagger-fade-up"] > *:nth-child(1) { transition-delay: 0ms; }
[data-rc-anim="03"] > *:nth-child(2),
[data-rc-anim="stagger-fade-up"] > *:nth-child(2) { transition-delay: 160ms; }
[data-rc-anim="03"] > *:nth-child(3),
[data-rc-anim="stagger-fade-up"] > *:nth-child(3) { transition-delay: 320ms; }
[data-rc-anim="03"] > *:nth-child(4),
[data-rc-anim="stagger-fade-up"] > *:nth-child(4) { transition-delay: 480ms; }
[data-rc-anim="03"] > *:nth-child(5),
[data-rc-anim="stagger-fade-up"] > *:nth-child(5) { transition-delay: 640ms; }
[data-rc-anim="03"].is-revealed > *,
[data-rc-anim="stagger-fade-up"].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-rc-anim="03"] > *,
  [data-rc-anim="stagger-fade-up"] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

[data-rc-anim="01"] .ltr,
[data-rc-anim="letter-stagger"] .ltr,
.collection__title .ltr,
.projects__title .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-rc-anim="01"].is-revealed .ltr,
[data-rc-anim="letter-stagger"].is-revealed .ltr,
.collection__title.is-revealed .ltr,
.projects__title.is-revealed .ltr {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-rc-anim] .ltr,
  .collection__title .ltr,
  .projects__title .ltr {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -------------------- ACCESSIBILITY / MOTION -------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  /* 슬라이드 애니메이션이 멈춰도 첫 슬라이드는 보이도록 */
  .hero__slide { opacity: 0; transform: none; }
  .hero__slide--1 { opacity: 1; }
}

::selection {
  background: #fff;
  color: #1a1612;
}
