/* ===== Base reset ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body{
  color:#111;
  background:#fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

img{ max-width:100%; display:block; }
.hidden{ display:none; }

/* 접근성용 숨김 텍스트 */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ===== Sticky footer layout ===== */
.site{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main{ flex: 1; }

/* ===== Header / Nav ===== */
.header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
  z-index: 50;
}

.header-inner{
  max-width: 1800px;
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 28px);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* 로고 스타일 복구 + 블랙 */
.logo-link{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-decoration:none;
  color:#000;
}

/* 메뉴 컨테이너 */
.nav{
  display:flex;
  gap:26px;
  align-items:center;
}

/* 공통 링크 */
/* ===== 상단 메뉴 기본 상태 (검정 40%) ===== */
.nav-link:not(.insta):not(.everywhere) {
  font-size:14px;
  color: rgba(0,0,0,0.4);
  text-decoration:none;
  transition: color .25s ease;
  border-bottom: none;
  padding-bottom: 0;

  font-weight: 700;   /* 볼드 */
}

/* ===== hover → 검정 100% + 깜빡임 ===== */
.nav-link:not(.insta):not(.everywhere):hover {
  color: #000;              /* 완전 검정 */
  animation: softBlink 1.6s ease-in-out infinite;
  border-bottom: none !important;
}



/* ===== Menu hover: 깜빡임 (텍스트 메뉴만) ===== */
@keyframes softBlink {
  0%   { opacity: 1; }
  50%  { opacity: 0.25; }
  100% { opacity: 1; }
}

.nav-link:not(.insta):not(.everywhere):hover{
  animation: softBlink 1.6s ease-in-out infinite;
}

/* 텍스트 메뉴: 밑줄 완전 제거 */
.nav-link:not(.insta):not(.everywhere){
  padding-bottom: 0;
  border-bottom: none;
}

/* ===== Icons (everywhere image + instagram svg) ===== */
.nav-link.everywhere,
.nav-link.insta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* everywhere 로고 이미지 */
.nav-link.everywhere img{
  width:16px;
  height:16px;
  object-fit:contain;
  transform: translateY(1px);
  transition: opacity .2s ease, transform .2s ease;
  filter: brightness(0); /* ✅ PNG를 검정으로 */
}

.nav-link.everywhere:hover img{
  opacity:.7;
  transform: translateY(1px) scale(1.06);
}

/* instagram 아이콘 svg */
.nav-link.insta svg{
  width:16px;
  height:16px;
  display:block;
  transform: translateY(1px);
  transition: opacity .2s ease;
}

.nav-link.insta:hover svg{ opacity:.6; }

/* ===== Main container ===== */
.page{
  max-width:1200px;
  margin:0 auto;
  padding: 30px 28px 90px;
}

/* ===== Work grid (메인 썸네일) ===== */
.work{ padding-top:10px; }

.work-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: clamp(18px, 3.2vw, 70px);
  align-items:start;

  /* ✅ 이제 가운데 모으지 않고 "좌우로 꽉" 쓰게 */
  justify-items: stretch;

  margin-top:30px;
}

.card{
  width:100%;
  text-decoration:none;
  color:inherit;
  text-align:center;

  /* ✅ 카드가 칸을 꽉 쓰도록 */
  max-width: none;
}

/* 썸네일은 칸 너비에 맞게, 높이는 비율로 자동 */
.card-thumb{
  width:100%;
  aspect-ratio: 4 / 3;      /* ✅ 비율 고정(원하면 1/1로 바꿀 수 있음) */
  height:auto;
  object-fit:cover;
  border:1px solid rgba(0,0,0,0.08);
  background:#fff;

  transition: transform 520ms cubic-bezier(.22,.61,.36,1),
              opacity 520ms ease;
  transform: scale(1);
}

.card:hover .card-thumb{
  transform: scale(1.08);
  opacity: 0.96;
}

.card-title{
  margin-top:15px;
  font-family: Georgia, "Times New Roman", serif;

  font-size:15px;
  letter-spacing:-0.2px;

  font-weight:400;
}



