/* FLUXYS — 방문자용 화면 스타일 */
:root {
  --bg: #FFFFFF;
  --ink: #121413;
  --sub: #5A5F5C;
  --mute: #3E4340;
  --line: #DCDFDC;
  --ph: #E4E6E4;
  --accent: #D8843A;
  --dark-sub: #A9AEAA;
  --dark-line: #343836;
  --field: #FFFFFF;
  --field-line: #7C827E;
}
* { box-sizing: border-box; }
/* 세로 스크롤 막대를 항상 표시 — 스크롤이 없는 홈과 있는 안쪽 화면에서 메뉴 · 검색창이 옆으로 밀리지 않게 (막대가 화면 위에 겹쳐 뜨는 맥 · 휴대폰은 영향 없음) */
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; }
body {
  margin: 0;
  background: var(--bg);
  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); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { background: var(--bg); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
/* 내용이 적으면 그 아래는 흰 여백으로 남고, 꼬리말은 늘어나지 않고 화면 맨 아래에 붙음 */
.page > .wrap { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.page > .site-footer { flex: none; }
.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); }
.section--first { padding-top: 0; }
main#main { padding-top: clamp(40px, 5vw, 72px); }
.sub { color: var(--sub); }

/* 머리말 — 왼쪽 로고(홈으로), 가운데 메뉴 독, 오른쪽 검색. 메뉴 독은 홈과 같은 모양입니다. */
.site-header { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "logo dock search" "subrow subrow subrow"; align-items: center; gap: 0 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.site-header .logo { grid-area: logo; justify-self: start; }
.site-header .dock-wrap { grid-area: dock; }
.site-header .subrow { grid-area: subrow; }
.site-header__search { grid-area: search; justify-self: end; width: min(100%, 220px); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 26px; width: auto; }
.search-toggle { display: none; }
.site-header--home { border-bottom: 0; }

/* 메뉴 독: 마우스를 올린 메뉴의 세부 링크만 옅게 펼쳐짐 (site.js) */
.dock { display: flex; justify-content: center; gap: 0 clamp(28px, 3.4vw, 52px); margin: 0; padding: 0; list-style: none; }
.dock__item { position: relative; display: flex; flex-direction: column; align-items: center; }
.dock__top { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; color: var(--ink); }
.dock__top span { border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s; }
.dock__top:hover { text-decoration: none; }
.dock__top:hover span, .dock__item.is-hot .dock__top span, .dock__top[aria-current="page"] span { border-bottom-color: var(--ink); }
.dock__sub { position: absolute; top: 100%; left: 50%; z-index: 6; margin: 0; padding: 6px 14px 10px; list-style: none; display: flex; flex-direction: column; align-items: center; background: var(--bg);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s; }
.dock__sub a { display: inline-block; padding: 5px 2px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.06em; color: #A9AEAB; white-space: nowrap; text-align: center; transition: color .15s; }
.dock__sub a.kr { letter-spacing: 0; font-size: 12.5px; line-height: 1.45; }
.dock__sub a:hover, .dock__sub a:focus-visible, .dock__sub a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.dock__item.is-hot .dock__sub, .dock__item:focus-within .dock__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s ease, transform .3s ease, visibility 0s; }
.site-header .dock__sub { top: calc(100% + 19px); padding: 4px 16px 12px; }
.site-header .dock__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; }
.subrow { display: none; justify-content: center; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.subrow a { display: inline-block; padding: 8px 2px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.06em; color: #8E9390; }
.subrow a.kr { letter-spacing: 0; }
.subrow a[aria-current="page"] { color: var(--ink); }

/* 머리말 · 홈의 작은 검색창 */
.landing__search .search-form, .site-header__search .search-form { border-bottom-color: #9DA29F; }
.landing__search .search-form:focus-within, .site-header__search .search-form:focus-within { border-bottom-color: var(--ink); }
.landing__search .search-form input, .site-header__search .search-form input { height: 40px; font-size: 13px; }
.landing__search .search-form input:focus, .site-header__search .search-form input:focus { outline: none; }
.landing__search .search-form button, .site-header__search .search-form button { width: 44px; height: 40px; }

/* 맨 위로 */
.to-top { position: fixed; right: clamp(16px, 2.6vw, 40px); bottom: calc(clamp(16px, 2.6vw, 40px) + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; line-height: 1;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility 0s linear .25s, background-color .2s, color .2s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, visibility 0s, background-color .2s, color .2s; }
.to-top:hover { text-decoration: none; background: var(--ink); color: var(--bg); }

/* 글자 */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--sub); }
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--accent); }
.h-page { font-size: clamp(34px, 4.6vw, 64px); font-weight: 600; line-height: 1.12; letter-spacing: 0; }
.h-statement { margin-top: 32px; max-width: 1080px; font-size: clamp(26px, 3.6vw, 52px); font-weight: 500; line-height: 1.32; letter-spacing: -0.025em; }
.h-section { font-size: clamp(24px, 2.8vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: 0; }

/* 버튼 · 링크 */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; background: var(--ink); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 500; border: 0; border-radius: 0; cursor: pointer; }
.btn:hover { text-decoration: none; opacity: 0.86; }
.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; }
.caption { margin-top: 12px; font-size: 14px; color: var(--sub); }

