:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#6b7280;
  --line:rgba(17,17,17,.08);
  --card:rgba(255,255,255,.86);
  --point:#e11921; /* ✅ 한샘 레드 */
}

*{box-sizing:border-box}
html,body{height:100%}

/* ✅ 페이지 페이드 (진입/이탈) */
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color:var(--text);
  background:var(--bg);
  opacity:0;
  transition: opacity .55s ease-in-out;
}
body.is-loaded{opacity:1}
body.is-leaving{opacity:0}

a{color:inherit; text-decoration:none}
.wrap{max-width:1100px; margin:0 auto; padding:0 24px}

/* NAV */
.nav{
  position:sticky; top:0; z-index:50;
  border-bottom:1px solid var(--line);
}
.nav--light{background:#fff}
.navbar{
  height:64px;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:10px; min-width:220px}

/* ✅ 로고 30% 키움 (26 -> 34) */
.brand-logo{
  width:34px; height:34px;
  border-radius:0 !important;
  object-fit:contain;
  display:block;
}
.brand-title{
  font-size:14px;
  font-weight:500;
  letter-spacing:.02em;
  opacity:.9;
}
.menu{display:flex; gap:18px; align-items:center}
.menu a{
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#666;
  padding:10px 4px;
  border-bottom:2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.menu a:hover{color:var(--point)}
.menu a.active{
  color:var(--point);
  border-bottom-color:var(--point);
}

/* HOME HERO (슬라이드 + 페이드) */
.hero-full{
  min-height:calc(100vh - 64px);
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.28)),
    url("assets/hero.jpg") center/cover no-repeat;
}

.hero-bg{
  position:absolute; inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  transition:opacity .9s ease-in-out;
  will-change:opacity;
}
.hero-bg::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.28));
}
.hero-bg.is-a{opacity:1}
.hero-bg.is-b{opacity:0}

.hero-center{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  z-index:2;
}

/* 버튼 */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:44px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:13px;
  line-height:1;
  letter-spacing:.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover{
  background:var(--point);
  border-color:var(--point);
  color:#fff;
}
.hero-btn{
  min-width:160px;
  border-color:rgba(255,255,255,.55);
  background:rgba(255,255,255,.10);
}

/* PAGES */
.page{padding:44px 0 24px}
.page-title{margin:0 0 8px; font-size:26px; letter-spacing:-.02em}
.page-subtitle{margin:0 0 22px; color:var(--muted); font-size:13px}

/* STORY */
.story-grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:22px;
  align-items:stretch;
}
.story-photo{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#f6f6f6;
  min-height:420px;
}
.story-photo img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.story-text{
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  min-height:420px;
  padding:18px;
}
.story-text-inner{
  color:#444;
  font-size:13px;
  line-height:1.7;
  outline:none;
}

/* DESIGNERS */
.designer-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.designer-card{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.designer-photo{
  width:100%;
  aspect-ratio: 3 / 4;
  background:#f5f5f5;
}
.designer-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.designer-body{padding:14px 14px 16px}
.designer-name{font-weight:700; font-size:14px}
.designer-role{
  margin-top:4px;
  color:var(--point);
  font-size:12px;
  font-weight:500;
}
.designer-desc{
  margin-top:10px;
  color:#444;
  font-size:12px;
  line-height:1.7;
  word-break:keep-all;
}
.designer-ghost{visibility:hidden}

/* PORTFOLIO */
.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
}
.portfolio-card{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.portfolio-img{aspect-ratio: 4/3; background:#f4f4f4}
.portfolio-img img{width:100%; height:100%; object-fit:cover; display:block}
.portfolio-cap{
  padding:12px 14px;
  font-size:13px;
  color:#222;
  border-top:1px solid var(--line);
}

/* GALLERY */
.gallery-grid{display:grid; grid-template-columns: repeat(2, 1fr); gap:18px}
.gallery-item{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  display:block;
}
.gallery-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  aspect-ratio: 4 / 3;
}

/* PROCESS */
.process-flow{max-width:760px; margin:0 auto; padding:8px 0 0}
.step{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.step-no{font-size:11px; color:#888; letter-spacing:.14em}
.step-txt{font-size:14px; font-weight:700}
.arrow{
  text-align:center;
  color:#bbb;
  font-size:18px;
  padding:10px 0;
}

/* CONTACT SECTION */
.contact-form{max-width:900px; margin:0 auto}
.gform{
  width:100%;
  height:920px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
.divider{
  height:1px;
  background:var(--line);
  margin:18px 0;
}
.kakao-btn{
  width:100%;
  max-width:420px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
  border:1px solid var(--line);
  background:#fff;
  height:48px;
  border-radius:999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.kakao-btn:hover{
  background:#fafafa;
  border-color:var(--point);
  color:var(--point);
}

/* FOOTER */
.footer{
  border-top:1px solid var(--line);
  padding:18px 0 20px;
  background:#fff;
}
.footer--home{
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.footer-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  font-size:11px;
  color:#333;
}
.footer-left a{color:#111; text-decoration:underline}
.footer-right{white-space:nowrap; color:#555}

/* RESPONSIVE */
@media (max-width: 980px){
  .designer-grid{grid-template-columns: repeat(2, 1fr)}
  .portfolio-grid{grid-template-columns: repeat(2, 1fr)}
  .gallery-grid{grid-template-columns: repeat(2, 1fr)}
  .story-grid{grid-template-columns: 1fr}
  .story-photo,.story-text{min-height:360px}
}
@media (max-width: 560px){
  .menu{gap:10px}
  .menu a{letter-spacing:.1em; font-size:11px}
  .designer-grid{grid-template-columns: 1fr}
  .portfolio-grid{grid-template-columns: 1fr}
  .gallery-grid{grid-template-columns: 1fr}
  .footer-row{flex-direction:column; align-items:flex-start}
}

/* ============================================================
   [ADDITIONAL FUNCTIONS] 
   ============================================================ */

/* 1. Netlify Form Layout */
.netlify-form {
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  text-align: left;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 700; color: #111; }
.form-group input[type="text"], 
.form-group input[type="tel"], 
.form-group input[type="date"], 
.form-group textarea, 
.form-group select {
  padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; width: 100%; outline: none;
}
.checkbox-list, .radio-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.checkbox-list label, .radio-list label { font-weight: 400; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.etc-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.etc-row input { flex: 1; }
.submit-btn {
  margin-top: 10px; height: 52px; background: #111; color: #fff; border: none; border-radius: 8px;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.submit-btn:hover { background: var(--point); }

/* 2. Lightbox & Watermark (최종 최적화본) */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; z-index: 9999;
  overflow: hidden; touch-action: none;
}
.lightbox.active { display: flex; }
.lightbox-content {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 95%; max-height: 95%;
  object-fit: contain;
  transition: transform 0.1s ease-out;
  will-change: transform;
  user-select: none; -webkit-user-drag: none;
}
.lightbox-content::after {
  content: ""; position: absolute; right: 30px; bottom: 30px;
  width: 140px; height: 70px; 
  background: url("assets/watermark.png") no-repeat right bottom / contain;
  opacity: 0.4; pointer-events: none; z-index: 10;
}
.lightbox-close {
  position: fixed; top: 20px; right: 30px;
  color: #fff; font-size: 50px; cursor: pointer; z-index: 10001;
  line-height: 1; text-shadow: 0 0 10px rgba(0,0,0,0.5);
}