/*
  바른컴퍼니 홈페이지 전체 스타일(색·글자 크기·여백·배치)을 담은 파일입니다.
  index.html 과 privacy.html 이 같은 파일을 함께 씁니다.

  맨 위 :root 영역이 "디자인 토큰"입니다. 색과 여백은 전부 여기에만 적고,
  아래 규칙들은 토큰 이름만 가져다 씁니다. 그래야 색 하나를 바꿀 때 한 곳만 고치면 됩니다.
  (아래쪽 규칙에 #색상코드나 13px 같은 숫자를 직접 적지 않는 이유입니다)
*/

/* ========================================================================
   1. 디자인 토큰
   ======================================================================== */
:root {
  /* ── 색: 로고 실측값 ── */
  --c-blue: #1420D1;        /* 주색. 버튼·링크·강조 */
  --c-blue-dk: #0F18A8;     /* 주색의 눌림/마우스오버 단계 */
  --c-teal: #43A9D8;        /* 보조색. 아이콘·장식 전용(흰 바탕 본문 글자색으로 쓰지 않음) */
  /* 청록의 어두운 단계. 사업 영역 "출판" 블록의 사진 없는 면과 아이콘에만 쓴다.
     흰 배경 대비 4.45:1 로 본문 기준(4.5:1)에 못 미치므로 --c-teal 과 마찬가지로
     글자색으로는 쓰지 않는다. */
  --c-teal-dk: #2E7FA8;
  --c-green: #1E4B40;       /* 딥그린. 히어로·푸터 배경 */
  --c-green-dk: #16362E;    /* 딥그린의 어두운 단계 */
  --c-ink: #141A1F;         /* 본문 글자 */
  --c-muted: #5A6670;       /* 보조 글자 */
  --c-line: #E2E6E9;        /* 경계선(면을 나누는 선. 대비 요구 없음) */
  /* 입력칸·외곽선 버튼처럼 "조작할 수 있는 것"의 테두리 전용.
     WCAG 1.4.11 이 요구하는 3:1 대비를 흰 배경(3.35:1)과
     카드 배경 --c-surface(3.12:1) 양쪽에서 만족하는 값으로 골랐다.
     (--c-line 은 1.26:1 로 모자라 입력칸 경계가 거의 보이지 않았다) */
  --c-line-strong: #838E94;
  --c-surface: #F5F7F8;     /* 카드·구역 배경 */
  --c-bg: #FFFFFF;          /* 기본 배경 */

  /* 어두운 배경 위에서 쓰는 글자색. 대비 4.5:1 이상을 만족하도록 고른 값 */
  --c-on-dark: #FFFFFF;
  --c-on-dark-muted: #C9D6D1;

  --c-danger: #B3261E;      /* 입력 오류 안내 */
  --c-kakao: #FEE500;       /* 카카오톡 브랜드 색(지정값이라 토큰으로만 보관) */
  --c-kakao-ink: #191600;   /* 카카오 노랑 위 글자색 */
  --c-overlay: rgba(20, 26, 31, .5);
  --c-white-a10: rgba(255, 255, 255, .1);
  --c-white-a20: rgba(255, 255, 255, .22);
  --c-ink-a08: rgba(20, 26, 31, .08);
  --c-ink-a14: rgba(20, 26, 31, .14);

  /* ── 여백 척도 (4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96) ── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* ── 모서리 둥글기 ── */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* ── 글자 ── */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;

  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 30px;
  --fs-3xl: 38px;
  --fs-hero: clamp(36px, 9vw, 64px);       /* 화면 폭에 따라 자연히 커지는 제목 */
  --fs-tagline: clamp(15px, 3.6vw, 22px);

  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-base: 1.75;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  --ls-wide: .12em;
  --ls-tight: -.015em;

  /* ── 선·그림자 ── */
  --bw: 1px;
  --bw-thick: 2px;
  --focus-w: 3px;
  --focus-gap: 2px;
  --sh-sm: 0 1px 2px rgba(20, 26, 31, .06), 0 2px 8px rgba(20, 26, 31, .06);
  --sh-md: 0 4px 16px rgba(20, 26, 31, .1);
  --sh-lg: 0 18px 48px rgba(20, 26, 31, .22);

  /* ── 움직임 ── */
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 620ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --reveal-shift: 18px;

  /* ── 배치 ── */
  --container: 1140px;
  --container-narrow: 760px;
  --gutter: var(--sp-5);
  --nav-h: 60px;
  --tap-min: 44px;          /* 손가락으로 누르는 최소 크기(실패 비용이 큰 버튼에 적용) */
  --float-size: 52px;
  --chat-w: 400px;
  --chat-h: 620px;

  /* ── 겹침 순서 ── */
  --z-nav: 100;
  --z-float: 200;
  --z-chat: 300;
  --z-skip: 400;

  /* 화면 밖으로 밀어 둘 때 쓰는 거리(스팸 방지용 숨은 입력칸) */
  --offscreen: -9999px;
}

