/* ===== MODULAR STEEL / STORAGE FRAME — 철제선반 사이트 ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:root {
  --off-white: #f4f2ee;
  --panel: #ffffff;
  --graphite: #23262a;
  --ink: #23262a;
  --ink-soft: #5b6167;
  --metal: #9aa0a6;
  --metal-light: #c7ccd1;
  --line: rgba(35,38,42,.14);
  --burgundy: #7d2e35;
  --burgundy-soft: rgba(125,46,53,.10);
  --mono: 'JetBrains Mono', monospace;
  --wrap: 1180px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--burgundy); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.section-label::before { content: ''; width: 22px; height: 2px; background: var(--burgundy); }
.section-title { font-size: clamp(22px, 3.2vw, 34px); line-height: 1.3; margin-bottom: 14px; }
.section-lead { color: var(--ink-soft); font-size: 16px; line-height: 1.7; max-width: 640px; }
.section-emphasis { font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; color: var(--ink); margin-bottom: 10px; }

.icon { width: 22px; height: 22px; flex: none; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,242,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand-mark { display: inline-flex; flex-direction: column; gap: 3px; width: 20px; }
.brand-mark i { display: block; height: 2px; background: var(--graphite); }
.brand-mark i:nth-child(2) { background: var(--burgundy); }
.brand-name { color: var(--graphite); }
.btn-call {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--graphite); color: #fff; border-radius: 2px; font-weight: 600; font-size: 14px;
  border-left: 3px solid var(--burgundy);
}
.btn-call-header { padding: 9px 18px; font-size: 13px; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,38,42,.15) 0%, rgba(35,38,42,.55) 75%, rgba(35,38,42,.82) 100%);
}
.hero-grid-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 64px 64px; mix-blend-mode: screen; }
.hero-inner { position: relative; z-index: 2; padding: 64px 24px 56px; width: 100%; color: #fff; }
.hero-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--metal-light); margin-bottom: 18px; display: block; }
.hero h1 { font-size: clamp(48px, 9vw, 108px); line-height: .95; letter-spacing: -.03em; margin-bottom: 22px; }
.hero-copy { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.5; font-weight: 600; margin-bottom: 10px; white-space: pre-line; max-width: 620px; }
.hero-sub { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-call { background: var(--burgundy); border-left: none; padding: 15px 30px; font-size: 15px; }

/* ===== Photo intro (섹션3) ===== */
.photo-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.photo-intro-media { position: relative; }
.photo-intro-media img { border-radius: 2px; }
.photo-intro-media::before {
  content: ''; position: absolute; top: -14px; left: -14px; right: 14px; bottom: 14px;
  border: 1px solid var(--line); z-index: -1;
}
.photo-intro-tag {
  position: absolute; bottom: 16px; left: 16px; background: var(--graphite); color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; padding: 6px 12px; text-transform: uppercase;
}
.photo-intro-text h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.photo-intro-text p { color: var(--ink-soft); line-height: 1.8; font-size: 16px; }

/* ===== 몇 단이 필요하세요? — stack variant (섹션4) ===== */
.tier-nav-stack { display: flex; flex-direction: column-reverse; gap: 10px; max-width: 640px; margin: 0 auto; }
.tier-nav-stack .tier-nav-item {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--metal);
  padding: 18px 22px; transition: border-color .2s, transform .2s;
}
.tier-nav-stack .tier-nav-item:hover { border-left-color: var(--burgundy); transform: translateX(4px); }
.tier-nav-stack .tier-nav-num { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--metal); }
.tier-nav-stack .tier-nav-bars { display: flex; flex-direction: column-reverse; gap: 3px; width: 100%; height: 40px; justify-content: flex-end; }
.tier-nav-stack .tier-nav-bars i { display: block; height: 4px; background: var(--line); border-radius: 1px; }
.tier-nav-stack .tier-nav-item:hover .tier-nav-bars i { background: var(--burgundy-soft); }
.tier-nav-stack .tier-nav-label { font-size: 18px; font-weight: 700; justify-self: end; }

