/* =========================================================
   참빛디자인 — Design System
   DESIGN. BUILD. INSTALL. CARE.
   ========================================================= */

:root {
  /* Palette — warm white / charcoal / black + controlled accent */
  --paper:       #F4F2ED;
  --paper-soft:  #EAE6DE;
  --warm-grey:   #D9D3C8;
  --ink:         #16140F;
  --charcoal:    #19181400;
  --charcoal-1:  #1A1916;
  --charcoal-2:  #221F1B;
  --line-dark:   #322E28;
  --muted:       #79726540;
  --muted-text:  #837B6E;
  --muted-on-dark: #9C9488;
  --accent:      #E8533B;
  --accent-deep: #C8412B;
  --accent-soft: rgba(232, 83, 59, 0.12);

  /* Type */
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --fs-mega:    clamp(3.2rem, 9vw, 8.5rem);
  --fs-h1:      clamp(2.4rem, 6vw, 5.2rem);
  --fs-h2:      clamp(2rem, 4.6vw, 3.8rem);
  --fs-h3:      clamp(1.5rem, 2.6vw, 2.3rem);
  --fs-lead:    clamp(1.15rem, 1.7vw, 1.5rem);
  --fs-body:    clamp(1rem, 1.15vw, 1.125rem);
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;

  /* Spacing */
  --section-y:  clamp(6rem, 12vw, 11rem);
  --gutter:     clamp(1.25rem, 5vw, 6rem);
  --maxw:       1680px;

  /* Misc */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
  --header-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Type utilities ---------- */
.eyebrow {
  font-size: var(--fs-micro);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.display {
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.kor-tight { letter-spacing: -0.03em; }

.section { padding: var(--section-y) 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05em 1.9em;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: transform .4s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.45); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { border: 1px solid rgba(22,20,15,0.22); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-lg { padding: 1.25em 2.4em; font-size: var(--fs-body); }

/* ---------- Image placeholders ---------- */
/* Premium duotone placeholders, swappable via CMS */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--warm-grey);
  isolation: isolate;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2em 1.4em;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
.ph .ph-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
/* duotone gradient fills standing in for photography */
.ph-facade  { background: linear-gradient(135deg,#2b2723 0%,#4a423a 45%,#7d6f5e 100%); }
.ph-night   { background: linear-gradient(160deg,#0f1115 0%,#1d232e 50%,#3a2a22 100%); }
.ph-install { background: linear-gradient(140deg,#3a352e 0%,#5c5345 60%,#857247 100%); }
.ph-interior{ background: linear-gradient(150deg,#cabfb0 0%,#a89a86 55%,#6f6452 100%); }
.ph-led     { background: linear-gradient(135deg,#10131a 0%,#202b3d 45%,#c8412b 130%); }
.ph-sculpt  { background: linear-gradient(150deg,#d8d2c6 0%,#b0a692 60%,#7a6f5b 100%); }
.ph-print   { background: linear-gradient(140deg,#e6e1d7 0%,#cfc6b6 55%,#9a8f79 100%); }
.ph-crane   { background: linear-gradient(160deg,#23211d 0%,#3f3a32 55%,#6b5f4c 100%); }
.ph-corp    { background: linear-gradient(150deg,#1a1d24 0%,#33373f 60%,#5a4a3e 100%); }
.ph-grain::before {
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide .hero-sub, .hero-slide .hero-title, .hero-slide .hero-actions { opacity: 1; transform: none; animation: none; }
  * { scroll-behavior: auto !important; }
}

/* 실제 사진이 들어간 placeholder: 그레인/라벨 제거, cover 표시 */
.phx{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;}
.phx::before{display:none!important;}
.phx::after{display:none!important;}