/* ========================================================================
   2. 기본값 정리
   ======================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 챗봇이 열릴 때 스크롤바가 사라지며 화면이 덜컥 움직이는 것을 막는다 */
  scrollbar-gutter: stable;
  /* 고정 헤더에 제목이 가리지 않도록 앵커 이동 시 위쪽 여유를 둔다 */
  scroll-padding-top: calc(var(--nav-h) + var(--sp-5));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;       /* 한글이 단어 중간에서 끊기지 않게 */
  overflow-wrap: anywhere;    /* 긴 이메일 주소 등이 화면 밖으로 넘치지 않게 */
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--c-blue); text-decoration-thickness: from-font; text-underline-offset: .18em; }
a:hover { color: var(--c-blue-dk); }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: var(--focus-w) solid var(--c-blue);
  outline-offset: var(--focus-gap);
  border-radius: var(--r-sm);
}

/* 어두운 배경 위에서는 파란 외곽선이 잘 안 보이므로 흰색으로 */
.hero :focus-visible,
.footer :focus-visible,
.nav:not(.is-scrolled):not(.nav--solid) :focus-visible {
  outline-color: var(--c-on-dark);
}

/* 본문 바로가기 — 평소 숨어 있다가 Tab 을 누르면 나타난다 */
.skip-link {
  position: fixed;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: var(--z-skip);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-blue);
  color: var(--c-on-dark);
  border-radius: var(--r-sm);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transform: translateY(calc(-1 * (100% + var(--sp-4))));
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); color: var(--c-on-dark); }

/* ========================================================================
   3. 공통 배치 조각
   ======================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-8); }
.section--surface { background: var(--c-surface); }

.eyebrow {
  margin-bottom: var(--sp-3);
  color: var(--c-blue);
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.section__title {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.section__lead {
  margin-bottom: var(--sp-6);
  color: var(--c-muted);
  font-size: var(--fs-md);
}

.prose p + p { margin-top: var(--sp-3); }
.prose { color: var(--c-muted); font-size: var(--fs-md); }

/* 스크롤해서 보이면 살짝 떠오르는 효과. 자바스크립트가 켜진 경우에만 적용한다 */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 인쇄할 때는 등장 효과를 쓰지 않는다.
   인쇄는 스크롤이 일어나지 않아, 효과를 그대로 두면 아직 안 떠오른 부분이
   백지로 인쇄된다. */
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/*
  config.js 값에 따라 나타나는 요소(data-cfg-if)는 "기본으로 숨긴다".
  main.js 가 설정값을 다 채운 뒤 html 에 cfg-ready 를 붙이면 그때 보이기 시작한다.
  이렇게 해야 스크립트가 중간에 멈춰도 값 없는 빈 줄과 눌러도 반응 없는 링크가
  손님에게 보이지 않는다.
*/
html:not(.cfg-ready) [data-cfg-if] { display: none !important; }

/* ========================================================================
   4. 버튼
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  min-height: calc(var(--sp-6) + var(--sp-3));   /* 손가락으로 누르기 충분한 높이 */
  border: var(--bw) solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(var(--bw)); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--c-blue); color: var(--c-on-dark); }
.btn--primary:hover:not([disabled]) { background: var(--c-blue-dk); color: var(--c-on-dark); }

.btn--ghost {
  border-color: var(--c-white-a20);
  background: var(--c-white-a10);
  color: var(--c-on-dark);
}
.btn--ghost:hover { background: var(--c-white-a20); color: var(--c-on-dark); }

.btn--outline { border-color: var(--c-line-strong); background: var(--c-bg); color: var(--c-ink); }
.btn--outline:hover { border-color: var(--c-blue); color: var(--c-blue); }

.btn--kakao { background: var(--c-kakao); color: var(--c-kakao-ink); }
.btn--kakao:hover { background: var(--c-kakao); color: var(--c-kakao-ink); filter: brightness(.95); }

