/* ===== 색상·폰트 토큰 (여기서 브랜드 컬러를 바꾸세요) ===== */
:root {
  --paper: #f5f5f1;
  --surface: #ffffff;
  --sunk: #e9ebe7;
  --charcoal: #23282b;
  --charcoal-2: #3a4044;
  --muted: #6c7276;
  --mint: #2c8a78;       /* 다크 민트 — 강조·그림자 */
  --mint-deep: #17544a;  /* 더 어두운 민트 — 연락처 배경 */
  --mint-soft: #c5e3db;  /* 밝은 민트 — 형광펜 강조 */
  --line: 2px solid var(--charcoal);
  --max: 1320px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --display: 'Archivo Black', 'Pretendard Variable', Pretendard, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--charcoal); font-family: var(--font);
  font-size: 17px; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--mint); color: var(--paper); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 64px, var(--max)); } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(52px, 10vw, 156px); letter-spacing: -0.04em; line-height: .88;
}
.display sup { font-family: var(--font); font-size: .18em; font-weight: 700; letter-spacing: 0; vertical-align: top; margin-left: .2em; color: var(--mint); }
.label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 48px 0 12px; }

/* ===== Nav ===== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 2px solid transparent; }
.nav.scrolled, .nav.open { background: var(--paper); border-color: var(--charcoal); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.nav__logo::after { content: '®'; font-size: .6em; vertical-align: top; color: var(--mint); }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav__links a:not(.nav__cta):hover { color: var(--mint); }
.nav__cta {
  padding: 10px 18px; border: var(--line); border-radius: 999px; background: var(--mint); color: var(--paper);
  box-shadow: 3px 3px 0 var(--charcoal); transition: transform .15s, box-shadow .15s;
}
.nav__cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--charcoal); }
.nav__menu { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: var(--line); border-radius: 50%; }
.nav__menu span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .25s; }
@media (max-width: 767px) {
  .nav__menu { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper);
    border-bottom: var(--line); padding: 8px 16px 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav__links a { padding: 14px 0; font-family: var(--display); font-size: 32px; text-transform: uppercase; border-bottom: 1px solid #d6d8d4; }
  .nav__links .nav__cta { margin-top: 16px; text-align: center; font-size: 20px; }
  .nav.open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open .nav__menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav__menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 28px; border: var(--line); border-radius: 999px;
  font-weight: 700; font-size: 16px; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--mint); }
.btn--dark { background: var(--charcoal); color: var(--paper); }
.btn--line { background: var(--surface); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 64px; }
.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; padding-bottom: 20px; border-bottom: var(--line); margin-bottom: clamp(28px, 4vw, 48px);
}
.hero__meta > span { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero__title { font-weight: 900; font-size: clamp(48px, 10.4vw, 168px); line-height: 1.04; letter-spacing: -0.06em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease) var(--d); }
.hero__title.in .line > span { transform: none; }
.hero__title em {
  font-style: normal; background: var(--mint); color: var(--paper); padding: 0 .12em; margin-left: -.04em;
  display: inline-block; transform: rotate(-2deg);
}
.hero__title u { text-decoration: none; background: linear-gradient(var(--mint), var(--mint)) 0 88% / 100% .12em no-repeat; }
.hero__bottom { display: grid; gap: 28px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .hero__bottom { grid-template-columns: 1fr auto; align-items: end; } }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--line); }
.facts div { padding: 16px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid #c9ccc8; }
.facts dt { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.facts dd { margin-top: 4px; font-size: clamp(15px, 1.6vw, 19px); font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid #c9ccc8; display: flex; justify-content: space-between; gap: 16px; }
  .facts dd { margin: 0; text-align: right; }
}
.sticker {
  position: absolute; right: clamp(16px, 6vw, 96px); top: clamp(200px, 34vh, 340px); width: clamp(120px, 14vw, 180px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--paper); border: var(--line);
  box-shadow: 5px 5px 0 var(--charcoal); transition: transform .3s var(--ease);
}
.sticker:hover { transform: rotate(-12deg) scale(1.05); }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.sticker text { font-family: var(--display); font-size: 16px; fill: var(--paper); }
.sticker b { font-family: var(--display); font-weight: 400; font-size: clamp(16px, 1.8vw, 24px); line-height: 1; text-align: center; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) { .sticker { top: 92px; right: 16px; width: 96px; } .sticker b { font-size: 14px; } .sticker text { font-size: 18px; } .hero__meta { padding-right: 104px; } }

/* ===== Tapes (교차 띠) ===== */
.tapes { position: relative; height: clamp(150px, 18vw, 230px); overflow: hidden; }
.tape { position: absolute; left: -5%; width: 110%; padding: 16px 0; border-block: var(--line); overflow: hidden; }
.tape--dark { top: 14%; background: var(--charcoal); color: var(--paper); transform: rotate(-3deg); z-index: 2; }
.tape--mint { top: 50%; background: var(--mint); color: var(--paper); transform: rotate(2.5deg); }
.tape__track {
  display: flex; gap: 32px; width: max-content; animation: marquee 32s linear infinite;
  font-family: var(--display); font-size: clamp(22px, 3vw, 40px); text-transform: uppercase; white-space: nowrap;
}
.tape__track--rev { animation-direction: reverse; font-family: var(--font); font-weight: 900; letter-spacing: -0.03em; }
.tape--dark .star { color: var(--mint); }
.tape--mint .star { color: var(--charcoal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Section ===== */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--dark { background: var(--charcoal); color: var(--paper); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px, 4vw, 48px); }

/* ===== 회사별 탭 ===== */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 8px; max-width: calc(100% + 32px); }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .tabs { flex-wrap: wrap; margin: 0; padding: 4px 0; } }
.tab {
  flex: none; padding: 8px 16px; border: var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 700; transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.tab:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--mint); }
