/* FLUXYS — 방문자용 화면 스타일 */
:root {
  --bg: #F2F3F1;
  --ink: #121413;
  --sub: #5A5F5C;
  --mute: #3E4340;
  --line: #D5D8D5;
  --ph: #D9DCD9;
  --accent: #D8843A;
  --dark-sub: #A9AEAA;
  --dark-line: #343836;
  --field: #FBFBFA;
  --field-line: #7C827E;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: 'Archivo', 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--bg); }

.page { background: var(--bg); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 5.5vw, 80px); }
main { display: block; padding-bottom: clamp(88px, 11vw, 160px); }
.section { padding-top: clamp(88px, 11vw, 160px); }
.sub { color: var(--sub); }

/* 머리말 */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 26px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0 36px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; border-bottom: 1px solid transparent; }
.nav a:hover { text-decoration: none; border-bottom-color: var(--field-line); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* 글자 */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; color: var(--sub); }
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--accent); }
.h-display { margin-top: 28px; font-size: clamp(32px, 5.6vw, 80px); font-weight: 500; line-height: 1.18; letter-spacing: -0.025em; }
.h-page { font-size: clamp(36px, 5vw, 72px); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
.h-statement { margin-top: 32px; max-width: 1080px; font-size: clamp(28px, 3.9vw, 56px); font-weight: 500; line-height: 1.3; letter-spacing: -0.025em; }
.h-section { font-size: clamp(28px, 3.4vw, 48px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }

/* 버튼 · 링크 */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--bg); font: inherit; font-size: 15px; font-weight: 500; border: 0; border-radius: 0; cursor: pointer; }
.btn:hover { text-decoration: none; opacity: 0.86; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border: 1px solid var(--ink); min-height: 44px; padding: 0 20px; }
.btn svg, .back svg { flex: none; }
.link-line { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--ink); }
.link-line:hover { text-decoration: none; opacity: 0.7; }

/* 홈 첫 화면 */
.hero { padding-top: clamp(56px, 7.2vw, 104px); }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: 56px; }
.hero__row p { max-width: 600px; color: var(--sub); }
.hero__figure { margin-top: 72px; }
.hero__figure img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--ph); }
.caption { margin-top: 12px; font-size: 14px; color: var(--sub); }

/* 구역 머리 */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section-head__title { display: flex; flex-direction: column; gap: 16px; }
.page-head { padding-top: clamp(56px, 6.7vw, 96px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.page-head p { max-width: 440px; margin-bottom: 10px; color: var(--sub); }

/* 프로젝트 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 64px 32px; margin-top: 48px; }
.cards--featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 56px 32px; margin-top: 56px; }
.card { display: block; }
.card:hover { text-decoration: none; }
.card__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ph); transition: opacity 0.2s; }
.cards--featured .card__img { aspect-ratio: 4 / 5; }
.card:hover .card__img { opacity: 0.88; }
.card__title { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.card__no { flex: none; font-size: 14px; color: var(--sub); }
.card__name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.card__sub { display: block; margin-top: 2px; padding-left: 34px; font-size: 14px; color: var(--sub); }
.empty { margin-top: 48px; padding: 48px 0; border-top: 1px solid var(--line); color: var(--sub); }

/* 분류 고르기 */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 56px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 500; border: 1px solid #B4B9B5; }
.chips a:hover { text-decoration: none; border-color: var(--ink); }
.chips a[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.count { font-size: 14px; color: var(--sub); }

/* 좌우 나눔 구역 */
.split { display: flex; flex-wrap: wrap; gap: 48px 32px; }
.split__side { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.split__side p { max-width: 380px; margin-top: 8px; color: var(--sub); }
.split__main { flex: 999 1 560px; min-width: 0; }

/* 줄 목록 */
.rows { border-top: 1px solid var(--ink); }
.rows > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows__key { flex: 0 0 56px; font-size: 14px; color: var(--sub); }
.rows__main { flex: 1 1 280px; }
.rows__end { font-size: 14px; color: var(--sub); }
.rows__end--strong { color: var(--ink); font-weight: 600; }
.rows--services > li { padding: 26px 0; }
.rows--services .rows__key { flex-basis: 40px; }
.rows--services .rows__main { flex-basis: 260px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }

/* 지향점 */
.statements { border-top: 1px solid var(--ink); }
.statement { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.statement h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; }
.statement__lead { max-width: 760px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; letter-spacing: -0.01em; }
.statement__body { max-width: 760px; color: var(--sub); }
.banner { display: block; width: 100%; margin-top: 72px; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; background: var(--ph); }

/* 사람들 */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 56px 32px; }
.person img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; background: var(--ph); }
.person h3 { margin-top: 20px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.person h3 span { font-size: 15px; font-weight: 400; color: var(--sub); }
.person__role { margin-top: 2px; font-size: 14px; color: var(--sub); }
.person__career { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--mute); }

/* 전체 작업 */
.works { columns: 3 300px; column-gap: 32px; margin-top: 56px; }
.works__year { break-inside: avoid; padding-bottom: 36px; }
.works__year h3 { margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 15px; font-weight: 600; }
.works__year ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--mute); }

