/* BRICK 공식 홈페이지 */
:root {
  --charcoal: #58575B;       /* 로고 기준색 */
  --charcoal-deep: #3F3E42;  /* 진한 배경 */
  --champagne: #CDBB98;      /* 포인트 */
  --offwhite: #F5F4F1;       /* 기본 배경 */
  --gray: #8B8A8F;           /* 보조 글자 */
  --silver: #ECECEE;
  --line: #DEDCD8;
  --ink: #2E2D31;            /* 밝은 배경 위 본문 */

  --serif: "Cormorant Garamond", "Noto Serif KR", serif;
  --sans-en: "Jost", "Pretendard", sans-serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 공통 타이포 ---------- */
.eyebrow {
  font-family: var(--sans-en);
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--champagne);
  margin-bottom: 20px;
}
.eyebrow.dark { color: var(--gray); }
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--silver);
}
.display em { font-style: italic; color: var(--champagne); }
.title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.title.light { color: #fff; }
.statement { font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.45; }
.body-text { font-size: 16px; color: #5F5E63; max-width: 620px; }
.body-text.light { color: #C9C8CC; }
.note { margin-top: 32px; font-size: 14px; color: var(--gray); }
/* 줄바꿈: 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한두 글자만 남지 않게 */
h1, h2, h3, .statement, .title { text-wrap: balance; }
p, dd { text-wrap: pretty; }
.body-text { line-height: 1.85; }
.body-text + .body-text { margin-top: 14px; }
.note { line-height: 1.75; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent; border-radius: 0;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn-champagne { background: var(--champagne); color: var(--charcoal-deep); }
.btn-champagne:hover { background: #DCCDAE; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { border-color: var(--champagne); color: var(--champagne); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-solid { background: rgba(63, 62, 66, .96); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand img { width: 112px; height: auto; }
.gnb { display: flex; gap: 32px; margin-left: auto; }
.gnb a {
  font-family: var(--sans-en); font-size: 13px; letter-spacing: .14em; color: #D9D9DC;
  position: relative; padding: 6px 0;
}
.gnb a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--champagne); transform: scaleX(0); transition: transform .3s;
}
.gnb a:hover { color: #fff; }
.gnb a:hover::after { transform: scaleX(1); }
.header-cta { height: 40px; padding: 0 18px; font-size: 13px; }
.gnb-item { position: relative; display: flex; align-items: center; }
.subnav {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  display: grid; grid-template-columns: repeat(3, max-content); gap: 36px;
  padding: 28px 32px; margin-top: 14px;
  background: rgba(63, 62, 66, .98); box-shadow: 0 24px 48px -24px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav-col { display: grid; gap: 4px; align-content: start; }
.subnav-title { font-family: var(--sans-en); font-size: 11px; letter-spacing: .2em; color: var(--champagne); margin-bottom: 8px; }
.gnb .subnav a { font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: #CFCED2; padding: 5px 0; white-space: nowrap; }
.gnb .subnav a::after { display: none; }
.gnb .subnav a:hover { color: #fff; }
.menu-toggle { display: none; }

/* ---------- 1. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(60% 70% at 72% 55%, #56555A 0%, transparent 75%),
    #4C4B50;  /* 첫 화면 사진의 배경색과 맞춤 */
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px;
}
.hero-sub { margin-top: 28px; font-size: 17px; color: #D2D1D5; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.hero-inner > * { min-width: 0; }
.hero-art { margin-right: calc(var(--gutter) * -1); }
.hero-art img {
  width: 100%; height: auto;
  /* 사진 가장자리를 배경색으로 자연스럽게 녹인다 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
          mask-composite: intersect;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--sans-en); font-size: 11px; letter-spacing: .3em; color: #B9B8BC;
  padding-bottom: 44px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px;
  background: linear-gradient(var(--champagne), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(88px, 12vw, 150px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- 2. ABOUT ---------- */
.about-inner { max-width: 880px; }
.about .statement { margin-bottom: 28px; }

/* ---------- 3. WHY ---------- */
.why { background: #fff; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.promise { padding: 36px 28px 8px 0; }
.promise + .promise { padding-left: 28px; border-left: 1px solid var(--line); }
.promise .num { font-family: var(--serif); font-size: 40px; color: var(--champagne); line-height: 1; }
.promise h3 { margin: 22px 0 12px; font-size: 19px; font-weight: 600; }
.promise p { font-size: 15px; color: #6A696E; }

/* ---------- 4. PRODUCT ---------- */
.filter-bar { margin: -12px 0 36px; }
.filter-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.filter-tab {
  position: relative; padding: 0 0 14px; border: 0; background: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: #9A999E; transition: color .2s;
}
.filter-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--charcoal); transform: scaleX(0); transition: transform .25s; }
.filter-tab.is-active { color: var(--ink); }
.filter-tab.is-active::after { transform: scaleX(1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips[hidden] { display: none; }
.chip {
  height: 38px; padding: 0 16px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; color: #6A696E; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--charcoal); color: var(--ink); }
.chip.is-active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.filter-count { margin-top: 16px; font-size: 13px; color: var(--gray); }
.product-card[hidden] { display: none; }
.product-info .spec { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--charcoal); }
.filter-empty { padding: 56px 0; text-align: center; color: #6A696E; background: #fff; }
.filter-empty a { text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: #fff; transition: transform .35s, box-shadow .35s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(63,62,66,.35); }
.product-visual { aspect-ratio: 4 / 5; overflow: hidden; background: #ECEBE7; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-visual img { transform: scale(1.04); }
.product-info { padding: 22px 24px 26px; }
.product-info .en { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gray); }
.product-info h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 600; }
.product-info p { font-size: 14px; color: #77767B; }

/* ---------- 5. PROCESS ---------- */
.process { background: var(--charcoal-deep); color: #fff; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 32px 26px 36px; border: 1px solid rgba(255,255,255,.12); }
.step-no { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--champagne); }
.step-en { display: block; margin-top: 26px; font-family: var(--sans-en); font-size: 12px; letter-spacing: .2em; color: var(--gray); text-transform: uppercase; }
.step h3 { margin: 6px 0 12px; font-size: 20px; font-weight: 600; }
.step p { font-size: 15px; color: #BDBCC0; }

/* ---------- 6. CONTACT ---------- */
.contact { background: var(--charcoal); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact .body-text { margin-top: 18px; }
.contact-meta { margin-top: 44px; display: grid; gap: 16px; }
.contact-meta div { display: flex; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-meta dt { width: 96px; flex: none; font-family: var(--sans-en); font-size: 12px; letter-spacing: .18em; color: var(--champagne); padding-top: 3px; }
.contact-meta dd { font-size: 15px; color: #E4E3E6; }
.quote-form { background: var(--offwhite); color: var(--ink); padding: clamp(28px, 4vw, 44px); display: grid; gap: 16px; }
.quote-form h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: #4E4D52; }
.quote-form input:not([type=checkbox]), .quote-form select, .quote-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 400; border-radius: 0; outline: none; transition: border-color .2s;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--charcoal); }
.quote-form .is-invalid { border-color: #B5655B !important; }
.quote-form .consent { display: flex; align-items: center; gap: 10px; font-weight: 400; color: #5F5E63; }
.consent input { width: 18px; height: 18px; accent-color: var(--charcoal); }
.form-status { min-height: 1.4em; font-size: 14px; color: #5F5E63; }
.form-status.is-error { color: #B5655B; }
.policy-link { margin-left: auto; font-size: 13px; color: var(--gray); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.footer-info .copy a { color: #A9A8AD; text-decoration: underline; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--charcoal-deep); color: #A9A8AD; padding: 64px 0 56px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; }
.footer-logo { width: 160px; height: auto; }
.footer-info { font-size: 13px; line-height: 1.9; }
.footer-info .copy { margin-top: 8px; color: #7E7D82; }
.footer-links { display: flex; gap: 10px; }

/* ---------- 스크롤 등장 효과 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue::after { animation: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .gnb { gap: 22px; }
  .promise-grid, .process-list { grid-template-columns: repeat(2, 1fr); }
  .promise:nth-child(3) { padding-left: 0; border-left: 0; }
  .promise { padding-bottom: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .menu-toggle {
    display: grid; place-content: center; gap: 7px; margin-left: auto;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 24px; height: 1.5px; background: #fff; transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .gnb {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--charcoal-deep); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s;
  }
  .gnb.is-open { transform: none; opacity: 1; visibility: visible; }
  .gnb a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .gnb a::after { display: none; }
  .gnb-item { display: block; }
  .subnav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 120px; }
  .hero-art { max-width: 420px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .promise-grid, .process-list { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 14px 14px 16px; }
  .product-info h3 { font-size: 15px; }
  .product-info p { font-size: 12px; }
  .product-info .spec { font-size: 12px; }
  .promise, .promise + .promise { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .br-pc { display: none; }  /* 좁은 화면에서는 긴 문단을 자연스럽게 흐르게 */
}
