/* 스킨랩코리아 — 공용 스타일 */
:root {
  --bg: #fbfbf9;
  --bg-alt: #f1f2ef;
  --ink: #161816;
  --ink-sub: #4d524f;
  --ink-mute: #858a87;
  --line: #dfe2de;
  --accent: #5a847b;
  --accent-dark: #3f645c;
  --footer: #1d211f;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-sub); }

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn::after { content: "→"; transition: transform .25s; }
.btn:hover::after { transform: translateX(4px); }
.btn-dark { color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-light { color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* 헤더 */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid, .site-header.is-open {
  background: rgba(251, 251, 249, .96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.logo span { font-weight: 400; }
.nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; position: relative; transition: transform .25s, background-color .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* 히어로 */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #222;
}
.hero.is-sub { min-height: 62svh; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.55) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 {
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.hero.is-sub h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 0; }
.hero p { font-size: clamp(17px, 2vw, 21px); margin-bottom: 40px; opacity: .92; }

/* 좌우 분할 */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.split.reverse > :first-child { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.wide img { aspect-ratio: 4 / 3; }
.split-body .section-title { margin-bottom: 24px; }
.split-body .lead { margin-bottom: 40px; }
.split-body .lead strong { color: var(--ink); font-weight: 600; }

/* 가치 카드 */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); margin-top: 56px; }
.value-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 24px; }
.value-card .en { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.value-card h3 { font-size: clamp(19px, 1.9vw, 23px); font-weight: 600; letter-spacing: -.01em; }

/* 영상 */
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; margin-top: 48px; }
.video-wrap iframe, .video-wrap button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap button { cursor: pointer; background: #000 center / cover no-repeat; padding: 0; }
.video-wrap button::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); transition: background-color .25s; }
.video-wrap button:hover::before { background: rgba(0,0,0,.1); }
.video-wrap button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: rgba(255,255,255,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23161816'/%3E%3C/svg%3E") 54% 50% / 34px no-repeat;
}

/* 문의 */
.contact { background: var(--accent); color: #fff; }
.contact .eyebrow { color: rgba(255,255,255,.75); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact .lead { color: rgba(255,255,255,.85); margin-top: 20px; }
.contact-phone { display: block; font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.3); }
.contact-list li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-list dt, .contact-list .k { flex: 0 0 64px; font-size: 14px; opacity: .7; }
.contact-list a:hover { text-decoration: underline; }

/* 비전 */
.vision { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); margin-top: 56px; }
.vision figure { margin: 0; position: relative; overflow: hidden; color: #fff; }
.vision img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s; }
.vision figure:hover img { transform: scale(1.04); }
.vision figcaption { position: absolute; inset: auto 0 0 0; padding: 28px; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); }
.vision .en { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.vision h3 { font-size: 24px; font-weight: 600; }

/* 연혁 */
.history { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.history > li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.history .year { font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.3; }
.history ul { list-style: none; margin: 0; padding: 0; color: var(--ink-sub); }
.history ul li { position: relative; padding-left: 16px; }
.history ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1px; background: var(--ink-mute); }

/* 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.4vw, 16px); margin-top: 56px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: 14px; color: var(--ink-mute); margin-top: 10px; }

/* 브랜드 */
.brand-logo { width: min(240px, 60%); margin-bottom: 32px; }
.brand-copy p + p { margin-top: 14px; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); margin-top: 56px; }
.product { background: #fff; }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product div { padding: 20px 4px 4px; }
.product .en { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.product h3 { font-size: 18px; font-weight: 600; }
.product .desc { font-size: 14px; color: var(--ink-sub); margin-top: 4px; }
.products-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .products-5 { grid-template-columns: repeat(3, 1fr); } }

/* 푸터 */
.site-footer { background: var(--footer); color: rgba(255,255,255,.65); font-size: 14px; padding: 56px 0 48px; }
.site-footer .logo { color: #fff; display: inline-block; margin-bottom: 20px; }
.site-footer .info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer .copy { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.4); }

/* 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 모바일 */
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg); color: var(--ink);
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .values, .vision { grid-template-columns: 1fr; }
  .value-card img, .vision img { aspect-ratio: 4 / 3; }
  .gallery, .products { grid-template-columns: repeat(2, 1fr); }
  .history > li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}