/* 페이지 머리 · 하위 탭 */
.page-head { padding-top: 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.page-head p { max-width: 460px; margin-bottom: 8px; color: var(--sub); }
.page-head--stack { display: block; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; border: 1px solid #B4B9B5; }
.subnav a:hover { text-decoration: none; border-color: var(--ink); }
.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; }

/* 작업(WORKS) 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 64px 32px; margin-top: 48px; }
.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; }
.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); }

/* 분류 고르기 */
/* WORKS: 사진만, 마우스를 올리면 작업 이름 */
.catnav { display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 2.4vw, 32px); margin-top: -10px; }
.catnav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: #A9AEAB; }
.catnav a:hover { text-decoration: none; color: var(--ink); }
.catnav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.catnav + .cards--bare { margin-top: clamp(16px, 2vw, 28px); }
.cards--bare { margin-top: clamp(16px, 2vw, 24px); gap: clamp(6px, 0.7vw, 10px); }
.card__media { position: relative; display: block; overflow: hidden; background: var(--ph); }
.card--bare .card__img { transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.card--bare:hover .card__img { opacity: 1; transform: scale(1.035); }
.card__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(18, 20, 19, 0.52); color: #FFFFFF; text-align: center; opacity: 0; transition: opacity .35s ease; }
.card__overlay .card__name { font-size: clamp(13px, 1.05vw, 16px); font-weight: 500; letter-spacing: 0.06em; line-height: 1.4; }
.card--bare:hover .card__overlay, .card--bare:focus-visible .card__overlay { opacity: 1; }
@media (hover: none) {
  .card__overlay { opacity: 1; align-items: flex-end; justify-content: flex-start; padding: 14px 16px; text-align: left; background: linear-gradient(to top, rgba(18, 20, 19, 0.62), rgba(18, 20, 19, 0) 55%); }
  .card__overlay .card__name { font-size: 13px; }
}
.works--list { margin-top: 0; columns: 2 260px; }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; 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: 14px; font-weight: 600; letter-spacing: 0.03em; border: 1px solid #B4B9B5; }
.chips a:hover { text-decoration: none; border-color: var(--ink); }
.chips a[aria-current="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.count { font-size: 14px; color: var(--sub); }

/* 좌우 나눔 구역 */
.split { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.split__side { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.split__side p { max-width: 360px; color: var(--sub); }
.split__main { flex: 999 1 560px; min-width: 0; }
.split--stack { flex-direction: column; gap: 28px; }
.split--stack > .split__side, .split--stack > .split__main { flex: none; width: 100%; }
.split--stack .works--list { columns: 3 260px; }

/* 줄 목록 */
.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; }

/* VISION */
.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: 700; 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); }
.h-statement--first { margin-top: 0; max-width: 820px; font-size: clamp(19px, 1.9vw, 26px); font-weight: 400; line-height: 1.6; letter-spacing: -0.01em; }
/* VISION 사진: WORKS 대표 사진이 10초마다 겹쳐 바뀌며 아주 천천히 줌아웃 (site.js) */
.slides { position: relative; display: block; width: 100%; margin-top: 64px; aspect-ratio: 21 / 9; overflow: hidden; background: var(--ph); }
.slides__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transform: scale(1.06); transform-origin: 50% 50%; will-change: transform, opacity; }
/* 지금 사진은 위에서 서서히 나타나고, 직전 사진은 그 아래에 그대로 남아 있다가 다 덮이면 사라짐 → 중간에 밝기나 크기가 튀지 않음 */
.slides__img.is-prev { z-index: 1; opacity: 1; }
.slides__img.is-on { z-index: 2; opacity: 1; transition: opacity 2.6s cubic-bezier(.45,0,.25,1); }
.banner { display: block; width: 100%; margin-top: 64px; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; background: var(--ph); }

