/* 바른오피스 홈페이지
   모양 규칙: 둥근 모서리 없음. 버튼·타일·사진 모두 직각이고, 타일과 사진은 1:1 정사각형.
   포인트 색은 로고의 블루 하나만 쓴다. */

:root {
  --bg: #FAFBFD;
  --surface: #FFFFFF;
  --tint: #F1F5FB;
  --ink: #333D4B;
  --ink-2: #5C6880;
  --ink-3: #5F6C84;
  --line: #DFE6F0;
  --navy: #002B83;
  --accent: #0B5FE8;
  --accent-hover: #084DC2;
  --accent-on-dark: #8FC0FF;
  --night: #0B1422;
  --hd-h: 72px;
  --gutter: clamp(24px, 6.4vw, 88px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b { font-weight: 700; }

h1, h2, h3 { color: var(--ink); font-weight: 300; letter-spacing: -.025em; line-height: 1.36; }
h2 { font-size: clamp(23px, 2.4vw, 32px); }
h2 b, h3 b { font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 24px;
  background: var(--accent); color: #fff;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn i { font-size: 19px; }
.btn--sm { height: 38px; padding: 0 17px; font-size: 14px; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #E8F0FF; }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

/* 헤더 */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd-h); transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.hd__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hd__logo { position: relative; display: block; flex: none; height: 34px; aspect-ratio: 1657 / 385; }
.hd__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s var(--ease); }
.hd__logo-color { opacity: 0; }
.hd__nav { display: flex; align-items: center; gap: 34px; }
.hd__nav a:not(.btn) { color: rgba(255, 255, 255, .9); font-size: 14.5px; font-weight: 500; padding: 8px 0; transition: color .2s; }
.hd__nav a:not(.btn):hover { color: #fff; }
.hd__nav a[aria-current="page"]:not(.btn) { color: #fff; box-shadow: inset 0 -2px 0 currentColor; }
.hd__menu { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: #fff; font-size: 26px; cursor: pointer; }

.hd.is-solid { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hd.is-solid .hd__logo-white { opacity: 0; }
.hd.is-solid .hd__logo-color { opacity: 1; }
.hd.is-solid .hd__nav a:not(.btn) { color: var(--ink); }
.hd.is-solid .hd__nav a:not(.btn):hover { color: var(--accent); }
.hd.is-solid .hd__nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.hd.is-solid .hd__menu { color: var(--ink); }

/* 히어로 */
.hero { position: relative; min-height: clamp(500px, 76dvh, 740px); display: flex; align-items: flex-end; background: var(--night); isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(3, 7, 18, .95) 0%, rgba(5, 12, 32, .8) 48%, rgba(8, 20, 52, .5) 100%), linear-gradient(0deg, rgba(3, 7, 18, .6) 0%, rgba(3, 7, 18, 0) 45%); }
.hero__in { padding-top: calc(var(--hd-h) + 40px); padding-bottom: clamp(48px, 9vh, 92px); }
.hero h1 { color: #fff; font-weight: 200; font-size: clamp(32px, 4vw, 54px); line-height: 1.26; letter-spacing: -.035em; }
.hero h1 b { font-weight: 700; }
.br-m { display: none; }
@media (max-width: 860px) { .br-d { display: none; } }
.hero p { margin-top: clamp(20px, 2.6vw, 32px); color: rgba(255, 255, 255, .6); font-size: clamp(15px, 1.15vw, 16.5px); font-weight: 300; line-height: 1.8; }
.hero p b { color: rgba(255, 255, 255, .78); font-weight: 500; }
.hero .hero__areas { color: #fff; font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.02em; line-height: 1.5; }
.hero .hero__areas + p { margin-top: 10px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__in > * { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
  .js .hero__in > :nth-child(2) { animation-delay: .12s; }
  .js .hero__in > :nth-child(3) { animation-delay: .2s; }
  .js .hero__in > :nth-child(4) { animation-delay: .3s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* 서브 페이지 상단 배너 */
.phero { position: relative; display: flex; align-items: flex-end; min-height: clamp(280px, 44vh, 420px); background: var(--night); isolation: isolate; overflow: hidden; }
.phero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(3, 7, 18, .96) 0%, rgba(5, 12, 32, .84) 52%, rgba(8, 20, 52, .62) 100%); }
.phero__in { padding-top: calc(var(--hd-h) + 48px); padding-bottom: clamp(40px, 5.6vw, 68px); }
.phero h1 { color: #fff; font-weight: 700; font-size: clamp(27px, 3.1vw, 40px); line-height: 1.25; letter-spacing: -.03em; }
.phero p { margin-top: 16px; max-width: 60ch; color: rgba(255, 255, 255, .64); font-size: clamp(15px, 1.1vw, 16px); font-weight: 300; line-height: 1.8; }
@media (prefers-reduced-motion: no-preference) {
  .js .phero__in > * { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
  .js .phero__in > :nth-child(2) { animation-delay: .1s; }
}

/* 섹션 공통 */
.sec { padding-block: clamp(84px, 11vw, 152px); scroll-margin-top: calc(var(--hd-h) - 8px); }

.sec--tight { padding-top: 0; }
.sh { max-width: 780px; margin-bottom: clamp(40px, 5.2vw, 68px); }
.lead { margin-top: 18px; max-width: 62ch; font-size: clamp(15px, 1.1vw, 16px); line-height: 1.85; }
.lead b { color: var(--ink); font-weight: 600; }

/* 더 보기 링크 */
.more { margin-top: clamp(28px, 3.4vw, 44px); }
.tlink { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: var(--accent); font-size: 14.5px; font-weight: 600; transition: color .2s; }
.tlink:hover { color: var(--accent-hover); }

/* 문의 페이지 */
.ct { display: flex; justify-content: center; }
.sec--chat { padding-block: clamp(32px, 4.4vw, 60px) clamp(48px, 6vw, 84px); }

/* 수행 분야 모듈: 옅은 회색 정사각형 타일, 왼쪽 위 제목 + 오른쪽 아래 손그림. 누르면 상세 페이지로 간다 */
/* 수행 분야 모듈: AX 컨설팅·AI 솔루션은 크게(윗줄), 아랫줄은 업무 자동화가 넓고 서비스 개발이 가장 작게. 살짝 둥근 모서리. 누르면 상세 페이지로 간다 */
.mods { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.mod { position: relative; display: block; grid-column: span 6; min-height: clamp(250px, 26vw, 330px); overflow: hidden; border-radius: 6px; padding: clamp(16px, 2vw, 28px); background: #F0F2F5; transition: background-color .3s var(--ease); }
.mod:nth-child(2) img { max-width: 55%; }
.mod:nth-child(3) { grid-column: span 7; min-height: clamp(160px, 15vw, 200px); }
.mod:nth-child(4) { grid-column: span 5; min-height: clamp(160px, 15vw, 200px); }
.mod h3 { color: var(--ink); font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; }
.mod p { margin-top: 6px; max-width: 38%; color: var(--ink-2); font-size: 14px; font-weight: 300; line-height: 1.6; }
.mod img { position: absolute; right: 5%; bottom: 0; width: auto; height: 80%; max-width: 62%; object-fit: contain; object-position: right bottom; transition: transform .5s var(--ease); }
@media (max-width: 1240px) {
  .mod:nth-child(4) p { display: none; }
  .mod:nth-child(4) img { height: 70%; max-width: 48%; }
}
@media (hover: hover) {
  .mod:hover { background: #E6EAF0; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mod:hover img { transform: translateY(-6px); }
}

/* 분야 상세 페이지 (밝은 페이지: 헤더가 처음부터 흰색) */
.dhero { padding-top: calc(var(--hd-h) + clamp(44px, 5.4vw, 80px)); }
.dhero__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.dhero h1 { font-size: clamp(27px, 2.7vw, 36px); font-weight: 300; line-height: 1.32; }
.dhero h1 b { font-weight: 700; }
.dhero__art { width: auto; height: clamp(170px, 19vw, 250px); }
.dsec { padding-top: clamp(36px, 4.4vw, 60px); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #ECEEF1; }
.tabs button { height: 54px; padding: 0 12px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14.5px; cursor: pointer; transition: background-color .2s, color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: #5A6476; color: #fff; font-weight: 600; }
.tp { padding-top: clamp(40px, 4.8vw, 64px); }
.tp[hidden] { display: none; }
.tp h2 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; }
.tp__def { margin-top: 16px; max-width: 72ch; }
.tp__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5.4vw, 88px); margin-top: clamp(36px, 4.4vw, 60px); }
.tp__cols h3 { font-size: clamp(16.5px, 1.35vw, 18px); font-weight: 700; }
.tp__cols p { margin-top: 14px; }
.tp__cols ul { margin-top: 14px; display: grid; gap: 4px; }
.tp__cols li { position: relative; padding-left: 14px; }
.tp__cols li::before { content: ""; position: absolute; left: 0; top: .78em; width: 4px; height: 4px; background: var(--ink-3); }
.tp__case { margin-top: clamp(28px, 3.4vw, 44px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px; }
.tp__case .tlink { margin-left: 10px; font-size: 15px; }
.flow { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(84px, 10vw, 136px); border-top: 1px solid var(--line); }
.flow h2 { font-weight: 300; }
/* 단계 타일: 회색 네모 칸 안에 제목·설명(왼쪽 위)과 그림(오른쪽 아래)을 함께 넣는다 */
.flow__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 52px); }
.stile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; padding: clamp(14px, 1.5vw, 22px); background: #F0F2F5; }
.stile h3 { color: var(--ink); font-size: clamp(15px, 1.25vw, 17px); font-weight: 700; }
.stile p { margin-top: 5px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.stile img { position: absolute; right: 6%; bottom: 5%; width: auto; height: 52%; aspect-ratio: 1 / 1; object-fit: contain; }
@media (min-width: 861px) and (max-width: 1040px) {
  .flow__list .stile p { display: none; }
  .flow__list .stile img { height: 62%; }
}

/* 진행 과정 페이지의 다섯 단계: 크기가 다른 칸(위 2칸은 넓게, 아래 3칸은 좁게), 제목 + 얇은 설명 + 그림 */
.pflow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pflow .stile { grid-column: span 2; display: flex; flex-direction: column; aspect-ratio: auto; min-height: clamp(250px, 26vw, 320px); padding: clamp(18px, 2vw, 28px); }
.pflow .stile h3 { font-size: clamp(16px, 1.45vw, 19px); }
.pflow .stile p { margin-top: 8px; color: var(--ink-2); font-size: 14px; font-weight: 300; line-height: 1.65; }
.pflow .stile img { position: static; align-self: flex-end; width: clamp(150px, 72%, 225px); height: auto; margin-top: auto; padding-top: 10px; }
.pflow .stile:nth-child(-n+2) { grid-column: span 3; }
.pflow .stile:nth-child(-n+2) p { max-width: 44%; }
.pflow .stile:nth-child(-n+2) img { position: absolute; right: 5%; bottom: 6%; width: auto; height: 76%; margin: 0; padding: 0; }

@media (max-width: 1240px) {
  .pflow .stile:nth-child(-n+2) img { height: 68%; }
}

.more-mods { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: clamp(40px, 5vw, 64px); }
.more-mods span { margin-right: 6px; color: var(--ink-3); font-size: 14.5px; }
.more-mods a { padding: 9px 16px; background: #F0F2F5; color: var(--ink); font-size: 15px; font-weight: 500; transition: background-color .2s; }
.more-mods a:hover { background: #E6EAF0; }

/* 수행 사례: 같은 크기의 정사각형 타일 */
.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.case { position: relative; grid-column: span 4; min-height: clamp(300px, 27vw, 360px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-radius: 6px; background: var(--night); color: #fff; }
/* 줄마다 칸 폭과 높이를 다르게: 7·5 / 3·5·4 / 5·7 / 8·4 */
.case:nth-child(9n+1), .case:nth-child(9n+7) { grid-column: span 7; }
.case:nth-child(9n+2), .case:nth-child(9n+4), .case:nth-child(9n+6) { grid-column: span 5; }
.case:nth-child(9n+3) { grid-column: span 3; }
.case:nth-child(9n+8) { grid-column: span 8; }
.case:nth-child(9n+1), .case:nth-child(9n+2) { min-height: clamp(300px, 30vw, 400px); }
.case:nth-child(9n+3), .case:nth-child(9n+4), .case:nth-child(9n+5) { min-height: clamp(230px, 22vw, 300px); }
.case:nth-child(9n+6), .case:nth-child(9n+7) { min-height: clamp(270px, 26vw, 350px); }
.case:nth-child(9n+8), .case:nth-child(9n+9) { min-height: clamp(220px, 21vw, 280px); }
.cases--home .case:nth-child(n) { min-height: clamp(260px, 27vw, 360px); }
.cases--home .case:nth-child(1) { grid-column: span 5; }
.cases--home .case:nth-child(2) { grid-column: span 4; }
.cases--home .case:nth-child(3) { grid-column: span 3; }
.case__body { max-width: 560px; }
.case__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 12, 30, .3) 0%, rgba(4, 10, 26, .8) 44%, rgba(3, 7, 18, .97) 100%); }
.case__body { width: 100%; padding: clamp(16px, 2.4vw, 32px); }
.case__cat { color: rgba(255, 255, 255, .78); font-size: 13px; font-weight: 500; }
.case h3 { margin-top: 8px; color: #fff; font-size: clamp(17.5px, 1.5vw, 20.5px); line-height: 1.36; text-wrap: balance; }
.case__desc { margin-top: 12px; color: rgba(255, 255, 255, .64); font-size: 13.5px; font-weight: 300; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case__pts { margin-top: 12px; color: var(--accent-on-dark); font-size: 12.5px; font-weight: 500; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case__when { margin-top: 12px; color: rgba(255, 255, 255, .5); font-size: 12.5px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .case:hover .case__bg { transform: scale(1.045); }
}

/* 사례 상세 창: 타일을 누르면 뜨는 작은 창 */
.case[data-case] { cursor: pointer; }
.case[data-case]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cmodal { width: min(900px, calc(100% - 32px)); max-height: min(88dvh, 700px); padding: 0; border: 0; background: var(--surface); color: var(--ink-2); overflow: hidden; }
.cmodal::backdrop { background: rgba(6, 10, 22, .64); }
.cmodal[open] { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.cmodal__img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; background: var(--night); }
.cmodal__body { max-height: min(88dvh, 700px); padding: clamp(26px, 3.2vw, 44px) clamp(22px, 3vw, 40px); overflow-y: auto; }
.cmodal__cat { color: var(--ink-3); font-size: 13.5px; }
.cmodal h2 { margin-top: 8px; padding-right: 28px; font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; line-height: 1.4; }
.cmodal h3 { margin-top: 24px; color: var(--ink); font-size: 14px; font-weight: 700; }
.cmodal p { margin-top: 8px; font-size: 14.5px; line-height: 1.75; }
.cmodal ul { margin-top: 8px; display: grid; gap: 4px; }
.cmodal li { position: relative; padding-left: 13px; font-size: 14.5px; line-height: 1.7; }
.cmodal li::before { content: ""; position: absolute; left: 0; top: .78em; width: 4px; height: 4px; background: var(--accent); }
.cmodal__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.cmodal__meta dt { color: var(--ink-3); }
.cmodal__meta dd { color: var(--ink); }
.cmodal__cta { margin-top: 22px; }
.cmodal__close { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: var(--ink); color: #fff; font-size: 20px; cursor: pointer; }
.cmodal__close:hover { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .cmodal[open] { animation: cmodal-in .28s var(--ease); }
  .cmodal[open]::backdrop { animation: cmodal-fade .28s ease; }
}
@keyframes cmodal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cmodal-fade { from { opacity: 0; } to { opacity: 1; } }

/* 일하는 원칙 */
.pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6.4vw, 96px); align-items: start; }
.pr__head { position: sticky; top: calc(var(--hd-h) + 40px); }
.pr__list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid #CFD9E8; }
.pr__list li:first-child { padding-top: 0; border-top: 0; }
.pr__list li:last-child { padding-bottom: 0; }
.pr__no { color: var(--accent); font-size: 16px; font-weight: 600; line-height: 36px; }
.pr__list h3 { font-size: clamp(18px, 1.55vw, 21px); }
.pr__list p { margin-top: 12px; max-width: 46ch; }

/* 진행 방식: 정사각형 사진 + 번호 캡션 (상세 페이지의 진행 과정과 같은 모양) */

/* 마무리와 인계: 사진 없이 세 칸 글 */
.hov { padding-top: clamp(60px, 7.4vw, 100px); border-top: 1px solid var(--line); }
.hov__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.6vw, 52px); }
.hov__list div { padding-top: 20px; border-top: 2px solid var(--ink); }
.hov__list dt { color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.hov__list dd { margin-top: 10px; font-size: 14.5px; line-height: 1.75; }

/* 문의 */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; text-align: center; scroll-margin-top: var(--hd-h); }
.closing__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 7, 18, .84) 0%, rgba(6, 15, 40, .78) 100%); }
.closing__in { padding-block: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; align-items: center; }
.closing__sym { width: 76px; height: 76px; filter: brightness(1.35) saturate(1.1); }
.closing h2 { margin-top: 28px; color: #fff; font-weight: 300; font-size: clamp(25px, 3vw, 40px); }
.closing h2 b { font-weight: 700; }
.closing p { margin-top: clamp(18px, 2vw, 26px); color: rgba(255, 255, 255, .66); font-size: clamp(16px, 1.4vw, 19px); font-weight: 300; line-height: 1.8; }
.closing p b { color: #fff; font-weight: 700; }
.closing__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(36px, 4.4vw, 52px); }

/* 상담 도우미: 맨 아래 문구 다음에 나오는, 한 화면을 차지하는 채팅 구역. PC는 테두리 있는 창, 휴대폰은 전체화면 */
.chatfull { display: flex; justify-content: center; height: calc(100dvh - var(--hd-h)); min-height: 480px; padding: clamp(22px, 3.4vh, 40px) var(--gutter); scroll-margin-top: var(--hd-h); background: #EEF1F5; view-timeline: --chat block; }
.chat { display: flex; flex-direction: column; width: min(860px, 100%); height: 100%; overflow: hidden; border: 1px solid #D5DCE7; border-radius: 10px; background: #fff; box-shadow: 0 14px 36px rgba(11, 20, 34, .07); color: var(--ink); text-align: left; }
.chat__inner { display: flex; align-items: center; gap: 11px; width: 100%; }
.chat__head { flex: none; padding: 14px 22px; border-bottom: 1px solid #E3E8EF; background: #fff; }
.chat__head img { width: 38px; height: 38px; padding: 5px; border-radius: 50%; background: #EEF3FC; }
.chat__head strong { display: block; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.3; }
.chat__head span { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.chat__log { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; padding: 22px; background: #F6F8FB; }
.chat__row { display: flex; }
.chat__row--me { justify-content: flex-end; }
.chat__msg { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.55; }
.chat__row--bot .chat__msg { border: 1px solid #E3E8EF; border-top-left-radius: 4px; background: #fff; color: var(--ink); }
.chat__row--me .chat__msg { border-top-right-radius: 4px; background: var(--accent); color: #fff; }
.chat__msg a { border-bottom: 1px solid currentColor; color: var(--accent); font-weight: 600; }
.chat__step { margin-right: 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.chat__msg.is-typing { display: flex; gap: 4px; padding: 15px 14px; }
.chat__msg.is-typing span { width: 6px; height: 6px; border-radius: 50%; background: #A9B3C4; animation: typing 1s ease-in-out infinite; }
.chat__msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.chat__msg.is-typing span:nth-child(3) { animation-delay: .3s; }
.chat__opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px; }
.chat__opt { padding: 8px 15px; border: 1px solid #BFD3F8; border-radius: 999px; background: #fff; color: var(--accent); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chat__opt:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.chat__opts--final { max-width: 520px; align-items: center; }
.chat__go, .chat__call { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 10px; font-size: 14.5px; font-weight: 600; transition: background-color .2s; }
.chat__go { background: var(--accent); color: #fff; }
.chat__go:hover { background: var(--accent-hover); }
.chat__call { border: 1px solid #C9D3E2; background: #fff; color: var(--ink); }
.chat__call:hover { background: #EEF2F8; }
.chat__reset { padding: 4px 2px; border: 0; background: none; text-decoration: underline; text-decoration-color: #C2CBDA; text-underline-offset: 4px; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; }
.chat__note { width: 100%; color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
.chat__form { flex: none; padding: 12px 22px; border-top: 1px solid #E3E8EF; background: #fff; }
.chat__form .chat__inner { gap: 8px; }
.chat__input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid #DDE3EC; border-radius: 999px; background: #F6F8FB; color: var(--ink); font: inherit; font-size: 15px; }
.chat__input::placeholder { color: #7C8798; }
.chat__input:focus { border-color: var(--accent); background: #fff; outline: none; }
.chat__send { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.chat__send:hover { background: var(--accent-hover); }
@keyframes typing { 0%, 100% { opacity: .35; translate: 0 0; } 50% { opacity: 1; translate: 0 -3px; } }
@media (prefers-reduced-motion: no-preference) {
  .chat__row, .chat__opts { animation: rise-in .35s var(--ease) both; }
}
.chat--inline { width: min(860px, 100%); height: clamp(500px, 68vh, 660px); }
/* 내려오면서 채팅창이 떠오르며 자리를 잡는다 (지원하는 브라우저에서만) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chatfull .chat { animation: chat-open linear both; animation-timeline: --chat; animation-range: entry 0% entry 80%; }
  }
}
@keyframes chat-open { from { opacity: .3; transform: translateY(48px) scale(.95); } to { opacity: 1; transform: none; } }

/* 푸터 */
.ft { background: var(--surface); border-top: 1px solid var(--line); }
.ft__in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 48px; padding-block: 44px; color: var(--ink-3); font-size: 13.5px; line-height: 1.8; }
.ft__logo { height: 30px; width: auto; }
.ft__info { font-style: normal; }
.ft__info a { color: var(--ink-2); transition: color .2s; }
.ft__info a:hover { color: var(--accent); }
.ft__info span { display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: #C5D2E4; vertical-align: -1px; }
.ft__copy { margin-left: auto; align-self: flex-end; }

/* 스크롤 등장 */
@media (prefers-reduced-motion: no-preference) {
  /* 스크롤 등장: 아래에서 올라오고, 같은 줄의 타일은 차례로(--d) 나타난다 */
  .js .rv { opacity: 0; transform: translateY(30px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--d, 0ms); }
  .js .mod.rv, .js .case.rv, .js .stile.rv { transform: translateY(30px) scale(.965); }
  .js .rv.in { opacity: 1; transform: none; }
  /* 등장이 끝난 타일은 마우스를 올리면 살짝 떠오른다 */
  .js .rv.done { transition: transform .4s var(--ease), background-color .3s var(--ease), box-shadow .4s var(--ease); transition-delay: 0ms; }

  /* 사진 배경이 아주 천천히 커졌다 작아진다 */
  .hero__bg, .phero__bg, .closing__bg { animation: drift 26s ease-in-out infinite alternate; }

  /* 손그림 캐릭터가 느리게 둥실거린다 (칸마다 박자를 다르게) */
  .mod img, .stile img, .dhero__art, .closing__sym { animation: bob 5.6s ease-in-out infinite; }
  .mod:nth-child(2n) img, .stile:nth-child(2n) img { animation-delay: -1.9s; }
  .mod:nth-child(3n) img, .stile:nth-child(3n) img { animation-delay: -3.4s; }

  /* 탭을 바꾸면 내용이 부드럽게 올라온다 */
  .js .tp:not([hidden]) { animation: rise-in .5s var(--ease); }

  /* 버튼은 올리면 살짝 뜬다 */
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(1px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .js .case.done:hover, .js .mod.done:hover, .js .stile.done:hover { transform: translateY(-5px); }
  .js .case.done:hover { box-shadow: 0 18px 40px rgba(11, 20, 34, .22); }
}
@keyframes drift { from { scale: 1; } to { scale: 1.08; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 페이지를 넘길 때 부드럽게 전환 (지원하는 브라우저에서만) */
@view-transition { navigation: auto; }
.hd { view-transition-name: site-header; }

/* 스크롤 진행 표시줄: 맨 위 얇은 선이 읽은 만큼 채워진다 (지원하는 브라우저에서만) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { display: block; position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; scale: 0 1; animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progress { to { scale: 1 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 1120px) {
  .case__when { display: none; }
}

/* 태블릿: 3열 정사각형을 유지하고 글만 줄인다 */
@media (max-width: 1040px) {
  .cases { gap: 12px; }
  .case__desc, .case__when { display: none; }
  .case__body { padding: clamp(14px, 1.8vw, 22px); }
}

/* 모바일 */
@media (max-width: 860px) {
  :root { --hd-h: 64px; }
  body { font-size: 15px; }

  .hd__logo { height: 30px; }
  .hd__menu { display: inline-flex; align-items: center; justify-content: center; }
  .hd__nav { position: absolute; left: 0; right: 0; top: var(--hd-h); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 40px rgba(11, 26, 51, .08); }
  .hd.is-open .hd__nav { display: flex; }
  .hd__nav a:not(.btn), .hd.is-solid .hd__nav a:not(.btn) { color: var(--ink); font-size: 17px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .hd__nav a[aria-current="page"]:not(.btn), .hd.is-solid .hd__nav a[aria-current="page"]:not(.btn) { color: var(--accent); box-shadow: none; }
  .hd__nav .btn { margin-top: 20px; height: 52px; font-size: 16px; }

  .hero__bg { object-position: 68% 50%; }
  .hero__cta .btn { flex: 1 1 auto; }

  .pr, .tp__cols, .hov__list { grid-template-columns: 1fr; }
  .flow__list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mod p { max-width: 30%; font-size: 13px; }
  .pflow { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pflow .stile, .pflow .stile:nth-child(-n+2) { grid-column: auto; min-height: 240px; padding: 18px; }
  .pflow .stile:last-child { grid-column: 1 / -1; }
  .pflow .stile h3 { font-size: 16px; }
  .pflow .stile p, .pflow .stile:nth-child(-n+2) p { max-width: none; font-size: 13.5px; }
  .pflow .stile img, .pflow .stile:nth-child(-n+2) img { position: static; align-self: flex-end; width: clamp(110px, 50%, 170px); height: auto; margin-top: auto; padding-top: 10px; }
  .pflow .stile:nth-child(n+3) img { width: clamp(125px, 58%, 200px); }
  .stile { padding: 12px; }
  .stile h3 { font-size: 14px; }
  .pr__head { position: static; }


  .case__pts { display: none; }
  .case__cat { font-size: 12.5px; }
  .case h3 { margin-top: 5px; font-size: 17px; }

  .ft__copy { margin-left: 0; width: 100%; }
}

@media (max-width: 680px) {
  .chatfull { padding: 0; background: #F6F8FB; }
  .chat { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .chat__head { padding: 12px var(--gutter); }
  .chat__log { padding: 16px var(--gutter); }
  .chat__form { padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); }
  .chat--inline { height: clamp(440px, 68dvh, 540px); border: 1px solid #D5DCE7; border-radius: 10px; }
  .chat--inline .chat__head { padding: 12px 16px; }
  .chat--inline .chat__log { padding: 16px; }
  .chat--inline .chat__form { padding: 10px 16px; }
  .chat__msg { max-width: 86%; font-size: 14.5px; }
  .chat__input { font-size: 16px; }
  .chat__go, .chat__call { flex: 1 1 auto; }
  /* 휴대폰: 진행 과정 다섯 단계는 가로로 긴 칸에 글(왼쪽)과 그림(오른쪽) */
  .pflow { grid-template-columns: 1fr; gap: 10px; }
  .pflow .stile, .pflow .stile:nth-child(-n+2), .pflow .stile:last-child { grid-column: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 88px; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .pflow .stile h3 { align-self: end; font-size: 15px; }
  .pflow .stile p, .pflow .stile:nth-child(-n+2) p { align-self: start; margin-top: 3px; font-size: 13px; }
  .pflow .stile img, .pflow .stile:nth-child(-n+2) img { grid-column: 2; grid-row: 1 / span 2; width: 88px; height: 88px; margin: 0; padding: 0; }
  /* 휴대폰: 진행 과정 다섯 단계는 가로로 긴 칸에 글(왼쪽)과 그림(오른쪽) */
  /* 상세 페이지의 네 단계는 2x2 정사각형에 제목과 그림 */
  .flow__list { gap: 10px; }
  .flow__list .stile p { display: none; }
  .flow__list .stile img { height: 64%; }
  /* 휴대폰: 사례 상세 창을 한 화면에 들어오게 짧게 */
  .cmodal { max-height: 90dvh; overflow-y: auto; }
  .cmodal[open] { grid-template-columns: 1fr; }
  .cmodal__img { height: auto; min-height: 0; aspect-ratio: 3 / 1; }
  .cmodal__body { max-height: none; overflow: visible; padding: 16px 18px 18px; }
  .cmodal__cat { font-size: 12px; }
  .cmodal h2 { margin-top: 4px; padding-right: 0; font-size: 16.5px; line-height: 1.35; }
  .cmodal h3 { margin-top: 14px; font-size: 12.5px; }
  .cmodal p { margin-top: 4px; font-size: 13px; line-height: 1.6; }
  .cmodal ul { margin-top: 5px; gap: 1px; }
  .cmodal li { padding-left: 11px; font-size: 13px; line-height: 1.6; }
  .cmodal li::before { top: .72em; }
  .cmodal__meta { gap: 3px 12px; margin-top: 14px; padding-top: 11px; font-size: 12.5px; }
  .cmodal__cta { margin-top: 12px; }
  .cmodal__cta .tlink { font-size: 13.5px; }
  .cmodal__close { width: 38px; height: 38px; font-size: 18px; }
  .hov__list { gap: 22px; }
  .hov__list div { padding-top: 16px; }
  .dhero__in { grid-template-columns: 1fr; gap: 20px; }
  .dhero__art { justify-self: end; height: 150px; order: -1; }
  .dhero .lead br { display: none; }
  .tabs button { height: 46px; padding: 0 6px; font-size: 13.5px; }
  .br-m { display: inline; }
  .hero h1 { font-size: clamp(23px, 7.2vw, 44px); line-height: 1.32; }

  .hero__sep { display: none; }

  /* 수행 분야: 홈은 2x2 정사각형에 이름만, 수행 분야 페이지는 한 줄에 하나씩 내용까지 */

  /* 수행 사례: 첫 타일은 크게, 나머지는 2열 정사각형 (한 화면에 4개 이상) */
  .cases { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cases .case:nth-child(n), .cases--home .case:nth-child(n) { grid-column: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .cases .case:first-child { grid-column: 1 / -1; }
  /* 수행 분야 모듈: 넓은 칸, 정사각형 두 칸, 넓은 칸 */
  .mods { grid-template-columns: 3fr 2fr; gap: 10px; }
  .mods .mod:nth-child(n) { grid-column: auto; min-height: 140px; aspect-ratio: auto; padding: 14px; }
  .mods .mod:nth-child(1), .mods .mod:nth-child(2) { grid-column: 1 / -1; aspect-ratio: auto; min-height: 170px; }
  .mod h3 { font-size: 15.5px; }
  .mod p { display: none; }
  .mod img { right: 4%; height: 66%; max-width: 80%; }
  .mods .mod:nth-child(1) img, .mods .mod:nth-child(2) img { height: 88%; max-width: 52%; }
  .case:first-child .case__body { padding: 24px; }
  .case:first-child .case__cat { font-size: 13.5px; }
  .case:first-child h3 { margin-top: 8px; font-size: 21px; }
  .case:first-child .case__desc, .case:first-child .case__pts { display: -webkit-box; }
  .case:not(:first-child) .case__body { padding: 14px; }
  .case:not(:first-child) .case__cat { font-size: 11.5px; line-height: 1.5; }
  .case:not(:first-child) h3 { font-size: 14.5px; line-height: 1.38; }
  .case:not(:first-child) h3 br { display: none; }

  /* 휴대폰: 글씨를 전체적으로 한 단계 작게 */
  body { font-size: 15px; }
  h2 { font-size: 22px; }
  .lead { margin-top: 14px; font-size: 15px; line-height: 1.8; }
  .hero .hero__areas { font-size: 16px; }
  .hero p { font-size: 14.5px; }
  .phero h1 { font-size: 26px; }
  .phero p { font-size: 14.5px; }
  .btn { height: 46px; padding: 0 20px; font-size: 14.5px; }
  .hd__nav a:not(.btn), .hd.is-solid .hd__nav a:not(.btn) { font-size: 15.5px; padding: 13px 4px; }
  .hd__nav .btn { height: 48px; font-size: 15px; }
  .case:first-child .case__desc { font-size: 13.5px; }
  .case:first-child .case__pts { font-size: 12.5px; }
  .pr__list h3 { font-size: 18px; }
  .pr__no { font-size: 14.5px; line-height: 30px; }
  .pr__list li { grid-template-columns: 48px minmax(0, 1fr); }
  .closing h2 { font-size: 23px; }
  .closing p { font-size: 15px; }
  .closing__sym { width: 60px; height: 60px; }
  .dhero h1 { font-size: 25px; }
  .tp h2 { font-size: 19px; }
  .tp__cols h3 { font-size: 16.5px; }
  .more-mods a { padding: 8px 13px; font-size: 14px; }
  .tlink { font-size: 14.5px; }
  .ft__in { font-size: 13px; }

  .closing__cta { flex-direction: column; align-self: stretch; }
}

@media (max-width: 360px) {
  .case:not(:first-child) h3 { font-size: 14px; }
}

