/* WOORIM — 메인 페이지 */

/* ---------- 도입 화면 ----------
   흰 화면에 문구가 떠오른 뒤(1.4s) 화면 전체가 걷히고(0.9s), 그 아래 히어로 사진이 살짝 당겨지며 자리 잡음 */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #fff;
  animation: introOut .9s var(--ease) 2.3s forwards;
  cursor: pointer;
}
.intro-inner { text-align: center; padding: 0 var(--gutter); }
.intro-mark {
  font-size: 13px; font-weight: 800; letter-spacing: .3em; margin-bottom: 20px;
  animation: introText 1s var(--ease) .1s both;
}
.intro-slogan {
  font-size: clamp(56px, 11vw, 168px); font-weight: 800; line-height: .92; letter-spacing: -0.055em;
  animation: introText 1.4s var(--ease) .35s both;
}
@keyframes introText { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro.is-skip { animation: introOut .4s var(--ease) forwards; }
.intro-seen .intro { display: none; }
.intro.is-skip * { animation: none; opacity: 1; }

/* ---------- 히어로 슬라이더 ---------- */
.hero {
  position: relative; overflow: hidden; width: 100%;
  height: 100svh; min-height: 560px; max-height: 1000px;
  background: var(--surface);
  touch-action: pan-y; user-select: none; cursor: grab;
}
.hero.is-dragging { cursor: grabbing; }
.hero-track { display: flex; height: 100%; transition: transform .5s ease; will-change: transform; }
.hero-slide { flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; }
.hero-slide > a { display: block; position: relative; width: 100%; height: 100%; color: #fff; }
.hero-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-slide:not(.is-split) > a::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 45%), linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 22%);
}
@media (max-width: 767px) { .hero-img { object-position: var(--pos-m, 50% 50%); } }

/* 첫 장면: 도입 화면이 걷히는 동안 사진이 살짝 당겨짐 */
.is-intro .hero-slide:first-child .hero-img { animation: heroSettle 2.4s var(--ease) 2.1s both; }
.intro-seen .is-intro .hero-slide:first-child .hero-img { animation: none; }
@keyframes heroSettle { from { transform: scale(1.08); } to { transform: none; } }

/* 문구 */
.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 72px; z-index: 2; }
.hero-kicker { font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.hero-title { font-size: clamp(48px, 9vw, 150px); font-weight: 800; line-height: .9; letter-spacing: -0.055em; }
.hero-sub { font-size: clamp(14px, 1.3vw, 17px); font-weight: 400; margin-top: 18px; max-width: 32em; }
.hero-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-copy > :nth-child(1) { transition-delay: .15s; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .25s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .4s; }

/* 반반 장면: 한쪽은 색 면 + 큰 글자, 한쪽은 사진 */
.split-panel { position: absolute; inset: 0; z-index: 1; }
.is-split > a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0) 50%); pointer-events: none; }
@media (min-width: 768px) {
  .is-split > a { display: grid; grid-template-columns: 1fr 1fr; }
  .is-split > a::after { display: none; }
  .is-split .split-panel { position: relative; inset: auto; background: var(--panel); }
}

/* 점 */
.hero-dots { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); padding: 0; transition: background .2s, width .3s var(--ease); }
.hero-dot.is-active { background: #fff; width: 24px; border-radius: 4px; }
.hero-note { position: absolute; right: var(--gutter); bottom: 24px; z-index: 3; font-size: 11px; color: rgba(255,255,255,.8); }

/* ---------- 선언 ---------- */
.manifesto { background: #000; color: #fff; padding: 56px 0 64px; }
.manifesto-ko { font-size: clamp(20px, 2.6vw, 38px); font-weight: 600; line-height: 1.35; letter-spacing: -0.04em; max-width: 30em; }
.manifesto-en { font-size: clamp(20px, 2.6vw, 38px); font-weight: 600; line-height: 1.25; letter-spacing: -0.04em; margin-top: 24px; color: #8c8c8c; max-width: 26em; }
@media (min-width: 768px) { .manifesto { padding: 96px 0 104px; } }

/* ---------- 같은 큐브, 다른 가구 ---------- */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.link-more { font-size: 14px; font-weight: 400; white-space: nowrap; }
.link-more:hover { color: var(--accent); }
.config-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 8px; }
.config-card a { display: block; }
.config-figure { position: relative; aspect-ratio: 1 / 1; background: var(--surface); display: flex; align-items: flex-end; justify-content: center; padding: 16% 10% 12%; transition: background .3s; }
.config-card a:hover .config-figure { background: #ebebeb; }
.config-figure .tag { position: absolute; left: 10px; top: 10px; }
.config-figure svg { max-height: 100%; max-width: 100%; }
.config-name { font-size: 15px; font-weight: 400; margin-top: 12px; }
.config-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (min-width: 900px) { .config-list { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- 장점 ---------- */
.strengths { background: var(--surface); }
.strengths-grid { display: grid; }
.strengths-media { position: relative; }
.strengths-media img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.strengths-media figcaption { position: absolute; left: 16px; bottom: 14px; color: rgba(255,255,255,.85); }
.strengths-body { padding: 56px var(--gutter); display: grid; gap: 12px; align-content: center; }
.strength-list { list-style: none; display: grid; gap: 0; margin-top: 28px; }
.strength-list li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 22px 0; border-top: 1px solid #dcdcdc; }
.strength-list .num { font-size: 13px; font-weight: 700; color: var(--accent); line-height: 1.6; }
.strength-list p { color: var(--ink-2); margin-top: 6px; }
@media (min-width: 900px) {
  .strengths-grid { grid-template-columns: 1fr 1fr; }
  .strengths-media img { aspect-ratio: auto; min-height: 720px; }
  .strengths-body { padding: 96px clamp(40px, 6vw, 112px); }
}

/* ---------- 색상 ---------- */
.color-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.color-tabs::-webkit-scrollbar { display: none; }
.color-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; transition: border-color .2s; }
.color-tabs button i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.color-tabs button:hover { border-color: var(--ink); }
.color-tabs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 500; }
.color-stage { position: relative; }
.color-stage img, .color-empty { width: 100%; aspect-ratio: 16 / 9; max-height: 760px; object-fit: contain; background: var(--surface); }
.color-empty { display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.color-empty .swatch { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line); }
.color-stage figcaption { margin-top: 8px; }
@media (max-width: 599px) { .color-stage img, .color-empty { aspect-ratio: 1 / 1; } }

/* ---------- 공간 제안 ---------- */
.spaces { padding-top: 0; }
.space-list { display: grid; gap: 24px 8px; }
.space-list a { display: block; overflow: hidden; }
.space-list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.space-list a:hover img { transform: scale(1.03); }
.space-list span { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.space-list b { color: var(--ink); font-weight: 600; margin-right: 6px; }
@media (min-width: 768px) { .space-list { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 8px; }
.faq-list details { border-top: 1px solid var(--ink); }
.faq-list details:last-child { border-bottom: 1px solid var(--ink); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 300; font-size: 22px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 2fr; gap: 64px; } }

/* ---------- 마지막 CTA ---------- */
.cta-band { background: var(--accent); color: #fff; padding: 72px 0; }
.cta-band .container { display: grid; gap: 32px; }
.cta-band .display { font-size: clamp(56px, 10vw, 160px); }
.cta-side p { margin-bottom: 20px; font-weight: 400; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.cta-band + .footer { margin-top: 0; }
@media (min-width: 900px) {
  .cta-band { padding: 112px 0; }
  .cta-band .container { grid-template-columns: 1fr auto; align-items: end; }
  .cta-side { max-width: 320px; }
}