/* 프로젝트 상세 */
.detail { padding-top: clamp(40px, 5.5vw, 80px); }
.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--sub); }
.detail .eyebrow { margin-top: 32px; text-transform: uppercase; }
.detail h1 { margin-top: 20px; font-size: clamp(32px, 5vw, 72px); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
.detail__sub { margin-top: 16px; font-size: 18px; color: var(--sub); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.badges li { padding: 6px 14px; border: 1px solid var(--ink); font-size: 14px; font-weight: 500; }
.meta { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 32px; font-size: 15px; }
.meta > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 0 20px; border-top: 1px solid var(--ink); }
.meta dt { font-size: 13px; color: var(--sub); }
.meta dd { font-weight: 500; }
.scope { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.scope__label { flex: 0 0 160px; font-size: 13px; color: var(--sub); padding-top: 2px; }
.scope ol { flex: 1 1 320px; padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 4px; }
.detail__body { margin-top: 56px; max-width: 760px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.7; }
.gallery { margin-top: 72px; columns: 2 420px; column-gap: 32px; }
.gallery--single { columns: 1; max-width: 960px; }
.gallery img { display: block; width: 100%; height: auto; margin-bottom: 32px; break-inside: avoid; background: var(--ph); }
.pager { margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.pager a { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 8px 0; }
.pager a:last-child { text-align: right; margin-left: auto; }
.pager a:hover { text-decoration: none; opacity: 0.7; }
.pager span { font-size: 13px; color: var(--sub); }
.pager strong { font-size: clamp(18px, 2vw, 26px); font-weight: 500; letter-spacing: -0.01em; }

/* 문의 */
.contact { padding-top: clamp(56px, 6.7vw, 96px); display: flex; flex-wrap: wrap; gap: 56px 96px; }
.contact__side { flex: 1 1 340px; }
.contact__side > p { margin-top: 24px; max-width: 420px; color: var(--sub); }
.contact__main { flex: 999 1 520px; min-width: 0; }
.info { margin-top: 56px; border-top: 1px solid var(--ink); font-size: 15px; }
.info > div { display: flex; align-items: center; gap: 24px; min-height: 56px; border-bottom: 1px solid var(--line); }
.info dt { flex: 0 0 88px; color: var(--sub); }
.info a { display: inline-flex; align-items: center; min-height: 44px; }
.form { display: flex; flex-direction: column; gap: 28px; }
.form__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field .req { color: #A5521A; }
.field input, .field select, .field textarea { width: 100%; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid var(--field-line); border-radius: 0; }
.field input, .field select { height: 52px; }
.field select { padding: 0 12px; }
.field textarea { min-height: 160px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.field small { font-size: 13px; color: var(--sub); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border: 1px solid var(--ink); font-size: 15px; }
.notice--error { border-color: #A5521A; color: #7A3A0E; background: #FBF1E8; }
.done { border-top: 1px solid var(--ink); padding-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.done h2 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.done p { max-width: 480px; color: var(--sub); }

/* 꼬리말 */
.site-footer { background: var(--ink); color: var(--bg); }
.cta { padding: clamp(72px, 8vw, 112px) 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; border-bottom: 1px solid var(--dark-line); }
.cta h2 { max-width: 760px; font-size: clamp(28px, 3.4vw, 48px); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.footer__main { padding: 56px 0 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; font-size: 15px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__brand img { display: block; height: 60px; width: auto; }
.footer__brand span, .footer__contact { color: var(--dark-sub); }
.footer__contact, .footer__nav { display: flex; flex-direction: column; }
.footer__contact a, .footer__contact span, .footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__bottom { border-top: 1px solid var(--dark-line); padding: 24px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 13px; color: var(--dark-sub); }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 24px; }

/* 관리자로 로그인했을 때 화면 위에 보이는 띠 */
.adminbar { background: #1F2A24; color: #F2F3F1; font-size: 14px; }
.adminbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-height: 48px; }
.adminbar strong { font-weight: 600; margin-right: auto; }
.adminbar a, .adminbar button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.adminbar form { display: inline-flex; margin: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 0 24px; }
  .card__sub { padding-left: 0; }
  .pager a:last-child { text-align: left; margin-left: 0; }
  .info > div { align-items: flex-start; flex-direction: column; gap: 0; padding: 12px 0; }
  .info dt { flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) { .card__img { transition: none; } }
