/* ==========================================================================
   HV LAB — main.css (design system)
   원본: hvlab.kr (imweb) — 모노크롬 미니멀 유지, 타이포/간격/접근성 개선판
   ========================================================================== */

/* ---------- fonts ---------- */
/* 주 서체: SUIT (국·영문 통합 단일 패밀리) — 정확한 굵기 렌더링을 위해 고정 굵기 5종 사용
   (가변 파일은 기본 인스턴스가 Thin이라 브라우저별 가짜 볼드 왜곡 발생 → 정적으로 고정)
   * SUITE(SUIT의 라운드 버전)로 바꾸려면 이 파일들과 family명만 교체하면 됨 */
@font-face { font-family: 'SUIT'; src: url('../fonts/SUIT-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'SUIT'; src: url('../fonts/SUIT-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'SUIT'; src: url('../fonts/SUIT-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'SUIT'; src: url('../fonts/SUIT-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'SUIT'; src: url('../fonts/SUIT-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'SUIT'; src: url('../fonts/SUIT-Heavy.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
/* 글리프 안전망(희귀 문자 대비) — SUIT에서 전부 커버되면 다운로드되지 않음 */
@font-face {
  font-family: 'Pretendard Variable';
  src: url('../fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #f6f6f6;
  --ink: #1d1d1d;
  --text: #363636;
  --muted: #6e6e6e; /* #f6f6f6 위 4.72:1 (AA) */
  --faint: #a3a3a3;
  --hairline: rgba(0, 0, 0, .08);
  --hairline-strong: rgba(0, 0, 0, .16);
  --white: #fff;
  --overlay: rgba(17, 17, 17, .92);

  --font-sans: 'SUIT', 'Pretendard Variable', -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-en: 'SUIT', 'Pretendard Variable', sans-serif;

  --header-h: 88px;
  --container: 1280px;
  --pad-x: 24px;
  --frame-x: clamp(20px, 6.7vw, 88px); /* 풀블리드 프레임 좌우 여백 — 원본 1265px 기준 85px 재현 */
  --page-top: 40px; /* 헤더 → 첫 콘텐츠 통일 리듬 (전 페이지 동일) */

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .55s;
}
@media (max-width: 768px) {
  :root { --header-h: 60px; --pad-x: 20px; --page-top: 28px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges; /* 스크롤바 자리를 양쪽에 예약 — 좌우 여백 대칭 + 페이지 간 헤더/메뉴 위치 불변 */
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
  /* 스티키 푸터: 콘텐츠가 짧아도 푸터가 화면 바닥에 붙도록(빈 여백 없이) */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.35; color: var(--ink); }
::selection { background: #1d1d1d; color: #f6f6f6; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 1px; }
:focus:not(:focus-visible) { outline: none; }

.en { font-family: var(--font-en); }

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
main { flex: 1 0 auto; }   /* 남는 세로 공간을 채워 푸터를 바닥으로 밀어줌 (홈은 main#content가 더 구체적이라 자체 규칙 유지) */
.section { padding-block: 96px; }
@media (max-width: 768px) { .section { padding-block: 64px; } }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  /* 구분선 없음 — 배경 연속으로 콘텐츠와 한 면처럼 (사용자 확정) */
  /* 태블릿/폰 전체화면(홈앱)에서 상태바(시간·배터리) 영역까지 흰 배경으로 덮어 콘텐츠 비침 방지 */
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  /* 원본처럼 로고↔메뉴를 화면 양끝으로 넓게 — 콘텐츠(1280px)와 별개의 풀블리드 프레임 */
  max-width: none;
  padding-inline: var(--frame-x);
}
.logo {
  font-family: var(--font-en);
  font-weight: 900; font-size: 26px; letter-spacing: .02em; color: var(--ink);
  line-height: 1;
}
@media (max-width: 768px) { .logo { font-size: 21px; } }

/* 원본(hvlab.kr) 실측 재현: 16px / 자간 1px / 텍스트 간 37px / 세로 중앙.
   웨이트는 서체 보정: 원본 Lato 400의 잉크 밀도(160)가 SUIT 400(146)~500(178) 중간이라
   가벼움을 피해 500 채택 */
/* 원본처럼 클릭 박스를 빈틈없이 연결: 시각 간격 37px = 좌우 패딩 18.5px×2, gap 0.
   글자 사이 어디를 눌러도 인접 메뉴가 반응 — 빠른 클릭 미스 방지 */
.gnb ul { display: flex; gap: 0; margin-right: -18.5px; }
.gnb-link {
  font-family: var(--font-en);
  font-weight: 500; font-size: 16px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--faint); /* 비활성 최연(最軟) — 현재 페이지(잉크)와 최대 낙차, 탭과 동일 페어 */
  transition: color .25s var(--ease);
}
.gnb a:hover { color: var(--ink); }
/* 현재 페이지 = 진하게, 나머지 = 연하게 — 탭과 동일한 톤 문법 (굵기 변화 금지: 위치 고정 유지) */
.gnb a[aria-current="page"] { color: var(--ink); }
.gnb .gnb-link { display: inline-block; padding-block: 16px; padding-inline: 18.5px; }
@media (max-width: 768px) { .gnb { display: none; } }

/* mobile menu */
.menu-toggle { display: none; }
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; margin-right: -10px;
  }
  .menu-toggle span {
    display: block; height: 1.5px; background: var(--ink);
    transition: transform .3s var(--ease), opacity .3s;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
}
.mobile-menu {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 99;
  background: var(--bg);
  padding: 8vh var(--pad-x);
  display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: grid; gap: 28px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-en); font-weight: 500; font-size: 17px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
}
body.menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer {
  padding-block: 22px; /* 구분선 없음 — 여백만으로 분리 (사용자 확정) */
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); /* 전체화면에서 하단 홈 인디케이터 영역 회피 */
  margin-top: 0;
  flex-shrink: 0; /* 스티키 푸터: 좁은 화면에서도 눌리지 않음 */
}
/* 푸터는 콘텐츠(1280px) 판면에 정렬 — 콜로폰은 chrome이 아니라 콘텐츠의 마침줄 */
/* 양쪽 정렬: 회사 정보는 좌측 끝, 저작권은 우측 끝 — 콘텐츠(1280px) 모서리에 맞춤 */
.foot-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px 48px; flex-wrap: wrap;
}
.foot-line {
  font-size: 12.5px; line-height: 2;
  letter-spacing: .01em;
  color: var(--text);
}
.foot-line strong { font-family: var(--font-en); font-weight: 800; color: var(--ink); }
.f-val { font-weight: 600; color: var(--text); }
.foot-line a { cursor: default; } /* 전화번호 — 데스크톱 손가락 커서 제거 (모바일 탭 통화는 유지) */
/* 원본의 투톤 리듬: 라벨은 아주 연하게, 값은 진하게 (원본 #b5b5b5 ↔ #363636)
   라벨 좌우 8px — 라벨↔값(≈12px) < 그룹 간격(≈44px) 2단 위계 */
.f-muted { color: var(--faint); margin-inline: 8px; }
.foot-line > .f-muted:first-child, .foot-line strong + .f-muted { margin-left: 8px; }
.f-sep { display: inline-block; width: 28px; }
.f-copy { color: var(--faint); letter-spacing: .02em; }
@media (max-width: 900px) {
  .foot-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .f-sep { width: 14px; }
}
/* 푸터는 언제나 한 줄. 회사정보+저작권이 나란히 들어가려면 콘텐츠 폭 ≈993px(창 ≈1071px)이 필요한데,
   그 아래에선 2줄로 쌓여 마침줄이 무거워진다 → 회사정보를 숨기고 저작권만 남긴다.
   (상세정보의 본거지는 CONTACT — 내비 한 번이면 도달. 태블릿 세로 포함) */
@media (max-width: 1100px) {
  .foot-line:not(.f-copy) { display: none; }
}

/* ---------- page head / titles ---------- */
.page-head { padding: 0 0 8px; } /* 상단 리듬은 페이지 래퍼의 --page-top이 담당 */
.page-title {
  font-family: var(--font-en);
  font-weight: 700; font-size: 24px; letter-spacing: .08em; text-transform: uppercase;
}
.page-sub { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 768px) {
  .page-head { padding-top: 36px; }
  .page-title { font-size: 20px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 34px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; letter-spacing: .06em;
  border: 1px solid var(--ink); border-radius: 2px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  user-select: none;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- tabs (RESIDENCE / COMMERCIAL) ---------- */
.tabs { display: flex; gap: 28px; padding: var(--page-top) 0 28px; }
.tab {
  font-family: var(--font-en); font-weight: 500; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); /* 비활성 탭은 연하게 — 활성과의 강약 */
  transition: color .25s var(--ease);
}
.tab:hover { color: var(--ink); }
/* 활성 = 진한 색 + 세미볼드 두 채널로 충분 — 밑줄(삼중 코딩) 제거 */
.tab[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* 갤러리(PROJECT): 상단 리듬을 좁혀 이미지가 더 위에서 시작 — 탭은 그리드에 붙는 컴팩트 클러스터(근접성). */
.is-gallery .tabs { padding: 20px 0 16px; }

/* ---------- project cards ----------
   데스크톱(호버 가능 기기): 순수 이미지 타일. 사진에는 어떤 효과도 주지 않는다
   (줌/베일/밝기 변화 금지 — 사진 무손상 원칙). 호버/키보드 포커스 시
   좌측 상단 모서리에 페이지 표면색(--bg) 플레이트에 얹힌 프로젝트명만 조용히 페이드인.
   터치 기기는 호버가 없으므로 캡션을 이미지 아래 상시 표시. */
.card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 14px; row-gap: 40px;
  padding-bottom: 96px;
}
.card { display: block; }
.card figure { position: relative; }
.card img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  background: #e9e9e9;
}
.card figcaption {
  margin-top: 11px;
  font-family: var(--font-en); font-weight: 500; font-size: 13.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
  .card-grid { row-gap: 20px; }       /* 캡션이 오버레이로 들어가므로 원본처럼 타일 간격 축소 */
  /* 박스/스크림 없이 흰 프로젝트명만 페이드 — 섀도는 밝은 벽에서의 최소 가독성 보험(빼려면 이 줄 삭제) */
  .card figcaption {
    position: absolute; left: 0; top: 0; z-index: 1;
    margin: 0; padding: 14px 16px;
    color: #fff;
    font-size: 13px;
    letter-spacing: .08em;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .18);
    opacity: 0;
    transition: opacity .5s var(--ease);
  }
  .card:hover figcaption, .card:focus-visible figcaption { opacity: 1; }
}
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .card-grid { grid-template-columns: 1fr; row-gap: 36px; padding-bottom: 64px; } }