/* ===== NSEO 재노출 — rows variant (섹션8, 텍스트/프레임형) ===== */
.tier-nav-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tier-nav-rows .tier-nav-item {
  display: flex; align-items: center; gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.tier-nav-rows .tier-nav-num { font-family: var(--mono); font-size: 14px; color: var(--burgundy); width: 28px; }
.tier-nav-rows .tier-nav-bars { display: none; }
.tier-nav-rows .tier-nav-label { font-size: 20px; font-weight: 700; flex: 1; }
.tier-nav-rows .tier-nav-item::after { content: '→'; color: var(--metal); font-size: 18px; }

/* ===== Editorial gallery (섹션5, 큰사진/작은사진 혼합) ===== */
.editorial-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.editorial-item { position: relative; overflow: hidden; border-radius: 2px; background: var(--metal-light); }
.editorial-item img { width: 100%; height: 100%; object-fit: cover; }
.editorial-item img.editorial-contain { object-fit: contain; }
.editorial-item.i-big { grid-column: span 2; grid-row: span 2; aspect-ratio: 3/5; }
.editorial-item.i-tall { grid-column: span 4; grid-row: span 2; aspect-ratio: 6/5; }
.editorial-item.i-wide { grid-column: span 3; aspect-ratio: 4/3; }
.editorial-item.i-small { grid-column: span 3; aspect-ratio: 4/3; }
.editorial-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(35,38,42,.78), transparent);
  color: #fff; font-size: 13px; font-weight: 600;
}

/* 몇 단이 필요하세요 - 에디토리얼 그리드 안에 들어가는 카드형 내비게이션 */
.editorial-item.i-nav {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 22px 24px;
}
.editorial-nav-inner { width: 100%; }
.editorial-nav-inner .section-label { margin-bottom: 10px; }
.editorial-nav-title { font-size: clamp(16px, 1.8vw, 20px); margin-bottom: 4px; }
.editorial-nav-hint { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }

.tier-nav-compact { display: flex; flex-direction: column-reverse; gap: 6px; }
.tier-nav-compact .tier-nav-item {
  display: grid; grid-template-columns: 26px 1fr auto 16px; align-items: center; gap: 10px;
  background: var(--off-white); border-left: 3px solid var(--metal); cursor: pointer;
  padding: 7px 10px; transition: border-color .2s, background-color .2s;
}
.tier-nav-compact .tier-nav-item:hover { border-left-color: var(--burgundy); background: var(--burgundy-soft); }
.tier-nav-compact .tier-nav-num { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--metal); }
.tier-nav-compact .tier-nav-bars { display: flex; flex-direction: column-reverse; gap: 2px; width: 100%; height: 16px; justify-content: flex-end; }
.tier-nav-compact .tier-nav-bars i { display: block; height: 2px; background: var(--line); border-radius: 1px; }
.tier-nav-compact .tier-nav-item:hover .tier-nav-bars i { background: var(--burgundy-soft); }
.tier-nav-compact .tier-nav-label { font-size: 11px; font-weight: 700; justify-self: end; }
.tier-nav-compact .tier-nav-item::after { content: '→'; color: var(--metal); font-size: 13px; transition: color .2s; }
.tier-nav-compact .tier-nav-item:hover::after { color: var(--burgundy); }

/* ===== 선택 포인트 그리드 ===== */
.choose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.choose-item { background: var(--panel); padding: 30px 26px; }
.choose-item .icon { color: var(--burgundy); margin-bottom: 16px; width: 26px; height: 26px; }
.choose-item h3 { font-size: 17px; margin-bottom: 8px; }
.choose-item p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--line); max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: inherit; margin: 0; }
.faq-plus { width: 18px; height: 18px; position: relative; flex: none; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; background: var(--graphite); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-plus::before { width: 14px; height: 2px; }
.faq-plus::after { width: 2px; height: 14px; transition: transform .2s; }
.faq-item[open] .faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { padding-top: 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; max-width: 660px; }

/* ===== Final CTA banner ===== */
.final-cta { background: var(--graphite); color: #fff; text-align: center; padding: 76px 24px; position: relative; overflow: hidden; }
.final-cta::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; }
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(24px, 3.6vw, 36px); margin-bottom: 26px; line-height: 1.4; }
.final-cta .btn-call { background: var(--burgundy); padding: 16px 36px; font-size: 16px; display: inline-flex; }