.btn--sm { padding: var(--sp-2) var(--sp-4); min-height: var(--sp-6); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn__icon { display: inline-flex; width: var(--sp-5); height: var(--sp-5); }
.btn__icon svg { width: 100%; height: 100%; }

/* ========================================================================
   5. 상단 내비게이션
   ======================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  background: transparent;
  border-bottom: var(--bw) solid transparent;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  max-width: var(--container);
  min-height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-on-dark);
  text-decoration: none;
}
.nav__logo {
  width: var(--sp-6);
  height: var(--sp-6);
  border-radius: var(--r-sm);
}
.nav__name { font-size: var(--fs-md); font-weight: var(--fw-black); letter-spacing: var(--ls-tight); }

.nav__menu { display: flex; align-items: center; gap: var(--sp-5); }
.nav__link {
  color: var(--c-on-dark);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  padding-block: var(--sp-2);
}
.nav__link:hover { color: var(--c-on-dark); opacity: .78; }
.nav__link.is-active { box-shadow: inset 0 calc(-1 * var(--bw-thick)) 0 0 currentColor; }

/* 스크롤해서 히어로를 벗어났을 때, 그리고 하위 페이지(privacy)에서의 모습 */
.nav.is-scrolled,
.nav--solid {
  background: var(--c-bg);
  border-bottom-color: var(--c-line);
  box-shadow: var(--sh-sm);
}
.nav.is-scrolled .nav__brand,
.nav.is-scrolled .nav__link,
.nav--solid .nav__brand,
.nav--solid .nav__link { color: var(--c-ink); }
.nav.is-scrolled .nav__link:hover,
.nav--solid .nav__link:hover { color: var(--c-blue); opacity: 1; }
.nav.is-scrolled .nav__bar,
.nav--solid .nav__bar { background: var(--c-ink); }

/* 햄버거 버튼 — 좁은 화면에서만 보인다 */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-1);
  width: var(--sp-7);
  height: var(--sp-7);
  padding: 0;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav__bar {
  width: var(--sp-5);
  height: var(--bw-thick);
  margin-inline: auto;
  border-radius: var(--r-pill);
  background: var(--c-on-dark);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

/* ========================================================================
   6. 히어로
   ======================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--sp-8));
  padding-bottom: var(--sp-8);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--c-green) 0%, var(--c-green-dk) 100%);
  color: var(--c-on-dark);
  text-align: center;
  overflow: hidden;
}
.hero__inner {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__mark {
  width: calc(var(--sp-9) - var(--sp-5));
  height: calc(var(--sp-9) - var(--sp-5));
  margin: 0 auto var(--sp-5);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.hero__tagline {
  margin-top: var(--sp-2);
  color: var(--c-on-dark-muted);
  font-family: var(--font-serif);
  font-size: var(--fs-tagline);
  font-style: italic;
  letter-spacing: var(--ls-wide);
}
.hero__lead {
  margin-top: var(--sp-5);
  color: var(--c-on-dark-muted);
  font-size: var(--fs-md);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* ========================================================================
   7. 대표 소개 (About 섹션 안)
   ======================================================================== */
/*
  좁은 화면에서는 사진 위 / 글 아래로 쌓이고, 640px 부터 사진이 왼쪽으로 갑니다(15장).
  회사 소개 글과는 가로선 하나로만 나눕니다. 배경색까지 바꾸면 About 이
  두 개의 구역처럼 보여, 메뉴에 없는 섹션이 하나 더 있는 것처럼 읽히기 때문입니다.
*/
.profile {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-7);
  border-top: var(--bw) solid var(--c-line);
}

/*
  사진 자리. 사업 영역 블록(8장)과 똑같은 방식이라 사진 파일이 없으면 img 가 숨고
  아래 로고 색 면이 그대로 보인다(깨진 그림 아이콘이 뜨지 않는다).
  크기는 여백 토큰을 더해 만든다(96+64=160px). 토큰에 없는 숫자를 새로 적지 않기 위함이다.
*/
.profile__media {
  position: relative;
  width: calc(var(--sp-9) + var(--sp-8));
  max-width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-green-dk) 0%, var(--c-green) 55%, var(--c-teal) 100%);
}
.profile__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* "About / Services" 같은 영문 eyebrow 와 달리 한글이라 자간을 넓히지 않는다.
   한글에 ls-wide 를 주면 글자 사이가 벌어져 두 단어로 읽힌다 */
.profile__heading {
  color: var(--c-blue);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}
.profile__name {
  margin-top: var(--sp-1);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}
/* 직함은 이름보다 한 단계 작고 흐리게 — 이름이 먼저 읽히게 한다 */
.profile__role { color: var(--c-muted); font-size: var(--fs-md); font-weight: var(--fw-medium); }

.profile__career { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.profile__career li {
  position: relative;
  padding-left: var(--sp-5);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
/* 사업 영역 블록의 세부 항목과 같은 점 표시를 써서 "같은 종류의 목록"으로 읽히게 한다 */
.profile__career li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--sp-3) - var(--sp-1) / 2);
  width: var(--sp-2);
  height: var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--c-teal);
}

/* 인사말은 대표가 직접 하는 말이라 왼쪽 선으로 본문과 구분한다.
   글자색은 본문색 그대로 둔다 — 청록은 선(장식)에만 쓰고 글자에는 쓰지 않는다(흰 바탕 대비 부족) */