/* PROJECT 갤러리 — 넓은 데스크탑에서 비대칭 확장:
   좌측은 콘텐츠(1280) 컬럼 축에 정렬(탭·푸터와 동일), 우측은 헤더 프레임(--frame-x)에 정렬
   → 그리드 우측이 내비(CONTACT) 텍스트 우측끝과 일치. */
@media (min-width: 1281px) {
  .container.is-gallery {
    max-width: none;
    margin-left: calc((100vw - var(--container)) / 2 + var(--pad-x));
    margin-right: var(--frame-x);
    padding-inline: 0;
  }
  /* 프로젝트 상세: is-gallery가 이미 좌측 축·우측 프레임에 정렬하므로,
     중앙 컨테이너용 음수 마진(블리드)을 해제 → 포토월·헤드·내비가 갤러리와 같은 축에 정렬 */
  .container.is-gallery .photo-wall,
  .container.is-gallery .pd-head,
  .container.is-gallery .pd-nav { margin-inline: 0; }
}

/* ---------- photo wall (project detail) ---------- */
.pd-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: var(--page-top) 0 22px;
}
.pd-back {
  font-family: var(--font-en); font-weight: 500; font-size: 12.5px;
  letter-spacing: .1em; color: var(--muted); text-transform: uppercase;
  transition: color .25s;
}
.pd-back:hover { color: var(--ink); }
.pd-title {
  font-family: var(--font-en); font-weight: 700; font-size: 18px;
  letter-spacing: .04em; text-transform: uppercase;
}
@media (max-width: 640px) {
  .pd-head { flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 22px; }
}

