/* 착한기업 v2 — diam.kr 벤치마크 시안 */
:root {
  --bg: #000;
  --bg-elevated: #1a1a1a;
  --bg-card: #2a2a2a;
  --text: #fff;
  --text-muted: #999;
  --accent: #e8453c;
  --accent-hover: #ff474a;
  --line: rgba(255, 255, 255, 0.18);
  --font-kr: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font-en: "Montserrat", "Pretendard", sans-serif;
  --header-h: 88px;
  --max: 1540px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
em { font-style: normal; color: #fff; font-weight: 700; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--accent);
}
.skip:focus { left: 16px; top: 16px; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
.logo img { width: 220px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 18px; }

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.25s, transform 0.25s;
}
.btn-contact:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-menu {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
}
.btn-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s;
}

/* Full menu */
.full-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s, visibility 0.35s;
}
.full-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.full-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.btn-close {
  position: relative;
  width: 44px;
  height: 44px;
}
.btn-close::before,
.btn-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #fff;
}
.btn-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.btn-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.full-menu-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 40px 60px;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.sitemap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}
.sitemap .depth1 {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.sitemap .depth2 li + li { margin-top: 12px; }
.sitemap .depth2 a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.sitemap .depth2 a:hover { color: var(--accent-hover); }

/* Sections */
.section { position: relative; color: #fff; }
.sec-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}
.sec-title {
  font-family: var(--font-en);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.sec-text {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
}
.sec-top.center { text-align: center; }
.sec-more,
.sec-more-wrap .sec-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 126px;
  height: 52px;
  margin-top: 36px;
  padding: 0 28px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.sec-more::after { content: "›"; font-size: 1.2em; line-height: 1; }
.sec-more:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}
.sec-more-wrap { text-align: center; margin-top: 10px; }

/* Hero */
.hero { height: 100vh; min-height: 640px; }
.hero-swiper,
.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}
.hero-swiper .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  background: #111 center / cover no-repeat;
  background-image: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.25) 100%), var(--hero-image);
  transform: scale(1.08);
  transition: none;
}
.hero-swiper .swiper-slide-active {
  transform: scale(1);
  transition: transform 4.5s ease;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  padding-top: 40px;
}
.hero-brand {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(18px);
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(18px);
}
.hero-text {
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(18px);
}
.swiper-slide-active .hero-brand,
.swiper-slide-active .hero-title,
.swiper-slide-active .hero-text {
  animation: rise 0.9s var(--ease) forwards;
}
.swiper-slide-active .hero-title { animation-delay: 0.12s; }
.swiper-slide-active .hero-text { animation-delay: 0.24s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-controls {
  position: absolute;
  left: 40px;
  bottom: 48px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  gap: 28px;
}
.hero-pagination {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.15rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.hero-pagination .swiper-pagination-current { font-size: 1.35rem; }
.hero-nav { display: flex; align-items: center; gap: 14px; }
.hero-prev,
.hero-next,
.hero-pause {
  width: 28px;
  height: 28px;
  position: relative;
  opacity: 0.9;
}
.hero-prev::before,
.hero-next::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}
.hero-prev::before { transform: rotate(135deg); left: 10px; }
.hero-next::before { transform: rotate(-45deg); left: 6px; }
.hero-pause::before,
.hero-pause::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 3px;
  height: 14px;
  background: #fff;
  border-radius: 1px;
}
.hero-pause::before { left: 9px; }
.hero-pause::after { right: 9px; }
.hero-pause[data-playing="false"]::before,
.hero-pause[data-playing="false"]::after {
  width: 0;
  height: 0;
  top: 8px;
  background: transparent;
  border-style: solid;
}
.hero-pause[data-playing="false"]::before {
  left: 10px;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}
.hero-pause[data-playing="false"]::after { display: none; }

/* Business */
.business {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  overflow: hidden;
}
.business .sec-wrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.business .sec-top { position: relative; z-index: 2; }
.biz-watermark {
  position: absolute;
  left: 4%;
  bottom: 8%;
  font-family: var(--font-en);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}