.profile__greeting {
  margin-top: var(--sp-4);
  padding-left: var(--sp-4);
  border-left: var(--bw-thick) solid var(--c-teal);
  font-size: var(--fs-md);
}

/*
  실적 숫자 — 대표 소개 아래.
  칸 수를 auto-fit 에 맡기면 항목이 3개여도 넓은 화면에서 5칸이 생겨
  숫자들이 왼쪽에 몰린다. 그래서 칸 수를 직접 정한다.
  좁은 화면은 2칸(세 번째는 아랫줄), 640px 부터 3칸.
  숫자를 지우면 ul 째로 사라지도록 margin 만 걸어 두었다.
*/
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: var(--bw) solid var(--c-line);
}

.stat__num {
  color: var(--c-blue);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

/* 단위(년·건+·종)는 숫자보다 작게 두어 숫자가 먼저 읽히게 한다 */
.stat__unit {
  margin-left: var(--sp-1);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.stat__label {
  margin-top: var(--sp-1);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

/* ========================================================================
   8. 사업 영역 — 컨설팅 / 출판 / 양조 세 블록
   ======================================================================== */
/*
  카드 3장을 나란히 두는 대신, 사업마다 "사진 + 글" 한 덩어리를 세로로 쌓습니다.
  카드로 늘어놓으면 셋이 같은 크기·같은 모양이라 한 묶음으로만 읽히는데,
  블록으로 펼치면 사업마다 제 몫의 자리를 차지해 따로 읽힙니다.
  상단 메뉴가 사업별로 쪼개져 있어(#consulting·#publishing·#brewing)
  링크로 바로 뛰어올 "도착 지점"이 눈에 보일 만큼 커야 하는 이유도 있습니다.

  메뉴를 눌렀을 때 고정 헤더가 제목을 가리는 문제는 2장의
  html { scroll-padding-top } 이 이미 처리하므로 여기서 따로 여백을 주지 않습니다.
*/
.biz {
  display: grid;
  /* 블록 사이 간격은 블록 안의 사진-글 간격(sp-5)보다 뚜렷하게 넓게 둔다.
     같으면 사진·글·사진·글이 끝없이 이어지는 한 덩어리로 보인다 */
  gap: var(--sp-8);
}

/* 좁은 화면(960px 미만): 사진 위 · 글 아래로 쌓는다.
   이 폭에서는 좌우 번갈이를 적용하지 않는다 — 한 칸뿐이라 뒤집을 좌우가 없고,
   억지로 순서를 바꾸면 사업마다 사진이 위/아래로 들쭉날쭉해 보인다 */
.biz__item {
  display: grid;
  gap: var(--sp-5);
}

/*
  사진 자리. 사진 파일이 없으면 img 가 숨겨지고 아래 그라데이션 면이 그대로 보인다.
  aspect-ratio 로 높이를 미리 정해 두므로 사진이 없어도 블록 높이가 무너지지 않는다.
  (깨진 그림 아이콘도 뜨지 않는다 — img 의 onerror 가 자기를 숨긴다)
*/
.biz__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-teal) 55%, var(--c-green) 100%);
}
.biz__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
  사진이 없을 때 세 블록이 똑같은 색이면 어느 사업인지 구분이 안 된다.
  로고의 세 가지 색을 하나씩 주인공으로 삼아 블록마다 다르게 깔아 준다.
  순서(컨설팅·출판·양조)를 기준으로 하므로, 블록 순서를 바꾸면 색도 따라 바뀐다.
  사진 파일을 넣으면 이 면은 사진에 가려지므로 신경 쓰지 않아도 된다.
*/
.biz__item:nth-of-type(1) .biz__media {   /* 컨설팅 — 파랑 */
  background: linear-gradient(135deg, var(--c-blue-dk) 0%, var(--c-blue) 55%, var(--c-teal) 100%);
}
.biz__item:nth-of-type(2) .biz__media {   /* 출판 — 청록 */
  background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-teal-dk) 55%, var(--c-green) 100%);
}
.biz__item:nth-of-type(3) .biz__media {   /* 양조 — 딥그린 */
  background: linear-gradient(135deg, var(--c-green-dk) 0%, var(--c-green) 50%, var(--c-teal) 100%);
}

/* 아이콘 색도 블록 색을 따라가게 해 구분을 한 번 더 준다 */
.biz__item:nth-of-type(2) .biz__icon { color: var(--c-teal-dk); }
.biz__item:nth-of-type(3) .biz__icon { color: var(--c-green); }