.photo-wall {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding-bottom: 72px;
  /* 컨테이너 패딩까지 블리드 — 원본 셀 크기(311px @1280) 재현, 간격은 유지 */
  margin-inline: calc(-1 * var(--pad-x));
}
.pw-item { position: relative; padding: 0; aspect-ratio: 4 / 3; overflow: hidden; display: block; cursor: zoom-in; }
/* 호버 시 사진 무변형 — 카드와 동일한 사진 무손상 원칙 */
.pw-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) { .photo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  /* 모바일: 1열 풀폭·원본 비율(무크롭) 세로 스크롤 — 스와이프 없이 스크롤만으로 모든 사진을 크게.
     탭하면 라이트박스 확대는 그대로. (사진 무손상: 4:3 크롭 제거) */
  .photo-wall { grid-template-columns: 1fr; gap: 10px; }
  .pw-item { aspect-ratio: auto; }
  .pw-item img { height: auto; object-fit: contain; }
}

/* prev / next project nav */
.pd-nav {
  padding: 26px 0 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
/* 포토월이 프레임 안쪽으로 들어오는 폭에서만 헤드·내비를 사진 모서리 축에 정렬.
   그보다 좁으면 포토월이 풀블리드라 텍스트가 화면 모서리에 닿게 되므로 확장하지 않는다. */
@media (min-width: 1360px) {
  .pd-head, .pd-nav { margin-inline: calc(-1 * var(--pad-x)); }
}
.pd-nav a {
  font-family: var(--font-en); font-weight: 500; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: color .25s;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-nav a:hover { color: var(--ink); }
.pd-nav .nav-prev { justify-self: start; }
.pd-nav .nav-list { justify-self: center; }
.pd-nav .nav-next { justify-self: end; text-align: right; }

/* ---------- lightbox ---------- */
.lb-root {
  position: fixed; inset: 0; z-index: 300;
  background: var(--overlay);
  display: none;
  align-items: center; justify-content: center;
}
.lb-root.is-open { display: flex; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage img {
  max-width: min(92vw, 1720px); max-height: 88vh;
  width: auto; height: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  user-select: none;
}
.lb-btn {
  position: absolute; z-index: 2;
  color: rgba(255, 255, 255, .82);
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  transition: color .2s, background-color .2s;
}
.lb-btn:hover { color: #fff; }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; top: 26px; left: 28px;
  font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: .12em;
  color: rgba(255, 255, 255, .78);
}
.lb-caption {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-weight: 500; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .lb-stage img { max-width: 100vw; max-height: 82vh; }
  .lb-prev, .lb-next { display: none; } /* swipe instead */
}
body.lb-open { overflow: hidden; }

/* ---------- hero slider (home) ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 480px;
  overflow: hidden;
  background: #e8e8e8;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-link { position: absolute; inset: 0; display: block; }

/* 슬라이더 UI 미니멀 — 점/카운터 없음 (사용자 확정), 일시정지·호버 화살표만 */
.hero-pause {
  position: absolute; left: calc(var(--frame-x) - 12px); bottom: 14px; z-index: 3;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .8);
  transition: color .2s;
}
.hero-pause:hover { color: #fff; }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .75);
  opacity: 0; transition: opacity .3s, color .2s;
}
.hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { color: #fff; }
.hero-arrow svg { width: 30px; height: 30px; }
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }
@media (max-width: 768px) {
  .hero-arrow { display: none; }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 30px; }
.field { display: grid; gap: 10px; }
.field > label, .field-label {
  font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.req { color: #b4443c; margin-left: 3px; font-weight: 700; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: -4px; }

.input, .form textarea, .form select,
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  font-size: 15.5px;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.form :is(input, textarea, select):focus { border-color: var(--ink); outline: none; }
.form ::placeholder { color: var(--faint); }

.choices { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choices.stack { flex-direction: column; gap: 12px; }
.choice { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; line-height: 1.55; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .mark {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px;
  border: 1px solid var(--hairline-strong); background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, background-color .2s;
}
.choice input[type="radio"] + .mark { border-radius: 50%; }
.choice input[type="radio"] + .mark::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
  transform: scale(0); transition: transform .18s var(--ease);
}
.choice input[type="checkbox"] + .mark::after {
  content: ''; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); margin-top: -2px;
  transition: transform .18s var(--ease);
}
.choice input:checked + .mark { border-color: var(--ink); }
.choice input[type="checkbox"]:checked + .mark { background: var(--ink); }
.choice input:checked + .mark::after { transform: scale(1); }
.choice input[type="checkbox"]:checked + .mark::after { transform: rotate(-45deg) scale(1); }
.choice input:focus-visible + .mark { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice-desc { display: block; font-size: 13px; color: var(--muted); }

.file-field input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-field .file-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--hairline-strong); background: var(--white);
  font-size: 14px; cursor: pointer;
  transition: border-color .2s;
}
.file-field .file-btn:hover { border-color: var(--ink); }
.file-field input:focus-visible ~ .file-btn { outline: 2px solid var(--ink); outline-offset: 2px; }
.file-name { font-size: 13.5px; color: var(--muted); }

details.privacy {
  border: 1px solid var(--hairline);
  background: var(--white);
}
details.privacy summary {
  cursor: pointer; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.privacy summary::-webkit-details-marker { display: none; }
details.privacy summary::after { content: '+'; font-family: var(--font-en); color: var(--muted); }
details.privacy[open] summary::after { content: '\2212'; }
details.privacy .privacy-body {
  max-height: 300px; overflow-y: auto;
  padding: 0 16px 16px; font-size: 13px; line-height: 1.75; color: var(--muted);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- misc ---------- */
.hairline { border: 0; border-top: 1px solid var(--hairline); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- page transitions ----------
   View Transitions 사용 안 함 (2026-07-13 확정): 전환 애니메이션 중 시작된
   내비게이션이 무시되는 엔진 동작 때문에 빠른 연속 클릭이 씹혔음.
   깜박임 방지는 에셋 캐시(304 재검증) + 브라우저 페인트 홀딩이 담당. */

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