/* PEOPLE */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 56px 32px; margin-top: 0; }
.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: 0; }
.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; max-width: 46%; }
.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(17px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.01em; }

/* SERVICE */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; margin-top: 0; }
.service { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 280px; padding: 32px; border: 1px solid var(--ink); }
.service__no { font-size: 14px; color: var(--sub); }
.service h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.service__en { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--sub); }
.service__state { margin-top: auto; padding: 6px 14px; background: var(--ph); font-size: 13px; font-weight: 600; }

/* ARTICLE */
.posts { margin-top: 0; border-top: 1px solid var(--ink); }
.post { display: flex; flex-wrap: wrap; gap: 20px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.post:hover { text-decoration: none; }
.post__img { flex: 0 0 min(100%, 280px); }
.post__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ph); }
.post__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.post__meta { font-size: 13px; color: var(--sub); }
.post__title { font-size: clamp(20px, 2vw, 28px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.post:hover .post__title { text-decoration: underline; text-underline-offset: 5px; }
.post__excerpt { max-width: 720px; color: var(--sub); }
.article { padding-top: 0; max-width: 860px; }
.article h1 { margin-top: 28px; font-size: clamp(28px, 3.6vw, 48px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.article__meta { margin-top: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); font-size: 14px; color: var(--sub); }
.article__cover { display: block; width: 100%; height: auto; margin-top: 40px; background: var(--ph); }
.article__body { margin-top: 40px; font-size: 18px; line-height: 1.85; }
.article__body p + p { margin-top: 1.3em; }
.article__images { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.article__images img { display: block; width: 100%; height: auto; background: var(--ph); }

/* 검색 */
.search-form { display: flex; align-items: stretch; width: 100%; max-width: 640px; border-bottom: 1px solid var(--ink); }
.search-form input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 4px; font: inherit; font-size: 18px; color: var(--ink); background: transparent; border: 0; border-radius: 0; }
.search-form input::placeholder { color: #6B706D; }
.search-form button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; }
.results-summary { margin-top: 28px; font-size: 15px; color: var(--sub); }
.results-group { margin-top: 56px; }
.results-group h2 { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.results-group h2 span { font-weight: 400; letter-spacing: 0; color: var(--sub); }
.result { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.result:hover { text-decoration: none; }
.result:hover .result__title { text-decoration: underline; text-underline-offset: 5px; }
.result__img { flex: 0 0 96px; }
.result__img img { display: block; width: 96px; height: 72px; object-fit: cover; background: var(--ph); }
.result__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.result__title { font-size: 18px; font-weight: 500; line-height: 1.45; }
.result__sub { font-size: 14px; color: var(--sub); }
mark { background: #FFE9A8; color: inherit; padding: 0 1px; }

/* CONTACT */
.contact { padding-top: 0; display: flex; flex-wrap: wrap; gap: 48px 96px; }
.contact__side { flex: 1 1 320px; }
.contact__main { flex: 999 1 520px; min-width: 0; }
.info { 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; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .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 { height: 52px; }
/* CONTACT: 한 화면에 들어오도록 아래 여백을 줄이고, 내용 칸 높이는 화면 높이에 맞춰 140~260px 사이에서 자동 */
.main--tight { padding-bottom: 32px; }
.contact .form { gap: 20px; }
.contact .field input { height: 46px; }
.contact .field textarea { min-height: 0; height: clamp(140px, calc(100vh - 620px), 260px); }
.field textarea { min-height: 260px; padding: 14px 16px; line-height: 1.7; resize: vertical; }
.field small { font-size: 13px; color: var(--sub); }
.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: 600; line-height: 1.3; letter-spacing: -0.02em; }
.done p { max-width: 480px; color: var(--sub); }

/* 꼬리말 */
.site-footer { background: var(--ink); color: #F2F3F1; }
/* 얇은 꼬리말: 한 줄(로고 · 연락처 · 메뉴). 오른쪽은 '맨 위로' 버튼 자리만큼 비워 둠 */
.footer__main { padding: 14px 76px 14px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; font-size: 12px; line-height: 1.5; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { display: block; height: 24px; width: auto; }
.footer__brand span, .footer__contact { color: var(--dark-sub); }
.footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-right: auto; }
.footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(16px, 2vw, 28px); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
.footer__contact a, .footer__contact span, .footer__nav a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__nav .footer__admin { font-weight: 400; letter-spacing: 0; color: var(--dark-sub); }

/* 관리자로 로그인했을 때 화면 위에 보이는 띠 */
.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: 899px), (hover: none) {
  .dock__sub { display: none; }
  .subrow { display: flex; }
  .subrow:empty { display: none; }
}
@media (max-width: 899px) {
  .dock { gap: 0 18px; }
  .dock__top { font-size: 13px; }
  .site-header { grid-template-columns: 1fr auto; grid-template-areas: "logo toggle" "dock dock" "subrow subrow" "search search"; padding: 12px 0 6px; }
  .search-toggle { grid-area: toggle; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .search-toggle[aria-expanded="true"] { color: var(--accent); }
  .site-header__search { justify-self: stretch; width: 100%; display: none; padding: 4px 0 8px; }
  .site-header__search.is-open { display: block; }
  .site-header__search .search-form { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .dock { gap: 0 14px; }
  .dock__top { font-size: 12px; letter-spacing: 0.04em; }
  .site-header .dock { justify-content: space-between; gap: 0 8px; }
  .to-top { width: 44px; height: 44px; }
  .footer__main { padding: 12px 0; gap: 0 16px; }
  .footer__nav a:not(.footer__admin) { display: none; }  /* 휴대폰은 위쪽 메뉴가 있으므로 꼬리말 메뉴는 생략 */
  .footer__brand span { display: none; }
  .footer__contact { gap: 0 12px; font-size: 11px; }
  .footer__contact a, .footer__contact span, .footer__nav a { min-height: 28px; }
  .card__sub { padding-left: 0; }
  .pager a { max-width: 100%; }
  .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; }
  .service { padding: 24px; min-height: 220px; }
  .slides { aspect-ratio: 4 / 3; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .card__img { transition: none; } }
@media (max-width: 360px) {
  .dock { gap: 0 10px; }
  .dock__top { font-size: 11px; letter-spacing: 0.02em; }
}
@media (prefers-reduced-motion: reduce) { .dock__sub, .to-top, .card__overlay, .card--bare .card__img, .slides__img { transition: none !important; } .slides__img { transform: none; } }