/*
  아이콘 + (영문 / 한글 제목)을 한 줄에 둔다.
  카드에서는 아이콘을 사진 아래쪽에 걸쳐 놓았지만, 블록의 사진은 훨씬 커서
  그 위에 작은 아이콘을 얹으면 장식인지 버튼인지 모르게 묻힌다. 그래서 글 쪽으로 옮겼다.
*/
.biz__heading {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.biz__icon {
  flex: none;               /* 제목이 두 줄로 늘어나도 아이콘이 납작해지지 않게 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-7);
  height: var(--sp-7);
  border: var(--bw) solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg);  /* 이 구역 배경(--c-surface)과 달라야 아이콘 칸이 떠 보인다 */
  color: var(--c-blue);
  box-shadow: var(--sh-sm);
}
.biz__icon svg { width: var(--sp-5); height: var(--sp-5); }

/* 영문 한 줄과 한글 제목은 한 덩어리로 붙여 읽히게 두므로
   본문 줄간격(1.75)이 아니라 좁은 줄간격을 쓴다 */
.biz__en {
  color: var(--c-blue);
  font-family: var(--font-serif);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-snug);
  text-transform: uppercase;
}
.biz__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

/* 카드 때보다 글 폭이 넓어졌으므로 본문도 한 단계 키운다(회사 소개 .prose 와 같은 크기).
   좁은 카드에 맞춰 둔 14px 를 그대로 쓰면 넓은 화면에서 설명이 각주처럼 작아 보인다 */
.biz__desc {
  margin-top: var(--sp-4);
  color: var(--c-muted);
  font-size: var(--fs-md);
}

.biz__list { margin-top: var(--sp-5); display: grid; gap: var(--sp-2); }
.biz__list li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}
/* 대표 소개의 약력 목록과 같은 점 표시 — "같은 종류의 목록"으로 읽히게 한다.
   top 은 "한 줄 높이(16px x 1.75 = 28px)의 절반 - 점 높이(8px)의 절반" = 10px 자리.
   토큰에 없는 10 을 직접 적지 않으려고 sp-3(12) - sp-1(4)/2 로 만든다 */
.biz__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--sp-3) - var(--sp-1) / 2);
  width: var(--sp-2);
  height: var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--c-teal);
}

/* ========================================================================
   9. 진행 절차
   ======================================================================== */
/*
  좁은 화면에서는 세로로 쌓이고 960px 부터 가로 4칸이 됩니다(15장).
  칸과 칸을 잇는 연결선(::after)은 "칸 사이 빈틈(gap)" 안에만 그립니다.
  칸 밖으로 길이를 계산해 뻗으면 좁은 화면에서 가로 스크롤이 생기기 때문입니다.
*/
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.step {
  position: relative;
  padding: var(--sp-5);
  border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
/* 연결선. 마지막 단계 뒤에는 이어질 곳이 없으므로 그리지 않는다 */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% - var(--bw-thick) / 2);
  top: 100%;
  width: var(--bw-thick);
  height: var(--sp-5);        /* 위 .steps 의 gap 과 같은 값이어야 빈틈이 정확히 메워진다 */
  background: var(--c-teal);  /* 청록은 장식 전용 색이라 이런 선에만 쓴다 */
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-7);
  height: var(--sp-7);
  border-radius: var(--r-pill);
  background: var(--c-blue);
  color: var(--c-on-dark);
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}
.step__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}
.step__desc { margin-top: var(--sp-2); color: var(--c-muted); font-size: var(--fs-sm); }

/* ========================================================================
   9-1. 협력사 — 함께한 기관
   (뒤 장 번호를 밀면 다른 곳에 적어 둔 "15장" 같은 표기가 어긋나므로 9-1 로 둡니다)
   ======================================================================== */
/*
  칸 수를 auto-fit 에 맡기지 않고 직접 정합니다. 기관이 여섯 곳인데 넓은 화면에서
  일곱 칸이 생기면 로고가 왼쪽에만 몰려 "한 칸이 빠진 것"처럼 보입니다.
  (실적 숫자 .stats 에서 이미 겪은 문제입니다 — 7장)
  좁은 화면은 2칸, 640px 부터 3칸입니다(15장).
*/
.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

/*
  이 구역 배경이 연회색(--c-surface)이라 칸은 흰 면으로 띄웁니다.
  높이를 미리 잡아 두는 이유: 로고가 들어온 칸과 글자만 있는 칸이 섞여 있어도
  줄 높이가 흔들리지 않아야 하기 때문입니다(로고 파일은 하나씩 채워질 수 있습니다).
*/
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sp-9);
  padding: var(--sp-4) var(--sp-3);
  border: var(--bw) solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg);
  text-align: center;
}

