/* 착한기업 v5 — crea-m.com 벤치마크 시안 */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #111114;
  --bg-soft: #17171b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f2ed;
  --muted: rgba(244, 242, 237, 0.68);
  --muted-2: rgba(244, 242, 237, 0.45);
  --accent: #c9864a;
  --accent-hover: #db9a5c;
  --accent-soft: rgba(201, 134, 74, 0.18);
  --font-kr: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font-en: "Outfit", "Pretendard", sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --header-h: 72px;
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-x: hidden;
}

body.menu-open { overflow: 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, ol { list-style: none; }
em { font-style: italic; font-family: var(--font-display); }

.skip {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 12px 20px;
  background: #000;
  color: #fff;
}
.skip:focus { left: 16px; top: 16px; }

.eyebrow {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-link {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.text-link:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #1a120c;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}
.logo img {
  width: 156px;
  height: auto;
}
.gnb ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.gnb a {
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}
.gnb a:hover { color: #fff; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.lang a { color: var(--muted-2); }
.lang a.is-active,
.lang a:hover { color: #fff; }
.btn-menu {
  display: none;
  width: 42px;
  height: 42px;
  place-content: center;
  gap: 7px;
}
.btn-menu span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
}

/* Full menu */
.full-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0c0c0f;
  padding: 24px 28px 48px;
  transform: translateY(-105%);
  transition: transform 0.45s var(--ease);
  overflow: auto;
}
.full-menu.is-open { transform: translateY(0); }
.full-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.full-menu .logo img {
  width: 140px;
}
.btn-close {
  position: relative;
  width: 42px;
  height: 42px;
}
.btn-close::before,
.btn-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: #fff;
}
.btn-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.btn-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.sitemap .depth1 {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 600;
}
.sitemap .depth2 {
  display: grid;
  gap: 10px;
}
.sitemap .depth2 a {
  color: var(--muted);
  font-size: 0.92rem;
}
.sitemap .depth2 a:hover { color: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 28px 72px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s var(--ease), transform 8s linear;
}
.hero-img.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.78) 0%, rgba(8, 8, 10, 0.35) 55%, rgba(8, 8, 10, 0.45) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.35) 0%, rgba(8, 8, 10, 0.15) 40%, rgba(8, 8, 10, 0.78) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: rise 1s var(--ease) both;
}
.hero-brand {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero-title {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.hero-text {
  max-width: 34em;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-pager {
  position: absolute;
  right: 28px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-pager button {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.25s, width 0.25s;
}
.hero-pager button.is-active {
  width: 42px;
  background: var(--accent);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared section rail */
.section-rail {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-rail h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/* Who */
.who {
  padding: 120px 28px 0;
  max-width: 1440px;
  margin: 0 auto;
}
.who-intro {
  max-width: 920px;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.who-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.45;
}
.who-intro p {
  color: var(--muted);
  font-size: 1.05rem;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.capability-grid li {
  min-height: 220px;
  padding: 28px 26px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.capability-grid li:hover { background: var(--bg-soft); }
.cap-num {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-en);
  font-size: 0.82rem;
  color: var(--muted-2);
}
.capability-grid h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.capability-grid p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.who-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.who-stats > div {
  background: var(--bg);
  padding: 28px 24px;
}
.stat-label,
.who-stats span {
  display: block;
  color: var(--muted-2);
  font-size: 0.85rem;
}
.who-stats strong {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 600;
}

/* Works */
.works {
  padding: 120px 28px;
  max-width: 1440px;
  margin: 0 auto;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-item a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.work-large { grid-column: span 2; grid-row: span 2; }
.work-large a { aspect-ratio: auto; height: 100%; min-height: 100%; }
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.work-item a:hover img { transform: scale(1.05); }
.work-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}
.work-meta span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.work-meta h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Process */
.process {
  padding: 100px 28px 120px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(201, 134, 74, 0.12), transparent 55%),
    var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-head {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}
.process-head h2 {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.process-head p { color: var(--muted); }
.process-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto 48px;
}
.process-compare article {
  padding: 36px 32px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.process-compare article.is-accent {
  border-color: rgba(201, 134, 74, 0.45);
  background: linear-gradient(180deg, rgba(201, 134, 74, 0.12), rgba(255, 255, 255, 0.02));
}
.process-compare h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}
.compare-sub {
  margin-bottom: 28px;
  color: var(--muted-2);
  font-size: 0.92rem;
}
.process-compare ol {
  display: grid;
  gap: 16px;
}
.process-compare li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}
.process-compare li span {
  font-family: var(--font-en);
  color: var(--muted-2);
}
.process-foot {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.process-foot p {
  margin-bottom: 28px;
  color: var(--muted);
}

/* Journal */
.journal {
  padding: 120px 28px;
  max-width: 960px;
  margin: 0 auto;
}
.journal-lead {
  margin: -12px 0 40px;
  color: var(--muted);
}
.journal-list {
  border-top: 1px solid var(--line);
}
.journal-list > li {
  border-bottom: 1px solid var(--line);
}
.journal-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "meta icon"
    "title icon";
  gap: 6px 16px;
  padding: 26px 4px;
  text-align: left;
  transition: background 0.25s;
}
.journal-toggle:hover { background: rgba(255, 255, 255, 0.02); }
.journal-meta {
  grid-area: meta;
  font-family: var(--font-en);
  font-size: 0.82rem;
  color: var(--muted-2);
}
.journal-toggle strong {
  grid-area: title;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.journal-icon {
  grid-area: icon;
  align-self: center;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.journal-toggle[aria-expanded="true"] .journal-icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.journal-panel {
  display: none;
  padding: 0 4px 28px;
  color: var(--muted);
}
.journal-panel.is-open { display: block; animation: rise 0.4s var(--ease); }
.journal-panel a {
  display: inline-block;
  margin-top: 14px;
  color: var(--text);
  font-size: 0.92rem;
}
.journal-panel a:hover { color: var(--accent); }

/* Contact CTA */
.contact-cta {
  padding: 120px 28px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(201, 134, 74, 0.16), transparent 60%),
    var(--bg);
}
.contact-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.contact-inner p {
  margin-bottom: 32px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #070708;
  padding: 56px 28px 36px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.ft-logo img {
  width: 150px;
}
.ft-tag {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.footer-mid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-info {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}
.footer-info a:hover { color: #fff; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ft-label {
  margin-bottom: 14px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer-cols ul {
  display: grid;
  gap: 10px;
}
.footer-cols a {
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-cols a:hover { color: #fff; }
.footer-bot {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.copyright {
  color: var(--muted-2);
  font-size: 0.82rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work-large { grid-column: span 2; grid-row: auto; }
  .work-large a { aspect-ratio: 16 / 9; height: auto; }
}

@media (max-width: 900px) {
  .gnb { display: none; }
  .btn-menu { display: grid; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .who-stats { grid-template-columns: 1fr 1fr; }
  .process-compare { grid-template-columns: 1fr; }
  .footer-mid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner,
  .hero,
  .who,
  .works,
  .process,
  .journal,
  .contact-cta,
  .site-footer { padding-left: 18px; padding-right: 18px; }

  .hero { padding-bottom: 88px; min-height: 92vh; }
  .hero-brand { font-size: clamp(2.4rem, 14vw, 3.4rem); }
  .hero-pager {
    right: auto;
    left: 18px;
    bottom: 28px;
    flex-direction: row;
    align-items: center;
  }
  .hero-pager button { width: 22px; }
  .hero-pager button.is-active { width: 34px; }

  .section-rail { flex-direction: column; align-items: flex-start; }
  .capability-grid,
  .works-grid,
  .who-stats,
  .footer-cols { grid-template-columns: 1fr; }
  .work-large { grid-column: auto; }
  .capability-grid li { min-height: 0; }
  .who,
  .works,
  .journal,
  .contact-cta { padding-top: 88px; padding-bottom: 88px; }
  .process { padding: 72px 18px 88px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .sitemap { grid-template-columns: 1fr; }
}