/* ===== Footer ===== */
.site-footer { background: #1a1c1f; color: #cfd3d7; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col h4 { color: #fff; font-size: 15px; margin: 12px 0 16px; }
.footer-col p { font-size: 13px; color: #9299a1; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: #cfd3d7; }
.footer-biz { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #9299a1; }
.footer-bottom { padding: 20px 24px; font-size: 12px; color: #6b7178; }

.float-call {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: var(--burgundy); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

/* ===== NSEO 세부페이지 ===== */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-bottom: 18px; letter-spacing: .04em; }
.breadcrumb a { color: var(--ink-soft); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 18px; }
.page-lead { font-size: 17px; line-height: 1.8; color: var(--ink-soft); max-width: 680px; }
.page-updated { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 14px; letter-spacing: .02em; }

.detail-photo-full { margin: 40px 0; }
.detail-photo-full img { width: 100%; border-radius: 2px; }
.detail-photo-full figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; font-family: var(--mono); letter-spacing: .02em; }

.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 22px; margin: 32px 0 8px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-box { position: relative; }
.ba-box img { border-radius: 2px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.ba-tag { position: absolute; top: 8px; left: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 4px 8px; color: #fff; background: var(--graphite); }
.ba-tag.after { background: var(--burgundy); }
.ba-label { font-size: 13px; color: var(--ink-soft); margin-top: 10px; font-weight: 600; }

.general-photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0; }
.general-photo-row figure img { aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; width: 100%; }
.general-photo-row figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

.consider-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.consider-list li { display: flex; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; font-size: 15px; line-height: 1.6; }
.consider-list li::before { content: ''; width: 8px; height: 8px; background: var(--burgundy); margin-top: 7px; flex: none; }

.tip-box { background: var(--burgundy-soft); border-left: 3px solid var(--burgundy); padding: 22px 26px; margin: 32px 0; font-size: 15px; line-height: 1.75; }
.tip-box strong { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 8px; }

/* 진행 절차 표 */
.process-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; }
.process-table th, .process-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.process-table th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; }
.process-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; width: 30%; }
.process-table td:last-child { color: var(--ink-soft); }

/* 관련서비스 */
.related-grid-photo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: block; position: relative; overflow: hidden; border-radius: 2px; }
.related-card-img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.related-card-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(0deg, rgba(35,38,42,.82), transparent); }

.related-grid-text { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.related-text-card { display: flex; align-items: center; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.related-text-num { font-family: var(--mono); color: var(--metal); font-size: 13px; }
.related-text-title { flex: 1; font-weight: 700; font-size: 16px; }
.related-text-card .icon { color: var(--metal); width: 18px; height: 18px; }
.related-text-card.is-current { background: var(--burgundy-soft); cursor: default; }
.related-text-card.is-current .related-text-num,
.related-text-card.is-current .related-text-title { color: var(--burgundy); font-weight: 800; }
.related-text-current-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--burgundy); }

.group-more { border-top: none; }
.group-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 4px; font-family: var(--mono); font-size: 13px; color: var(--metal); font-weight: 700; }
.group-more > summary::-webkit-details-marker { display: none; }
.group-more[open] > summary .faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.group-more .related-grid-text { border-top: 1px solid var(--line); }

/* ===== 모바일 ===== */
@media (max-width: 900px) {
  .photo-intro { grid-template-columns: 1fr; gap: 28px; }
  .choose-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .editorial-grid { grid-template-columns: repeat(4, 1fr); }
  .editorial-item.i-big { grid-column: span 4; aspect-ratio: 16/10; }
  .editorial-item.i-tall { grid-column: span 2; aspect-ratio: 3/4; }
  .editorial-item.i-wide, .editorial-item.i-small { grid-column: span 2; }
  .related-grid-photo { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .general-photo-row { grid-template-columns: 1fr 1fr; }
}

.lightbox-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,21,23,.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 100%; max-height: 90vh; width: auto; height: auto; border-radius: 2px; cursor: zoom-out; }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { min-height: 88vh; }
  .hero-inner { padding: 40px 18px 40px; }
  .choose-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tier-nav-stack .tier-nav-item { grid-template-columns: 36px 1fr; grid-template-areas: "num label" "bars bars"; row-gap: 10px; }
  .tier-nav-stack .tier-nav-num { grid-area: num; }
  .tier-nav-stack .tier-nav-label { grid-area: label; justify-self: start; }
  .tier-nav-stack .tier-nav-bars { grid-area: bars; height: 24px; }
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-item.i-big, .editorial-item.i-tall, .editorial-item.i-wide, .editorial-item.i-small { grid-column: span 2; aspect-ratio: 4/3; }
  .general-photo-row { grid-template-columns: 1fr; }
  .related-grid-photo { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .process-table td:first-child { white-space: normal; width: auto; }
  .process-table th, .process-table td { padding: 12px 10px; font-size: 14px; }
}

/* i-nav 카드는 사진이 아니라 텍스트/리스트 콘텐츠라 4:3 비율을 강제하면
   모바일 폭에서 내용이 눌려 찌그러져 보임 → 높이를 콘텐츠에 맞게 자동으로 둠 */
.editorial-item.i-nav { aspect-ratio: auto; overflow: visible; }