.tab[aria-selected='true'] { background: var(--charcoal); color: var(--paper); }
.tab small { margin-left: 6px; font-size: 12px; color: var(--mint); font-weight: 800; }
.tab[aria-selected='true'] small { color: var(--mint-soft); }

/* ===== 회사 그룹 ===== */
.group { display: grid; gap: 28px 56px; padding-top: clamp(48px, 6vw, 80px); }
.group + .group { margin-top: clamp(48px, 6vw, 80px); border-top: var(--line); }
.group[hidden] { display: none; }
.filtered .group { margin-top: 0; border-top: 0; }
@media (min-width: 1000px) { .group { grid-template-columns: 300px 1fr; } .group__info { position: sticky; top: 104px; align-self: start; } }
.group__no { display: inline-block; font-family: var(--display); font-size: 14px; padding: 2px 10px; border: var(--line); border-radius: 999px; background: var(--mint-soft); }
.group__name { margin-top: 14px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; letter-spacing: -0.05em; line-height: 1.1; }
.group__meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.group__meta b { color: var(--charcoal); font-weight: 700; }
.group__desc { margin-top: 14px; font-size: 15px; color: var(--charcoal-2); max-width: 520px; }

/* ===== 작업 카드 ===== */
.cards { display: grid; grid-template-columns: 1fr; gap: 48px 28px; }
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards > :nth-child(even) { margin-top: 56px; }
  .cards > :only-child { grid-column: 1 / -1; max-width: 640px; }
}
.card { display: block; width: 100%; text-align: left; }
.card__thumb { position: relative; aspect-ratio: 4 / 3; border: var(--line); overflow: hidden; background: var(--sunk); transition: transform .25s, box-shadow .25s; }
.card:hover .card__thumb { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--mint); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__no {
  position: absolute; left: 0; top: 0; padding: 5px 11px; background: var(--paper);
  border-right: var(--line); border-bottom: var(--line); font-family: var(--display); font-size: 16px;
}
.card__meta { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-top: 16px; }
.card__meta h3 { font-size: clamp(18px, 1.7vw, 22px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; transition: color .2s; }
.card:hover h3 { color: var(--mint); }
.card__year { flex: none; font-family: var(--display); font-size: 14px; color: var(--muted); padding-top: 4px; }
.card__tag {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border: 1.5px solid currentColor; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}

/* ===== Services ===== */
.services { margin-top: clamp(40px, 6vw, 72px); border-top: 2px solid var(--paper); }
.services li { position: relative; display: grid; gap: 8px 32px; padding: 28px 0; border-bottom: 2px solid var(--paper); isolation: isolate; }
@media (min-width: 900px) { .services li { grid-template-columns: 80px 1fr 1fr; align-items: center; padding: 36px 0; } }
.services li::before {
  content: ''; position: absolute; inset: 0 -100vw; background: var(--mint); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease);
}
.services li:hover::before { transform: scaleY(1); }
.services__no { font-family: var(--display); font-size: 18px; color: var(--mint); transition: color .2s; }
.services li:hover .services__no { color: var(--charcoal); }
.services h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 4.4vw, 60px); letter-spacing: -0.03em; line-height: 1; }
.services p { font-size: 16px; opacity: .85; max-width: 440px; }