.business-swiper {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding-bottom: 8px;
}
.biz-card {
  height: 360px;
  padding: 36px 32px;
  border-radius: 28px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.35s, height 0.35s, transform 0.35s;
  position: relative;
}
.biz-card::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.biz-card h3 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}
.biz-card p,
.biz-card ul {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.35s, margin 0.3s;
}
.biz-card ul { margin-top: 14px; }
.biz-card li {
  position: relative;
  padding-left: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.biz-card li + li { margin-top: 6px; }
.biz-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}
.biz-card.swiper-slide-active,
.biz-card:hover {
  height: 460px;
  background: var(--accent);
}
.biz-card.swiper-slide-active::before,
.biz-card:hover::before {
  width: 84px;
  height: 84px;
  background: rgba(255, 255, 255, 0.18);
}
.biz-card.swiper-slide-active h3,
.biz-card:hover h3 { margin-bottom: 12px; padding-top: 100px; }
.biz-card.swiper-slide-active p,
.biz-card:hover p,
.biz-card.swiper-slide-active ul,
.biz-card:hover ul {
  opacity: 1;
  max-height: 220px;
}
.business-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.business-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #555;
  opacity: 1;
}
.business-pagination .swiper-pagination-bullet-active {
  background: var(--accent-hover);
}

/* Portfolio */
.portfolio {
  padding: 100px 0 80px;
}
.project-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.project-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  background: #222;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.78) 100%);
}
.project-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px;
}
.project-info .client {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.project-info strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.35);
}
.project-card:hover img { transform: scale(1.06); }
.project-card.is-active {
  box-shadow: 0 0 0 2px var(--accent);
}

/* News */
.news {
  padding: 40px 0 100px;
}
.news-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.news-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
}
.news-head h2 span {
  display: block;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent-hover);
  margin-bottom: 6px;
}
.text-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.text-link:hover { color: #fff; }
.news-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.news-list a {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  transition: color 0.2s;
}
.news-list time {
  flex: 0 0 110px;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-size: 0.9rem;
}
.news-list strong { font-size: 1.05rem; font-weight: 600; }
.news-list a:hover { color: var(--accent-hover); }
.share-banner {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.share-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.share-banner span {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 1.15rem;
  font-weight: 700;
}

/* Contact / Footer */
.contact {
  padding: 100px 0 48px;
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-head { text-align: center; margin-bottom: 64px; }
.type-text {
  min-height: 1.6em;
  font-size: 1.25rem;
  color: var(--text-muted);
}
.type-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.contact-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.ft-logo img { width: 240px; margin-bottom: 28px; }
.addr {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-line,
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s;
}
.btn-line { border: 1px solid #fff; }
.btn-line:hover { border-color: var(--accent-hover); color: var(--accent-hover); }
.btn-fill { background: var(--accent); }
.btn-fill:hover { background: var(--accent-hover); }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 32px;
}
.foot-nav a {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  position: relative;
}
.foot-nav a:hover { color: var(--accent-hover); }
.family p {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.family ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 24px;
}
.family a,
.foot-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.family a:hover,
.foot-links a:hover { color: #fff; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.copyright {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #666;
  font-size: 0.85rem;
  font-family: var(--font-en);
}

.btn-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.btn-top.is-show { opacity: 1; visibility: visible; }
.btn-top::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 18px;
  width: 12px;
  height: 12px;
  border: solid #fff;
  border-width: 2px 2px 0 0;
  transform: rotate(-45deg);
}

body.menu-open { overflow: hidden; }

/* Responsive */
@media (max-width: 1200px) {
  .business .sec-wrap { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .project-rail { grid-template-columns: repeat(2, 1fr); }
  .sitemap { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

@media (max-width: 992px) {
  :root { --header-h: 72px; }
  .header-inner,
  .full-menu-top,
  .sec-wrap,
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .hero-controls { left: 20px; bottom: 28px; }
  .logo img { width: 170px; }
  .btn-contact { min-width: 0; padding: 0 18px; height: 40px; font-size: 0.75rem; }
  .business {
    min-height: auto;
    padding: 80px 0;
  }
  .business .sec-wrap {
    grid-template-columns: 1fr;
  }
  .biz-card,
  .biz-card.swiper-slide-active,
  .biz-card:hover {
    height: auto;
    min-height: 280px;
  }
  .biz-card h3,
  .biz-card.swiper-slide-active h3,
  .biz-card:hover h3 {
    padding-top: 90px;
    margin-bottom: 12px;
  }
  .biz-card p,
  .biz-card ul,
  .biz-card.swiper-slide-active p,
  .biz-card:hover p,
  .biz-card.swiper-slide-active ul,
  .biz-card:hover ul {
    opacity: 1;
    max-height: none;
  }
  .news-grid,
  .contact-body { grid-template-columns: 1fr; gap: 40px; }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: 560px; height: 100svh; }
  .project-rail { grid-template-columns: 1fr; }
  .project-card { aspect-ratio: 16 / 10; }
  .news-list a { flex-direction: column; gap: 8px; }
  .news-list time { flex: none; }
  .sitemap { grid-template-columns: 1fr; gap: 28px; }
  .meta { flex-direction: column; gap: 6px; }
  .contact { padding: 72px 0 40px; }
  .contact-head { margin-bottom: 40px; }
}