/*
  기관 로고는 가로로 긴 것·정사각에 가까운 것이 섞여 들어오므로 높이를 한 값으로 묶습니다.
  width:100% 와 max-height 만 주면 세로로 긴 로고가 가로로 늘어나 찌그러지기 때문에
  object-fit: contain 으로 칸 안에 비율 그대로 담습니다.
  (파일이 없을 때는 HTML 의 hidden 때문에 아예 보이지 않습니다 — 2장의 [hidden] 규칙)
*/
.partner__logo {
  width: 100%;
  max-height: var(--sp-7);
  object-fit: contain;
}

/* 로고 파일이 없을 때 대신 보이는 기관 이름. 글자색은 본문색을 그대로 물려받습니다 */
.partner__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

/*
  로고 그림이 실제로 불린 칸에서만 글자를 감춥니다
  (has-logo 는 index.html 의 img onload 가 붙입니다).

  display:none 으로 지우지 않고 "눈에만 안 보이게" 두는 이유:
  그렇게 지우면 화면을 못 보는 분에게 그 칸이 이름 없는 그림 하나로만 남습니다.
  로고 파일을 넣는 사람이 alt 를 적어 주면 해결되지만, 그건 잊기 쉬운 일이라
  기관 이름을 글자로 남겨 두어 누가 무엇을 하든 이름이 읽히게 합니다.
*/
.partner.has-logo .partner__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 로고 사용 승인 고지. 본문보다 작고 흐리게 두되,
   연회색 배경 위 대비 5.4:1 로 본문 기준(4.5:1)은 넘기는 색을 씁니다 */
.partners__note {
  margin-top: var(--sp-4);
  color: var(--c-muted);
  font-size: var(--fs-xs);
}

/* ========================================================================
   10. 연락처
   ======================================================================== */
.contact-list {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.contact-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: var(--bw) solid var(--c-line);
}
.contact-list__label {
  min-width: var(--sp-8);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}
.contact-list__value { font-size: var(--fs-md); font-weight: var(--fw-medium); }

.contact-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ========================================================================
   11. 푸터
   ======================================================================== */
.footer {
  padding-block: var(--sp-8);
  background: var(--c-green);
  color: var(--c-on-dark);
}
.footer__inner { display: grid; gap: var(--sp-5); }
.footer__logo {
  width: calc(var(--container-narrow) / 3);
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
}
.footer__info { display: grid; gap: var(--sp-2); color: var(--c-on-dark-muted); font-size: var(--fs-sm); }
.footer__info li { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.footer__info a { color: var(--c-on-dark); }
.footer__label { min-width: var(--sp-9); color: var(--c-on-dark); font-weight: var(--fw-bold); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__links a { color: var(--c-on-dark); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.footer__copy {
  padding-top: var(--sp-4);
  border-top: var(--bw) solid var(--c-white-a20);
  color: var(--c-on-dark-muted);
  font-size: var(--fs-xs);
}

/* ========================================================================
   12. 화면 우측 아래 고정 버튼
   ======================================================================== */
/*
  햄버거 메뉴가 열려 있는 동안에는 화면 우측 하단 버튼을 숨긴다.
  320px 처럼 좁고 낮은 화면에서는 펼쳐진 메뉴의 「상담 문의」 버튼과 겹쳐,
  버튼 오른쪽 끝을 누르면 챗봇 대신 카카오톡이 열리기 때문이다.
*/
.nav.is-open ~ .floating { display: none; }

.floating {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: var(--z-float);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.floating__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--float-size);
  height: var(--float-size);
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.floating__btn:hover { transform: translateY(calc(-1 * var(--sp-1))); }
.floating__btn svg { width: var(--sp-6); height: var(--sp-6); }
.floating__btn--kakao { background: var(--c-kakao); color: var(--c-kakao-ink); }
.floating__btn--chat { background: var(--c-blue); color: var(--c-on-dark); }

/* 챗봇이 열려 있는 동안에는 가려지지 않도록 플로팅 버튼을 숨긴다 */
body.chat-open .floating { visibility: hidden; }

/* 문의 창이 열려 있을 때 뒤쪽 페이지가 같이 스크롤되지 않게 고정한다 */
body.chat-open { overflow: hidden; }

/* ========================================================================
   13. 문의 챗봇
   ======================================================================== */
.chat { position: fixed; inset: 0; z-index: var(--z-chat); display: flex; }
.chat__backdrop { position: absolute; inset: 0; background: var(--c-overlay); }

.chat__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  margin-top: auto;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--c-bg);
  box-shadow: var(--sh-lg);
}

.chat__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-green);
  color: var(--c-on-dark);
}
.chat__avatar { width: var(--sp-6); height: var(--sp-6); border-radius: var(--r-sm); }
.chat__headtext { flex: 1; min-width: 0; }
.chat__title { font-size: var(--fs-base); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.chat__sub { color: var(--c-on-dark-muted); font-size: var(--fs-xs); line-height: var(--lh-snug); }
/* 닫기 버튼은 잘못 누르면 작성 내용을 잃는 자리이므로 손가락 크기(44px)를 확보한다 */
.chat__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-on-dark);
  cursor: pointer;
}
.chat__close svg { width: var(--sp-6); height: var(--sp-6); }