/* ===== About ===== */
.about { display: grid; gap: 56px; }
@media (min-width: 960px) { .about { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } .about__photo { position: sticky; top: 110px; } }
.about__photo { aspect-ratio: 4 / 5; border: var(--line); box-shadow: 14px 14px 0 var(--mint); overflow: hidden; background: var(--sunk); max-width: 460px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__photo.empty { display: none; }
.about__text { margin-top: 32px; display: grid; gap: 16px; }
.about__text p { font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; line-height: 1.6; }
.about__text strong { background: linear-gradient(var(--mint-soft), var(--mint-soft)) 0 85% / 100% .45em no-repeat; font-weight: 800; }
.rows { border-top: var(--line); }
.row { display: grid; grid-template-columns: 170px 1fr; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid #c9ccc8; }
.row__period { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.row__title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.row__title span { font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 8px; letter-spacing: 0; }
.row__desc { font-size: 15px; color: var(--charcoal-2); margin-top: 2px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.about__split { display: grid; gap: 0 48px; }
@media (min-width: 640px) { .about__split { grid-template-columns: 1.4fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border: var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.chips li:hover { background: var(--mint); color: var(--paper); }
.plain li { font-size: 16px; font-weight: 600; padding: 4px 0; }
.plain li span { color: var(--muted); font-size: 14px; font-weight: 500; margin-right: 12px; font-variant-numeric: tabular-nums; }

/* ===== Contact ===== */
.contact { background: var(--mint-deep); color: var(--paper); padding: clamp(96px, 12vw, 180px) 0; border-top: var(--line); }
.contact__eyebrow { margin-bottom: 24px; font-weight: 700; letter-spacing: .04em; font-size: 15px; color: var(--mint-soft); }
.contact__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 10.5vw, 168px); letter-spacing: -0.045em; line-height: .9; }
.contact__title span { color: transparent; -webkit-text-stroke: 2px var(--paper); }
.contact__mail {
  display: inline-block; margin-top: clamp(40px, 6vw, 64px); padding: 14px 28px; background: var(--paper); color: var(--charcoal);
  border: var(--line); border-radius: 999px; font-size: clamp(18px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em;
  overflow-wrap: anywhere; transition: transform .15s, box-shadow .15s;
}
.contact__mail:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--charcoal); }
.socials { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-block; padding: 8px 18px; border: 2px solid var(--paper); border-radius: 999px; font-weight: 700; transition: .15s; }
.socials a:hover { background: var(--paper); color: var(--mint-deep); }

/* ===== Footer ===== */
.footer { background: var(--charcoal); color: var(--paper); font-size: 14px; font-weight: 600; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; }
.footer a:hover { color: var(--mint-soft); }

/* ===== 작업 상세 보기 ===== */
.viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--charcoal); }
.viewer[open] { display: flex; flex-direction: column; animation: pop .4s var(--ease); }
.viewer::backdrop { background: rgba(35, 40, 43, .7); }
@keyframes pop { from { opacity: 0; transform: translateY(32px); } }
.viewer__bar {
  flex: none; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 16px; background: var(--charcoal); color: var(--paper);
}
@media (min-width: 768px) { .viewer__bar { padding: 0 32px; } }
.viewer__crumb { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #aab1b4; }
.viewer__crumb b { color: var(--paper); }
.viewer__nav { display: flex; gap: 8px; flex: none; }
.viewer__nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--paper); font-weight: 800; font-size: 16px;
  transition: background .15s, color .15s, opacity .15s;
}
.viewer__nav button:hover { background: var(--paper); color: var(--charcoal); }
.viewer__nav button:disabled { opacity: .3; pointer-events: none; }
.viewer__nav .viewer__close { background: var(--mint); border-color: var(--mint); color: var(--paper); }
.viewer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.viewer__body { width: min(100% - 32px, 1120px); margin: 0 auto; padding: clamp(32px, 6vw, 72px) 0 96px; }
.viewer__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.viewer__eyebrow .card__tag { margin: 0; }
.viewer__title { margin-top: 14px; font-weight: 900; font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.05em; line-height: 1.1; }
.viewer__desc { margin-top: 20px; max-width: 760px; font-size: clamp(16px, 1.5vw, 18px); color: var(--charcoal-2); padding-left: 16px; border-left: 4px solid var(--mint); }
.viewer__imgs { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 20px; }
.viewer__imgs img { width: 100%; height: auto; margin: 0 auto; border: var(--line); background: var(--sunk); }
.viewer__imgs img.narrow { max-width: 640px; }
.viewer__next {
  margin-top: 72px; padding: 24px 28px; border: var(--line); background: var(--surface);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left;
  transition: transform .15s, box-shadow .15s;
}
.viewer__next:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--mint); }
.viewer__next span { font-size: 13px; font-weight: 700; color: var(--muted); }
.viewer__next b { display: block; margin-top: 2px; font-size: clamp(18px, 2vw, 24px); font-weight: 900; letter-spacing: -0.03em; }
.viewer__next i { font-style: normal; font-family: var(--display); font-size: 28px; color: var(--mint); }

/* ===== 커스텀 커서 ===== */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor span {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); mix-blend-mode: multiply;
  display: grid; place-items: center; font-family: var(--display); font-size: 0; color: var(--paper);
  transition: width .25s var(--ease), height .25s var(--ease), left .25s var(--ease), top .25s var(--ease), font-size .2s;
}
.cursor.big span { left: -44px; top: -44px; width: 88px; height: 88px; font-size: 15px; mix-blend-mode: normal; border: var(--line); }
.viewer[open] ~ .cursor, body.lock .cursor { display: none; }

/* ===== 등장 애니메이션 ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__title .line > span { opacity: 1; transform: none; transition: none; }
  .tape__track, .sticker svg, .dot, .viewer[open] { animation: none; }
}