/* ✅ 태블릿: 3열 */
@media (max-width:1100px){
  .work-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ✅ 모바일: 2열 */
@media (max-width:820px){
  .work-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ✅ 아주 작은 모바일: 1열 (원하면 유지/삭제 가능) */
@media (max-width:420px){
  .work-grid{ grid-template-columns: 1fr; }
}



/* ===== Basic sections ===== */
.section{
  max-width:900px;
  margin:70px auto 0;
}

.section-title{
  font-size:20px;
  margin:0 0 14px;
}

.section-text{
  margin:0;
  line-height:1.8;
  font-size:15px;
  color:#222;
}

/* ===== Project page ===== */
.project-hero{
  max-width:900px;
  margin:70px auto 60px;
  text-align:center;
}

.project-title{
  font-family: Georgia, "Times New Roman", serif;
  font-weight:400;
  font-size:56px;
  line-height:1.05;
  margin:0 0 18px;
}

.project-desc{
  font-size:16px;
  line-height:1.7;
  margin:0;
  color:#222;
}

.project-gallery{
  max-width:1000px;
  margin:0 auto;
}

@keyframes fadeInUp{
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}

.project-gallery img{
  width:100%;
  height:auto;
  display:block;

  /* ✅ 기존 26px → 78px (약 3배) */
  margin:0 auto 78px;

  opacity:0;
  animation: fadeInUp 1200ms cubic-bezier(.22,.61,.36,1) forwards;
}

.project-gallery img:nth-child(1){ animation-delay: 120ms; }
.project-gallery img:nth-child(2){ animation-delay: 360ms; }
.project-gallery img:nth-child(3){ animation-delay: 600ms; }
.project-gallery img:nth-child(4){ animation-delay: 840ms; }
.project-gallery img:nth-child(5){ animation-delay: 1080ms; }
.project-gallery img:nth-child(6){ animation-delay: 1320ms; }

/* ===== About ===== */
.about{
  max-width:1200px;
  margin:0 auto;
  padding:60px 28px 90px;
}

.about-grid{
  display:grid;
  grid-template-columns: 1fr 1.25fr;
  gap:80px;
  align-items:start;
}

.about-kicker{
  font-family: Georgia, "Times New Roman", serif;
  font-size:56px;
  font-weight:700;
  line-height:1;
  margin:0 0 6px;
}

.about-title{
  font-family: Georgia, "Times New Roman", serif;
  font-size:56px;
  font-weight:700;
  font-style:italic;
  line-height:1;
  margin:0 0 28px;

  display:inline-block;
  padding-bottom:6px;
  border-bottom:3px solid #111;
}

.about-body{
  max-width:520px;
  font-size:14px;
  line-height:1.8;
  color:#222;
  margin:0;
}

.about-media img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

/* ===== Footer (always bottom + aligned with header) ===== */
.footer{
  margin-top: 0;
  border-top: 1px solid #eee;
}

.footer-inner{
  max-width: 1800px;
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 28px);

  display:flex;
  align-items:center;
  justify-content:space-between;

  font-size:12px; /* ✅ 사이즈 유지 */
  font-family: Georgia, "Times New Roman", serif; /* ✅ 타이틀 폰트 */
  color:#000; /* ✅ 블랙 */
}

.footer a{
  color:#000;
  text-decoration:none;
  transition:color .2s ease;
}

.footer a:hover{ color:#333; }

/* ===== Responsive ===== */
@media (max-width:1100px){
  .work-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap:50px; }
}

@media (max-width:900px){
  .header-inner{ padding:14px clamp(16px, 3vw, 28px); }
  .logo-link{ font-size:22px; }
  .nav{ gap:14px; }

  .about-grid{
    grid-template-columns: 1fr;
    gap:28px;
  }

  .about-kicker,
  .about-title{ font-size:44px; }
}

@media (max-width:820px){
  .page{ padding:22px 16px 70px; }
  .work-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap:30px; }
  .card-title{ font-size:28px; }
  .project-title{ font-size:44px; }
  .project-hero{ margin:55px auto 40px; }
}

@media (max-width:700px){
  .footer-inner{
    flex-direction:column;
    gap:8px;
    text-align:center;
  }
}

@media (max-width:480px){
  .work-grid{ grid-template-columns: 1fr; }
  .card{ max-width:320px; }
  .card-thumb{ height:190px; }
  .project-title{ font-size:38px; }
}
/* ✅ Work 그리드만 더 넓게 사용 */
.work{
  max-width: 1800px;
  margin: 0 auto;
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}