.chat__log {
  flex: 1;
  min-height: var(--sp-9);
  padding: var(--sp-5);
  overflow-y: auto;
  background: var(--c-surface);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}

/* 말풍선 */
.msg { display: flex; }
.msg--bot { justify-content: flex-start; }
.msg--user { justify-content: flex-end; }
.msg__bubble {
  max-width: 85%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  white-space: pre-wrap;
}
.msg--bot .msg__bubble {
  border: var(--bw) solid var(--c-line);
  border-top-left-radius: var(--r-sm);
  background: var(--c-bg);
  color: var(--c-ink);
}
.msg--user .msg__bubble {
  border-top-right-radius: var(--r-sm);
  background: var(--c-blue);
  color: var(--c-on-dark);
}
.msg--error .msg__bubble { border-color: var(--c-danger); color: var(--c-danger); }

.chat__input {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  border-top: var(--bw) solid var(--c-line);
  background: var(--c-bg);
}
.chat__choices { display: grid; gap: var(--sp-2); }
.chat__row { display: flex; gap: var(--sp-2); align-items: flex-end; }
/* 챗봇의 '보내기'는 문의가 걸린 버튼이라 다른 작은 버튼보다 크게 둔다 */
.chat__row .btn { flex: none; min-height: var(--tap-min); }

.field {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: var(--bw) solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: inherit;
  font-size: var(--fs-base);   /* 16px 미만이면 iOS 에서 입력 시 화면이 확대된다 */
  line-height: var(--lh-snug);
}
.field:focus { border-color: var(--c-blue); }
textarea.field { min-height: var(--sp-9); resize: vertical; }

/* 전송이 막혔을 때 보여 주는 "작성한 내용" 칸.
   읽기 전용이라는 것이 보이도록 배경을 눌러 둔다(입력칸으로 착각하지 않게) */
.chat__summary { background: var(--c-surface); color: var(--c-muted); }

.consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); }
.consent input { width: var(--sp-5); height: var(--sp-5); margin: 0; flex: none; accent-color: var(--c-blue); }
.chat__hint { color: var(--c-muted); font-size: var(--fs-xs); line-height: var(--lh-snug); }
.chat__hint--alert { color: var(--c-danger); font-weight: var(--fw-bold); }

/* 숨은 스팸 방지 칸 — 화면 밖으로 밀어 두되 display:none 은 피한다(로봇이 눈치채지 못하게) */
.chat__honeypot {
  position: absolute;
  left: var(--offscreen);
  width: var(--bw);
  height: var(--bw);
  opacity: 0;
}

/* ========================================================================
   14. 개인정보처리방침 등 글 위주 페이지
   ======================================================================== */
.legal { padding-top: calc(var(--nav-h) + var(--sp-7)); padding-bottom: var(--sp-8); }
.legal__title { font-size: var(--fs-3xl); font-weight: var(--fw-black); line-height: var(--lh-tight); }
.legal__updated { margin-top: var(--sp-2); color: var(--c-muted); font-size: var(--fs-sm); }
.legal__note {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border-left: var(--bw-thick) solid var(--c-teal);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.legal h2 {
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}
.legal p { color: var(--c-muted); font-size: var(--fs-base); }
.legal p + p,
.legal ul + p,
.legal table + p { margin-top: var(--sp-4); }
.legal ul { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); color: var(--c-muted); }
/* 연락처 목록(.contact-list)은 아래 글머리표 규칙에서 빼야 점이 겹쳐 찍히지 않는다 */
.legal ul:not(.contact-list) li { position: relative; padding-left: var(--sp-5); }
.legal ul:not(.contact-list) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--sp-3) - var(--sp-1) / 2);
  width: var(--sp-2);
  height: var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--c-teal);
}
/* table-layout: fixed 를 주어야 좁은 화면(375px)에서 표가 가로로 삐져나가지 않는다 */
.legal__table {
  width: 100%;
  margin-top: var(--sp-3);
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--fs-sm);
}
.legal__table th,
.legal__table td {
  padding: var(--sp-3);
  border: var(--bw) solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.legal__table th { background: var(--c-surface); font-weight: var(--fw-bold); }
.legal__back { display: inline-flex; margin-top: var(--sp-7); font-weight: var(--fw-bold); }

/* ========================================================================
   15. 넓은 화면 대응 (640 / 960 / 1200)
   ======================================================================== */
@media (max-width: 959px) {
  /* 좁은 화면: 메뉴를 햄버거 안으로 접어 넣는다 */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--gutter) var(--sp-5);
    border-bottom: var(--bw) solid var(--c-line);
    background: var(--c-bg);
    box-shadow: var(--sh-md);
    display: none;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu .nav__link { color: var(--c-ink); font-size: var(--fs-base); padding-block: var(--sp-3); }
  .nav__menu .nav__cta { margin-top: var(--sp-2); }

  /*
    안전장치. 메뉴 줄이 여섯 개로 늘어난 뒤에도 세로 568px(아이폰 SE) 화면까지는
    「상담 문의」까지 다 들어오지만, 화면을 가로로 눕히면(세로 375px 등) 넘친다.
    메뉴는 position:fixed 인 헤더 안에 있어 넘친 부분이 페이지 스크롤로는 닿지 않으므로,
    남은 높이만큼만 쓰고 그 안에서 스크롤되게 한다.
    (-webkit-overflow-scrolling 없이도 iOS 에서 동작한다)
  */
  .nav__menu {
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;   /* 메뉴 끝까지 스크롤해도 뒤 본문이 따라 밀리지 않게 */
  }
}

@media (min-width: 640px) {
  /* 대표 소개: 사진을 왼쪽, 글을 오른쪽으로. 사진 폭은 그대로 두고 글만 늘어난다 */
  .profile {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: var(--sp-6);
  }

  /* 실적 숫자 세 개가 한 줄에 나란히 선다 */
  .stats { grid-template-columns: repeat(3, 1fr); }

  /* 협력사: 2칸 → 3칸. 여섯 곳이 2줄 × 3칸으로 정확히 맞아 빈 칸이 남지 않는다 */
  .partners { grid-template-columns: repeat(3, 1fr); }

  .chat__panel {
    width: var(--chat-w);
    max-width: calc(100% - var(--sp-6));
    height: var(--chat-h);
    max-height: calc(100% - var(--sp-6));
    margin: auto var(--sp-5) var(--sp-5) auto;
    border-radius: var(--r-lg);
  }
  .footer__inner { gap: var(--sp-6); }
}

@media (min-width: 960px) {
  :root { --nav-h: 76px; --gutter: var(--sp-6); }
  .section { padding-block: var(--sp-9); }
  .section__title { font-size: var(--fs-3xl); }
  .hero { padding-top: calc(var(--nav-h) + var(--sp-9)); padding-bottom: var(--sp-9); }
  /*
    사업 영역: 블록 안을 "사진 | 글" 두 칸으로 벌리고, 블록 사이는 한 단계 더 띄운다.
    사진과 글을 세로 가운데로 맞추는 이유는 글 길이가 사업마다 달라서다
    (양조 설명이 가장 짧은데, 위로 붙이면 사진 옆에 빈 아래쪽이 크게 남는다).
  */
  .biz { gap: var(--sp-9); }
  .biz__item {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: var(--sp-7);
  }
  /*
    좌우 번갈이 — 컨설팅=사진 왼쪽 / 출판=사진 오른쪽 / 양조=사진 왼쪽.
    가운데(출판)만 자리를 바꾸면 되므로 두 번째 블록에만 규칙을 준다.
    flex-direction:row-reverse 나 order 대신 grid 칸 번호를 직접 적은 이유는
    HTML 순서를 "사진 → 글" 그대로 두고 보이는 자리만 바꾸기 때문이다
    (스크린리더·키보드 Tab 은 어느 블록에서나 같은 순서로 읽는다).
  */
  .biz__item:nth-of-type(2) .biz__media { grid-column: 2; grid-row: 1; }
  .biz__item:nth-of-type(2) .biz__body  { grid-column: 1; grid-row: 1; }

  /* 넓은 화면에서는 대표 사진도 한 단계 키운다(96×2=192px) */
  .profile__media { width: calc(var(--sp-9) * 2); }

  /* 진행 절차: 4단계를 가로로 늘어놓고, 연결선도 가로로 눕힌다 */
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
  .step:not(:last-child)::after {
    left: 100%;
    top: calc(50% - var(--bw-thick) / 2);
    width: var(--sp-6);        /* 위 .steps 의 gap 과 같은 값 */
    height: var(--bw-thick);
  }
  .footer__inner {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: var(--sp-8);
  }
  .footer__logo { grid-row: span 3; }
  .floating { right: var(--sp-6); bottom: var(--sp-6); }
}

@media (min-width: 1200px) {
  .prose { font-size: var(--fs-lg); }
}

/* ========================================================================
   16. 움직임 최소화 설정을 켠 사용자
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
