/* =====================================================================
   코아건축사사무소 — 스타일
   색상·글꼴은 아래 :root 의 값만 바꾸면 전체에 반영됩니다.
   ===================================================================== */
:root {
  --paper: #FFFFFF;      /* 바탕 (화이트) — 베이지로 되돌리려면 #F4F3EF */
  --paper-2: #F4F4F3;    /* 구분되는 영역 바탕 (아주 연한 회색) — 베이지는 #EAE8E2 */
  --ink: #141414;        /* 글자 */
  --ink-2: #4A4A4A;
  --mute: #8A8A8A;
  --line: #E2E2E0;
  --dark: #121212;       /* 어두운 영역 바탕 */
  --dark-2: #1C1C1B;
  --accent: #E9B21B;     /* 포인트 (사무실 · 안내판의 노랑) */
  --en: "Inter Tight", "Pretendard", system-ui, sans-serif;
  --ko: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--ko); font-size: 17px; line-height: 1.7;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.en { font-family: var(--en); }

/* ── 공통 섹션 ─────────────────────────────────────────── */
.section { padding: clamp(72px, 9vw, 128px) var(--pad); }
.wrap { max-width: var(--max); margin: 0 auto; }
.label {
  font-family: var(--ko); font-size: 14px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mute);
  display: flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 {
  font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; line-height: 1.18;
  letter-spacing: -0.035em; text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); text-wrap: pretty; }

/* 스크롤 등장 효과 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── 로고 마크: 정사각형 큐브를 C 모양으로 연 형태 + 가운데 노란 코어 ──
   실제 로고 파일이 생기면 images/logo.svg 로 넣고 .mark 를 교체하세요. */
.mark { width: 28px; height: 28px; flex: none; display: block; }
.mark svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* ── 상단 메뉴 ─────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad); color: #fff;
  transition: background .4s, color .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
/* 흰 배경 · 흐림은 ::before 에만 — .nav 자체에 backdrop-filter 를 주면 휴대폰 전체화면 메뉴가 상단 바 안에 갇힘 */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .4s; }
.nav.solid::before { opacity: 1; }
.nav.solid { color: var(--ink); padding-top: 14px; padding-bottom: 14px; border-color: var(--line); }
.nav.open::before { opacity: 0; }
/* 로고: 원본 이미지 그대로, 높이만 정하고 너비는 자동 (비율 고정) */
.logo-img { display: block; height: 26px; width: auto; max-width: none; }
.nav.open .logo-img { filter: invert(1); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { font-family: var(--en); line-height: 1; display: flex; gap: 8px; align-items: baseline; }
.brand-text b { font-weight: 600; font-size: 19px; letter-spacing: .14em; }
.brand-text span { font-weight: 400; font-size: 12px; letter-spacing: .14em; opacity: .75; }
.menu { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); font-family: var(--en); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.menu a { position: relative; padding: 6px 0; opacity: .82; transition: opacity .25s; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.menu a:hover, .menu a:focus-visible { opacity: 1; }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
/* 맨 오른쪽 인스타그램 · 블로그 */
.menu .soc { display: flex; gap: 14px; padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid currentColor; border-left-color: rgba(127,127,127,.35); }
.menu .soc a { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: .02em; font-weight: 500; }
.menu .soc svg { width: 19px; height: 19px; flex: none; }
.menu .soc span { font-size: 13px; }
@media (max-width: 1240px) and (min-width: 861px) { .menu .soc span { display: none; } }
.menu-btn { display: none; width: 32px; height: 22px; position: relative; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 6px; } .menu-btn span:last-child { top: 15px; }
.nav.open .menu-btn span:first-child { top: 10px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 10px; transform: rotate(-45deg); }

/* ── 첫 화면 ───────────────────────────────────────────── */
.hero { position: relative; height: 100svh; min-height: 600px; color: #fff; overflow: hidden; background: var(--dark); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero-slide.on img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.hero-body { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(40px, 8vh, 88px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.hero-eyebrow { font-family: var(--en); font-size: 12px; letter-spacing: .3em; opacity: .85; margin-bottom: 20px; display: flex; gap: 14px; align-items: center; }
.hero-eyebrow i { width: 10px; height: 10px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(36px, 5.2vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; text-wrap: balance; }
.hero-sub { margin-top: 24px; max-width: 560px; font-size: clamp(15px, 1.2vw, 18px); opacity: .9; white-space: pre-line; }
.hero-cap { text-align: right; font-size: 13px; min-width: 220px; }
.hero-cap .count { font-family: var(--en); font-size: 12px; letter-spacing: .2em; opacity: .7; margin-bottom: 8px; }
.hero-cap a { display: inline-block; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.hero-bar { display: flex; gap: 6px; justify-content: flex-end; margin-top: 14px; }
.hero-bar button { width: 28px; height: 2px; background: rgba(255,255,255,.35); padding: 0; }
.hero-bar button.on { background: var(--accent); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 1px; height: 44px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -44px; width: 1px; height: 44px; background: #fff; animation: cue 2.2s infinite; }
@keyframes cue { to { top: 44px; } }

/* ── 첫 화면: 프로젝트 콜라주 (지명원 표지 스타일) ───────── */
body.light-hero .nav:not(.solid):not(.open) { color: var(--ink); }
/* 첫 화면에는 큰 로고만 (지명원 표지처럼). 스크롤하면 상단 작은 로고 등장 */
body.light-hero .nav .brand { transition: opacity .4s, transform .4s; }
body.light-hero .nav:not(.solid):not(.open) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.hero.collage { background: var(--paper); color: var(--ink); height: auto; min-height: 0; display: flex; flex-direction: column;
  padding: calc(84px + env(safe-area-inset-top)) var(--pad) clamp(20px, 3vw, 40px); }
.hero.collage::after { display: none; }
.hc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(16px, 2.2vw, 28px); }
.hc-tag h1 { font-size: clamp(26px, 2.9vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.2; }
.hc-tag p { margin-top: 10px; font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.hc-logo { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hc-logo img { display: block; height: clamp(62px, 8vw, 116px); width: auto; max-width: none; }
.hc-logo .ko { font-size: 12px; letter-spacing: .3em; color: var(--mute); }
.hc-logo .en-sub { display: none; }   /* PC 는 긴 로고 그림 안에 이미 있음 — 휴대폰에서만 보임 */
.hc-logo b { display: block; font-size: clamp(40px, 5.6vw, 86px); font-weight: 700; letter-spacing: .02em; line-height: .9; }
.hc-logo span.en { display: block; font-size: clamp(11px, 1.15vw, 17px); letter-spacing: .32em; margin-top: 8px; }
.hc-logo span.ko { display: block; font-size: 12px; letter-spacing: .3em; color: var(--mute); margin-top: 4px; }
/* 콜라주 벽: PC 6×4 / 태블릿 4×4 / 휴대폰 3×5 */
/* 칸은 사진과 같은 4:3 비율 → 건물이 덜 잘림 (높이를 화면에 억지로 맞추지 않음) */
.hc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(4px, .5vw, 8px); }
/* 칸 수 제한 없음 — 프로젝트 전부가 아래로 쭉 이어짐 */
.tile { position: relative; overflow: visible; display: block; z-index: 0; aspect-ratio: 4 / 3;
  transition: opacity .45s ease, filter .45s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.tile .ly, .tile .frame, .tile .cap { border-radius: 0; }
.tile .ly { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.1s ease; background: var(--paper-2); }
.tile .ly.on { opacity: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile.sk .ly { background: #F3F1EC; }
/* 들어올 때: 가운데부터 바깥으로 스르륵 */
.hc-grid .tile { animation: tileIn .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0s) + .15s); }
/* 입장 화면이 있을 때: 방의 창이 열리는 순간(약 1.1초)부터 가운데 칸이 보이기 시작 → 창 너머로 프로젝트가 보임 */
body.intro-delay .hc-grid .tile { animation-delay: calc(var(--d, 0s) + 1.1s); }
@keyframes tileIn { from { opacity: 0; transform: scale(.9); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hc-grid .tile.in { animation: none; }
/* 첫 화면 아래 칸: 스크롤로 보일 때 시작 */
.hc-grid .tile.wait { animation-play-state: paused; }
.hc-grid .tile.late, body.intro-delay .hc-grid .tile.late { animation-delay: var(--d2, 0s); }
/* 이름 */
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 14px; color: #fff; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.3; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.tile .cap b { display: block; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .cap small { display: block; font-size: clamp(12px, .85vw, 14px); color: rgba(255,255,255,.88); margin-top: 3px; letter-spacing: .04em; }
.tile .cap .go { display: none; font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); margin-top: 4px; }
/* 선택 테두리: 흰 안쪽 선 + 네 모서리 노란 꺾쇠 */
.tile .frame { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s, inset .35s cubic-bezier(.2,.7,.2,1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9); }
.tile .frame i { position: absolute; width: 22px; height: 22px; border: 3.5px solid var(--accent); }
.tile .frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.tile .frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; }
.tile .frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; }
.tile .frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.tile.picked { z-index: 2; }
.tile.picked .frame { opacity: 1; inset: 7px; }
.tile.picked .cap { opacity: 1; transform: none; }
.tile.opening { transform: scale(.96); }
/* 마우스를 올리면 그 칸만 선명, 나머지는 연하게 */
@media (hover: hover) {
  .hc-grid:hover .tile.in, .hc-grid.has-pick .tile.in { opacity: .32; filter: grayscale(.7); }
  .hc-grid .tile.in:hover, .hc-grid .tile.in.picked { opacity: 1; filter: none; z-index: 2; transform: scale(1.03); }
  .tile:hover img { transform: scale(1.06); }
  .tile:hover .cap { opacity: 1; transform: none; }
  .tile:hover .frame { opacity: .6; inset: 4px; }
  /* PC: 칸이 작아서 이름을 칸 가운데에 (마우스를 올릴 때만 보임) — 2026.11.19 */
  .tile .cap { top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 12px; background: rgba(0,0,0,.36); transform: none; }
  .tile .cap b { max-width: 100%; }
}
@media (hover: none) {
  .hc-grid.has-pick .tile.in:not(.picked) { opacity: .35; filter: grayscale(.6); }
  .tile.picked .cap .go { display: block; }
}
.hc-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--mute); }
.hc-foot .en { letter-spacing: .2em; }

/* ── 작은 콜라주 (스케치 · 공장) — 사진이 몇 초마다 한 칸씩 바뀜 ── */
.rwall { display: grid; gap: clamp(4px, .5vw, 8px); }
.rw { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.rw .ly { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.rw .ly.on { opacity: 1; }
.rw img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.rw-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: #fff; font-size: 15px; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.66)); opacity: 0; transition: opacity .3s; pointer-events: none; }
@media (hover: hover) { .rw:hover img { transform: scale(1.05); } .rw:hover .rw-cap { opacity: 1; } }
.sk-wall { grid-template-columns: repeat(4, 1fr); }
.sk-wall .rw { background: #F3F1EC; }
.industrial-img.rwall { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; background: var(--dark); }
.industrial-img.rwall .rw { aspect-ratio: auto; min-height: 0; }
@media (max-width: 860px) {
  .sk-wall { grid-template-columns: repeat(2, 1fr); }
  .sk-wall .rw:nth-child(n+7) { display: none; }
  .industrial-img.rwall { min-height: 420px; }
  .rw-cap { opacity: 1; font-size: 13px; padding: 26px 10px 8px; }
}

/* ── 손 스케치 띠 ──────────────────────────────────────── */
.section.sketch { padding-left: 0; padding-right: 0; overflow: hidden; }
.section.sketch .wrap { padding: 0 var(--pad); }
.sk-head { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sk-head .h2 { margin-top: 24px; }
.sk-row { display: flex; gap: clamp(14px, 2vw, 26px); overflow-x: auto; padding: 10px var(--pad) 26px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.skc { flex: 0 0 auto; height: clamp(220px, 26vw, 360px); scroll-snap-align: start; background: #F3F1EC; box-shadow: 0 10px 28px rgba(0,0,0,.10); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.skc img { height: 100%; width: auto; max-width: none; object-fit: cover; }
.skc:nth-child(odd) { transform: rotate(-.8deg); } .skc:nth-child(even) { transform: rotate(.7deg) translateY(8px); }
@media (hover: hover) { .skc:hover { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,.16); } }

/* ── 회사 소개 ─────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); }
.about .h2 { margin-top: 28px; }
.about-body p + p { margin-top: 1.2em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--ink); }
.stat { padding: 28px 24px 0 0; }
.stat b { display: block; font-family: var(--en); font-size: clamp(44px, 5vw, 76px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* ── 강점 3가지 (작고 담백하게) ────────────────────────── */
.section.values { padding-top: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--ink); }
.pillar { padding-top: 24px; }
.pillar .no { font-size: 12px; letter-spacing: .2em; color: var(--mute); }
.pillar h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin: 12px 0 10px; }
.pillar p { color: var(--ink-2); font-size: 16.5px; text-wrap: pretty; }
.pillar ul { list-style: none; margin-top: 18px; }
.pillar li { font-size: 14px; color: var(--ink-2); padding: 8px 0; border-top: 1px solid var(--line); }
.since { margin-top: 20px; font-size: 13px; letter-spacing: .24em; color: var(--mute); }

/* ── 인트로: 코아 마크(C) 안으로 들어가기 ──────────────────
   검은 화면 가운데 마크 → 마크가 커지며 가운데 구멍으로 사이트에 들어감 */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.intro .door {
  width: clamp(170px, 30vmin, 340px); aspect-ratio: 1; position: relative;
  box-shadow: 0 0 0 300vmax #111111;               /* (2026.11.20) 마크 바깥은 검정 — 검은 화면 · 흰 로고로 시작해서 들어가면 하얀 화면 (반전). 이전: #FFFFFF */
}
.intro .door svg { width: 100%; height: 100%; display: block; overflow: visible; }
.intro .blk, .intro .lid { fill: #111111; }        /* 이전: #FFFFFF */
.intro .faces { stroke-width: 1.6; stroke-linejoin: round; opacity: 0; transform: scale(.55); transform-origin: 50% 50%; transition: opacity .35s ease, transform .95s var(--spring-pop); }   /* (2026.11.20 밤) 흰 단색 · 둥근 모서리 · 튀면서 나타남. 이전: 회색 그라데이션 입체 */
.intro .faces .open { fill: none; stroke: #D6D4D0; stroke-width: 1.2; }   /* (2026.11.20 밤) 면 색은 app.js 의 회색 톤 그라데이션 */   /* (2026.11.20) 면 띄움 + 그라데이션은 app.js 의 SVG 에서 (이전: .faces fill/stroke #FFFFFF 1.4) */   /* (2026.11.20) 테두리 = 채움색 (이전: 면 사이 #111 선 · 열린 면 회색 선) */   /* 열린 면 = 비어 있음 (흰 로고판과 같은 모양) */
.intro .lid { transition: opacity .8s ease .55s; }
.intro.show .faces { opacity: 1; transform: none; }
.intro.show .lid { opacity: 0; }
.intro .door { transition: transform .16s cubic-bezier(.3,0,.5,1); }
.intro.press .door { transform: scale(.93); }                                    /* 누르는 순간 살짝 들어감 (아이폰 아이콘처럼) */
.intro.go .door { transform: scale(var(--s, 30)); transition: transform 1.15s var(--spring-zoom); }   /* 튀듯이 커지며 창 안으로. 이전: 1.35s cubic-bezier(.75,0,.2,1) */
.intro.go .faces { opacity: 0; transition: opacity .3s ease; }
.intro-name { position: absolute; left: 0; right: 0; top: calc(50% + clamp(112px, 18vmin, 200px)); text-align: center; color: #FFFFFF; opacity: 0; transform: translateY(16px); transition: opacity .5s .25s, transform .9s var(--spring-pop) .2s; }
.intro-name b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .4em; }
.intro-name span { display: block; margin-top: 6px; font-size: 13px; color: var(--mute); letter-spacing: .2em; }
.intro.show .intro-name { opacity: 1; transform: none; }
.intro.go .intro-name { opacity: 0; transition: opacity .25s; }
body.intro-on { overflow: hidden; }
/* (2026.11.20) 인트로: 누르면 들어가기 — 화면 어디를 눌러도 되고, 아래 버튼은 안내용 */
.intro { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.intro.go { pointer-events: none; }
.intro-name .intro-sub { display: block; margin-top: 10px; font-family: 'Outfit', var(--en); font-size: clamp(11px, 1.6vmin, 14px); letter-spacing: .34em; padding-left: .34em; color: #C9C7C2; }
.intro-enter { margin: clamp(24px, 4.5vmin, 40px) auto 0; display: inline-flex; flex-direction: row; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .3em; padding: 13px calc(24px - .3em) 13px 22px; color: #FFFFFF; cursor: pointer;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .5s var(--spring-pop), background .25s, border-color .25s; }   /* (2026.11.20 밤) 알약 버튼. 이전: 글자 + 아래 세로선 */
.intro-enter:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); transform: scale(1.04); }
.intro-enter:active { transform: scale(.94); transition-duration: .12s; }
.intro-enter i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.intro-enter i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--accent); opacity: .35; animation: introDot 1.8s ease-in-out infinite; }
@keyframes introDot { 0% { transform: scale(.4); opacity: .5; } 70% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1.5); opacity: 0; } }
.intro-name .intro-enter span { display: inline; margin: 0; font-size: inherit; letter-spacing: inherit; color: #FFFFFF; transition: color .2s; }
.intro-name .intro-enter:hover span, .intro-name .intro-enter:focus-visible span { color: var(--accent); }
.intro-enter:focus { outline: none; }
.intro.entering .intro-enter { opacity: 0; transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .intro-enter i::after { animation: none; opacity: 0; } }
body.intro-on .hero-body, body.intro-on .nav { opacity: 0; }
.hero-body { transition: opacity .9s .9s; }
.nav { transition: opacity .9s .9s, background .4s, color .4s, padding .4s, border-color .4s; }

/* ── 프로젝트 ──────────────────────────────────────────── */
.works-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.works-head .h2 { margin-top: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15.5px; transition: all .25s; white-space: nowrap; }
.filters button sup { font-family: var(--en); font-size: 10px; margin-left: 4px; color: var(--mute); }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button.on sup { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); }
.card { cursor: pointer; display: block; text-align: left; width: 100%; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-tag { position: absolute; left: 12px; top: 12px; font-size: 11px; padding: 4px 9px; background: rgba(20,20,20,.72); color: #fff; letter-spacing: .04em; backdrop-filter: blur(4px); }
.card-meta { padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.4; }
.card .loc { font-size: 14.5px; color: var(--mute); margin-top: 2px; }
.card .cat { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.card.big { grid-column: span 2; }
.card.big .card-img { aspect-ratio: 16 / 9.15; }
.more { margin-top: 56px; text-align: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; border: 1px solid var(--ink); font-size: 14px; transition: background .25s, color .25s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn .arr { font-family: var(--en); }

/* 사진이 아직 없는 프로젝트 — '촬영 준비 중' 카드 */
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px;
  background-color: #F1F1F0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px; color: var(--ink-2);
}
.ph .ph-top { font-family: var(--en); font-size: 11px; letter-spacing: .2em; display: flex; justify-content: space-between; }
.ph .ph-name { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.25; }
.ph .ph-box { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -58%); border: 2px solid rgba(20,20,20,.18); }
.ph .ph-box::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 22%; background: rgba(233,178,27,.55); }

/* 전체 프로젝트 목록 (아카이브) */
.archive { margin-top: clamp(64px, 8vw, 112px); }
.archive-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.archive-head h3 { font-size: 13px; font-weight: 600; letter-spacing: .24em; }
.archive-head span { font-size: 13px; color: var(--ink-2); }
.archive-head b { font-weight: 500; color: var(--ink); }
.archive-cols, .archive li a { display: grid; grid-template-columns: 2.2fr 1.4fr 1fr 1fr 20px; gap: 16px; align-items: center; }
.archive-cols { padding: 12px 0; font-size: 12px; color: var(--mute); border-bottom: 1px solid var(--line); }
.archive ol { list-style: none; }
.archive li a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; transition: background .25s, padding .25s; }
.archive .no { font-size: 12px; color: var(--mute); }
.archive .t { font-weight: 600; }
.archive .l, .archive .c { color: var(--ink-2); font-size: 14px; }
.archive .y { font-size: 13px; color: var(--mute); }
.archive .ic i { display: block; width: 8px; height: 8px; border: 1px solid var(--mute); }
@media (hover: hover) { .archive li a:hover { background: var(--paper-2); padding-left: 10px; } }

/* ── 공장·창고 강조 ────────────────────────────────────── */
.industrial { display: grid; grid-template-columns: 7fr 5fr; background: var(--dark); color: #EDEBE6; min-height: 640px; }
.industrial-img { position: relative; overflow: hidden; }
.industrial-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.industrial-body { padding: clamp(56px, 7vw, 112px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.industrial-body .label { color: var(--accent); }
.industrial-body .h2 { margin: 24px 0 24px; color: #fff; }
.industrial-body p { color: #B5B3AD; }
.industrial-body ul { list-style: none; margin: 36px 0 44px; }
.industrial-body li { padding: 16px 0; border-top: 1px solid #333; display: flex; gap: 16px; font-size: 15px; }
.industrial-body li b { font-family: var(--en); color: var(--accent); font-weight: 500; font-size: 13px; padding-top: 2px; }
.industrial-body .btn { border-color: #EDEBE6; align-self: flex-start; }
.industrial-body .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ── 업무 영역 ─────────────────────────────────────────── */
.services-head { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); align-items: end; }
.services-head .h2 { margin-top: 24px; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.stage { padding: 28px 28px 8px 0; position: relative; }
.stage + .stage { padding-left: 28px; border-left: 1px solid var(--line); }
.stage-top { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.stage h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; margin: 12px 0 22px; }
.stage ul { list-style: none; }
.stage li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 16.5px; display: flex; gap: 10px; }
.stage li::before { content: ""; width: 6px; height: 6px; background: var(--ink); margin-top: 10px; flex: none; }
.stage:first-child li::before { background: var(--accent); }

/* ── 대표 건축사 ───────────────────────────────────────── */
.pr-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.principal .h2 { margin: 24px 0 24px; }
.pr-name { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink); display: flex; align-items: baseline; gap: 16px; }
.pr-name b { font-size: 30px; font-weight: 700; letter-spacing: .2em; }
.pr-name span { color: var(--ink-2); }
.pr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pr-cols h3 { font-size: 12px; font-weight: 500; letter-spacing: .22em; color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.pr-cols ul { list-style: none; }
.pr-cols li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; display: flex; gap: 12px; }
.pr-cols .pre { color: var(--mute); font-size: 13px; padding-top: 2px; }
.pr-cols div:first-child .pre { color: #B98A06; font-weight: 600; }

.awards { margin-top: clamp(48px, 6vw, 80px); }
.awards h3 { font-size: 12px; font-weight: 500; letter-spacing: .22em; color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.awards ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.awards li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.awards .yr { font-size: 13px; color: var(--mute); padding-top: 2px; }
.award-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 20px; }
.award-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper-2); border: 1px solid var(--line); }
@media (max-width: 860px) { .awards ul { grid-template-columns: 1fr; } }

/* ── 입지 · 규모 검토 / 컨설팅 ──────────────────────────── */
.consulting { padding: clamp(88px, 12vw, 168px) var(--pad); background: var(--paper-2); }
.cons-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.cons-intro { position: sticky; top: 110px; }
.cons-intro .h2 { margin: 24px 0 24px; }
.cons-ask { margin-top: 40px; padding: 24px; background: var(--ink); color: #EDEBE6; display: flex; gap: 18px; align-items: flex-start; font-size: 15px; line-height: 1.8; }
.cons-ask .cmark { width: 28px; height: auto; flex: none; margin-top: 3px; }
.cons-ask b { color: #fff; }
.cons-ask a { border-bottom: 1px solid #666; white-space: nowrap; }
.cons-ask a:hover { border-color: var(--accent); }
/* (2026.11.20) 입지 · 규모 · 인허가 — 세 가지 강점 칸 + 대표 인용 */
.cons-quote { margin: 28px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; line-height: 1.6; letter-spacing: -0.02em; text-wrap: balance; }
.cons-quote cite { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; font-style: normal; color: var(--mute); }
.cons-pillars { border-top: 2px solid var(--ink); margin-bottom: clamp(36px, 4vw, 56px); }
.cp { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 6px 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid #DCDCDA; }
.cp .en { grid-column: 1; font-size: 13px; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.cp h3 { grid-column: 1; grid-row: 2; font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -0.04em; margin: 0; }
.cp p { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 16px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.cons-sub { font-size: 14px; font-weight: 600; color: var(--mute); margin-bottom: 10px; }
.cons-list { list-style: none; border-top: 1px solid var(--ink); }
.cons-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid #DCDCDA; }
.cons-list .n { font-size: clamp(28px, 2.6vw, 40px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--mute); }
.cons-list li:first-child .n, .cons-list li:nth-child(2) .n { color: var(--ink); }
.cons-list h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 6px; }
.cons-list p { color: var(--ink-2); font-size: 16.5px; text-wrap: pretty; }
.svc-list { border-top: 1px solid var(--ink); }
.svc { display: grid; grid-template-columns: 80px 1.1fr 2fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .35s, background .35s; }
.svc:hover { padding-left: 16px; background: var(--paper-2); }
.svc .n { font-family: var(--en); font-size: 13px; color: var(--mute); letter-spacing: .1em; }
.svc h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.svc h3 small { display: block; font-family: var(--en); font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }
.svc p { color: var(--ink-2); }

/* ── 지역 ──────────────────────────────────────────────── */
.region { background: var(--paper-2); }
.region-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.region .h2 { margin: 24px 0 24px; }
.region-rows { border-top: 1px solid var(--ink); }
.rrow { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); gap: 20px; }
.rrow .nm { font-size: 18px; font-weight: 600; }
.rrow .nm small { display: block; font-size: 13px; font-weight: 400; color: var(--mute); margin-top: 2px; }
.rrow .bar { grid-column: 1 / -1; height: 3px; background: #D9D7D0; position: relative; margin-top: -6px; }
.rrow .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.rrow.yongin .bar i { background: var(--accent); }
.rrow .v { font-family: var(--en); font-size: clamp(32px, 3.4vw, 52px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }

/* ── 진행 과정 ─────────────────────────────────────────── */
.process-head { margin-bottom: clamp(48px, 6vw, 80px); }
.process-head .h2 { margin-top: 24px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.step { padding: 28px 24px 0 0; border-top: 1px solid var(--ink); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--en); font-size: 13px; letter-spacing: .14em; color: var(--mute); }
.step::after { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; background: var(--ink); }
.step:first-child::after { background: var(--accent); }
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 10px; }
.step p { font-size: 14px; color: var(--ink-2); text-wrap: pretty; }

/* ── 사무실 · 연락처 ───────────────────────────────────── */
.contact { background: var(--dark); color: #EDEBE6; }
.office-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: clamp(64px, 8vw, 112px); }
.office-strip div { overflow: hidden; background: var(--dark-2); aspect-ratio: 4 / 3; }
.office-strip img { width: 100%; height: 100%; object-fit: cover; }
.contact-grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 6vw, 100px); }
.contact .label { color: #8F8D88; }
.contact .h2 { margin: 24px 0 28px; color: #fff; }
.contact .lead { color: #B5B3AD; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta .btn { border-color: #EDEBE6; }
.cta .btn:hover { background: #EDEBE6; color: var(--ink); }
.cta .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.cta .btn.primary:hover { background: #fff; border-color: #fff; }
.info { border-top: 1px solid #3A3A38; }
.info div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid #2A2A28; font-size: 15px; }
.info dt { font-family: var(--en); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8F8D88; padding-top: 3px; }
.info dd a { border-bottom: 1px solid #555; }
.info dd a:hover { border-color: var(--accent); }

/* 상담 메모 폼 (메일 앱으로 보내기) */
.ask { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ask input, .ask select, .ask textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #444; color: #fff; font: inherit; font-size: 15px; padding: 12px 2px; border-radius: 0; }
.ask select option { color: var(--ink); }
.ask textarea { grid-column: 1 / -1; min-height: 96px; resize: vertical; }
.ask input:focus, .ask select:focus, .ask textarea:focus { outline: none; border-color: var(--accent); }
.ask .btn { grid-column: 1 / -1; justify-content: center; margin-top: 10px; background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.ask .btn:hover { background: #fff; border-color: #fff; }
.ask small { grid-column: 1 / -1; color: #7D7B76; font-size: 12px; }

/* ── 하단 ──────────────────────────────────────────────── */
.footer { background: #0B0B0B; color: #8F8D88; padding: 48px var(--pad) 40px; font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: end; }
.footer .brand { color: #EDEBE6; margin-bottom: 18px; display: inline-block; }
.footer .logo-img { height: 46px; }
.intro-name img { height: clamp(40px, 6vmin, 66px); width: auto; max-width: none; margin: 0 auto; display: block; }
.footer p { line-height: 1.9; }
.footer .nowrap { white-space: nowrap; }

/* ── 프로젝트 상세 창 ──────────────────────────────────── */
.viewer { position: fixed; inset: 0; z-index: 100; background: #0E0E0E; color: #EDEBE6; display: grid; grid-template-columns: 1fr 380px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.viewer.open { opacity: 1; visibility: visible; }
.v-stage { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 72px 72px 120px; }
.v-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .35s; }
.v-stage .ph { position: relative; width: min(100%, 900px); aspect-ratio: 4/3; }
.v-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid #444; border-radius: 50%; font-family: var(--en); font-size: 18px; transition: background .25s, border-color .25s; }
.v-arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.v-prev { left: 16px; } .v-next { right: 16px; }
.v-thumbs { position: absolute; left: 72px; right: 72px; bottom: 28px; display: flex; gap: 8px; justify-content: center; }
.v-thumbs button { width: 72px; height: 52px; overflow: hidden; opacity: .4; transition: opacity .25s; outline: 1px solid transparent; }
.v-thumbs button.on { opacity: 1; outline-color: var(--accent); }
.v-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.v-count { position: absolute; left: 22px; top: 22px; font-size: 12px; letter-spacing: .2em; color: #8F8D88; }
.v-info { background: #161616; padding: 72px 40px 40px; overflow-y: auto; display: flex; flex-direction: column; }
.v-close { position: absolute; top: 18px; right: 22px; z-index: 3; font-family: var(--en); font-size: 13px; letter-spacing: .2em; padding: 10px 0 10px 16px; }
.v-close:hover { color: var(--accent); }
.v-info .cat { font-size: 13px; color: var(--accent); }
.v-info h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; margin: 10px 0 6px; }
.v-info .en { color: #8F8D88; font-size: 14px; }
.v-info dl { margin: 36px 0; border-top: 1px solid #333; }
.v-info dl div { display: grid; grid-template-columns: 90px 1fr; padding: 14px 0; border-bottom: 1px solid #262626; font-size: 14px; }
.v-info dt { color: #8F8D88; }
.v-info .desc { color: #C7C5BF; font-size: 15px; text-wrap: pretty; }
.v-info .soon { margin-top: 20px; padding: 14px 16px; border: 1px dashed #444; font-size: 13px; color: #A6A49F; }
.v-nav { margin-top: auto; padding-top: 32px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #8F8D88; }
.v-nav button:hover { color: #fff; }

/* ── 반응형 ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage:nth-child(3) { padding-left: 0; border-left: 0; }
  .hc-grid { grid-template-columns: repeat(4, 1fr); }

  .viewer { grid-template-columns: 1fr; grid-template-rows: 56dvh 1fr; }
  .v-stage { padding: 56px 16px 84px; }
  .v-thumbs { left: 16px; right: 16px; bottom: 14px; }
  .v-info { padding: 32px 24px; }
}
@media (max-width: 860px) {
  .menu { position: fixed; inset: 0; background: var(--dark); color: #fff; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 var(--pad); gap: 22px; font-size: 30px; letter-spacing: .04em; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav.open .menu { opacity: 1; visibility: visible; }
  .menu a { opacity: 1; }
  .menu .soc { border-left: 0; padding-left: 0; margin-top: 18px; gap: 22px; }
  .menu .soc a { font-size: 16px; letter-spacing: .04em; }
  .menu .soc span { font-size: 16px; }
  .nav.open { color: #fff; background: transparent; border-color: transparent; }
  .menu-btn { display: block; z-index: 2; }
  .brand { z-index: 2; position: relative; }
  .hero-body { grid-template-columns: 1fr; }
  .hero-cap { text-align: left; min-width: 0; }
  .hero-bar { justify-content: flex-start; }
  .about-grid, .services-head, .region-grid, .contact-grid, .cons-grid { grid-template-columns: 1fr; }
  .cons-intro { position: static; }
  .cp { grid-template-columns: 1fr; padding: 20px 0; }
  .cp p { grid-column: 1; grid-row: 3; }
  .pr-grid, .pr-cols { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage, .stage + .stage { padding-left: 0; border-left: 0; }
  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar { border-top: 1px solid var(--ink); }
  .industrial { grid-template-columns: 1fr; }
  .industrial-img { min-height: 320px; }
  .svc { grid-template-columns: 1fr; gap: 8px; }
  .svc:hover { padding-left: 0; background: none; }
  .office-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* 프로젝트: 휴대폰에서도 2열 → 한 화면에 많이 보이게 */
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .card.big { grid-column: 1 / -1; }
  .card.big .card-img { aspect-ratio: 4 / 3; }
  .card-meta { padding-top: 9px; display: block; }
  .card h3 { font-size: 14px; line-height: 1.35; }
  .card .loc { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card .cat { display: none; }
  .card-tag { left: 6px; top: 6px; font-size: 10px; padding: 3px 6px; }
  .ph { padding: 10px; } .ph .ph-top span:last-child { display: none; } .ph .ph-name { font-size: 14px; }
  /* 분류 버튼: 한 줄로 옆으로 밀어서 보기 */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { padding: 9px 15px; }
  .works-head { margin-bottom: 28px; gap: 20px; }
  /* 아카이브 목록: 두 줄 정리 */
  .archive-cols { display: none; }
  .archive li a { grid-template-columns: 1fr auto; grid-template-areas: "t y" "l y"; row-gap: 2px; column-gap: 10px; padding: 13px 0; }
  .archive .no { grid-area: no; } .archive .t { grid-area: t; font-size: 14.5px; }
  .archive .l { grid-area: l; font-size: 12.5px; } .archive .c { display: none; }
  .archive .y { grid-area: y; font-size: 12px; } .archive .ic { display: none; }
  .steps { grid-template-columns: 1fr; }
  .ask { grid-template-columns: 1fr; }
  .info div { grid-template-columns: 1fr; gap: 4px; }
  .brand-text span { display: none; }
  .v-arrow { display: none; }                      /* 휴대폰은 좌우로 밀어서 넘김 */
  .v-thumbs button { width: 52px; height: 38px; flex: none; }
  .cons-list li { grid-template-columns: 44px 1fr; padding: 22px 0; }
  .pr-name b { font-size: 24px; }
}

/* ── 첫 화면 콜라주: 태블릿 · 휴대폰 ───────────────────── */
@media (max-width: 860px) {
  .hero.collage { padding-top: calc(76px + env(safe-area-inset-top)); }
  /* (2026.11.20) 휴대폰 첫 화면: 로고 · 제목 · 설명을 가운데 정렬로 (이전: 왼쪽 정렬이라 로고 그림과 '코아건축사사무소' 줄이 어긋나 보였음) */
  .hc-head { flex-direction: column-reverse; align-items: center; text-align: center; gap: 20px; }
  .hc-logo { align-items: center; gap: 8px; }
  .hc-logo img { height: 44px; }
  .hc-logo .en-sub { display: block; font-family: 'Outfit', var(--en); font-size: 12px; letter-spacing: .32em; padding-left: .32em; color: var(--ink-2); }
  .hc-logo .ko { letter-spacing: .42em; padding-left: .42em; }   /* 자간 때문에 오른쪽으로 쏠리는 것 보정 */
  .hc-tag { display: flex; flex-direction: column; align-items: center; }
  .hc-tag h1 { position: relative; padding-top: 18px; }
  .hc-tag h1::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 2px; margin-left: -14px; background: var(--accent); }
  .hc-tag p { text-wrap: balance; }
  .hc-grid { grid-template-columns: repeat(3, 1fr); }

  .tile .cap { padding: 18px 7px 6px; font-size: 11px; }
  .tile .cap small { display: none; }
  .hc-foot span:nth-child(2) { display: none; }
  .sk-head { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tile .frame i { width: 11px; height: 11px; border-width: 2.5px; }
  .tile.picked .frame { inset: 5px; }
  .hc-logo img { height: 40px; }
  .hc-logo .ko { font-size: 11px; }
  .hc-tag h1 { font-size: 24px; }
  .hc-tag p { font-size: 13px; }
}

/* ── 휴대폰 하단 상담 바 ───────────────────────────────── */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .mbar.on { transform: none; }
  body.menu-open .mbar { transform: translateY(110%); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; font-size: 14.5px; font-weight: 600; border: 1px solid var(--ink); }
  .mbar a.call { background: var(--ink); color: #fff; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ── 터치 · 공통 다듬기 ────────────────────────────────── */
html { -webkit-tap-highlight-color: transparent; }
.nav { padding-top: calc(22px + env(safe-area-inset-top)); }
.nav.solid { padding-top: calc(14px + env(safe-area-inset-top)); }
.v-close { top: calc(18px + env(safe-area-inset-top)); }
.viewer { height: 100dvh; }
.v-thumbs { overflow-x: auto; scrollbar-width: none; }
.v-thumbs::-webkit-scrollbar { display: none; }
.ask input, .ask select, .ask textarea { font-size: 16px; }   /* 아이폰에서 입력할 때 화면 확대 방지 */
@media (hover: none) {
  .card:hover .card-img img { transform: none; }
  .svc:hover { padding-left: 0; background: none; }
}

/* ── 작품 (골라 본 준공작 + 기사 연결) — 2026.11.20 ─────────── */
.sel-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sel { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.sel.flip { grid-template-columns: 1fr 1.45fr; }
.sel.flip .sel-img { order: 2; }
.sel-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #f2f2f0; }
.sel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.sel-img:hover img { transform: scale(1.03); }
.sel-body { min-width: 0; }
.sel-no { font-size: 13px; letter-spacing: .2em; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.sel-body .cat { font-size: 14px; color: var(--mute); }
.sel-body h3 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 700; line-height: 1.3; margin: 6px 0 8px; text-wrap: balance; }
.sel-body .loc { font-size: 15px; color: var(--mute); margin-bottom: 18px; }
.sel-body > p { font-size: 17px; line-height: 1.8; color: var(--ink-2); margin-bottom: 22px; }
.press { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 24px; }
.press-media { font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.press b { display: block; font-size: 17px; line-height: 1.5; margin-bottom: 6px; }
.press p { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin-bottom: 8px; }
.press a { display: inline-block; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; margin-right: 16px; }
.v-info .press { margin-top: 22px; }

/* ── 작품 사진 여러 장 천천히 전환 (2026.11.20) ─────────────── */
.sel-img { position: relative; }
.sel-img .sl { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.sel-img .sl.on { opacity: 1; }
.sel-img .sl img { width: 100%; height: 100%; object-fit: cover; }

/* ── 대상별 입구 3개 (초안) ──────────────────────────────── */
.gateways { padding: clamp(28px, 4vw, 48px) var(--pad) 0; }
.gw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.gw { position: relative; display: block; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #1b1b1b; color: #fff; }
.gw-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gw::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.62)); }
.gw:hover .gw-img img { transform: scale(1.04); }
.gw-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(16px, 1.8vw, 26px); display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.gw-body b { font-size: clamp(20px, 1.8vw, 27px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.gw-body > span { font-size: 14.5px; line-height: 1.6; opacity: .92; }
.gw-body em { font-style: normal; font-size: 13.5px; font-weight: 600; margin-top: 6px; color: var(--accent); }

/* ── 소식 ───────────────────────────────────────────────── */
.nw-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.nw-list a { display: grid; grid-template-columns: 90px 96px 1fr 28px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.nw-date { font-size: 15px; font-weight: 600; color: var(--mute); }
.nw-img { width: 96px; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f2f0; }
.nw-img img { width: 100%; height: 100%; object-fit: cover; }
.nw-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nw-txt b { font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; }
.nw-txt span { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.nw-go { font-size: 18px; color: var(--mute); text-align: right; }
.nw-list a[href]:hover b { text-decoration: underline; text-underline-offset: 4px; }
#news .more { margin-top: 28px; text-align: center; }

/* ── About 회사 개요 표 ─────────────────────────────────── */
.facts { margin-top: 28px; border-top: 1px solid var(--ink); font-size: 15.5px; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mute); font-weight: 600; }
.facts dd { margin: 0; color: var(--ink); }

@media (max-width: 860px) {
  .gw-grid { grid-template-columns: 1fr; }
  .gw { aspect-ratio: 16 / 9; }
  .nw-list a { grid-template-columns: 64px 1fr 20px; gap: 12px; }
  .nw-img { display: none; }
}

/* ── 약식 인허가 자가진단 (2026.11.20) ─────────────────────── */
.ck-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ck-intro .h2 { margin: 22px 0 20px; }
.ck-box { border: 1px solid var(--ink); padding: clamp(20px, 2.6vw, 36px); background: #fff; min-width: 0; }
.ck-box fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.ck-box legend { font-size: 15.5px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.ck-box legend .en { color: var(--accent); font-size: 12px; letter-spacing: .16em; margin-right: 10px; }
.ck-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-opts label { cursor: pointer; }
.ck-opts input { position: absolute; opacity: 0; pointer-events: none; }
.ck-opts span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; transition: all .2s; }
.ck-opts label:hover span { border-color: var(--ink); }
.ck-opts input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ck-opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-box .btn.primary { margin-top: 6px; background: var(--ink); color: #fff; }
.ck-box .btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.ck-result:empty { display: none; }
.ck-result { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.ck-head { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.ck-head i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.ck-head.r i { background: #D9534F; } .ck-head.y i { background: var(--accent); } .ck-head.g i { background: #3F9B5F; }
.ck-sec { margin-bottom: 14px; } .ck-sec b { display: block; font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.ck-sec ul { margin: 0; padding-left: 18px; } .ck-sec li { font-size: 15.5px; line-height: 1.7; margin-bottom: 4px; }
.ck-sec li.r::marker { color: #D9534F; } .ck-sec li.y::marker { color: var(--accent); } .ck-sec li.g::marker { color: #3F9B5F; }
.ck-note { font-size: 13.5px; color: var(--mute); margin: 8px 0 16px; line-height: 1.6; }
.ck-warn { color: #C0392B; font-size: 15px; }
.ck-credit { margin: 22px 0 0; font-size: 12px; color: #A5A39E; letter-spacing: .02em; }
@media (max-width: 860px) { .ck-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ── 상담폼 (2026.11.20) — 칸마다 제목 · 동의 · 접수 결과 ─────── */
.ask { gap: 18px 22px; }
.ask .f { min-width: 0; display: flex; flex-direction: column; }
.ask .full { grid-column: 1 / -1; }
.ask label { font-size: 13px; color: #B9B7B1; margin-bottom: 2px; }
.ask label i, .ask .agree i { color: var(--accent); font-style: normal; }
.ask label span { color: #7D7B76; }
.ask input::placeholder, .ask textarea::placeholder { color: #6E6C68; }
.ask .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ask .agree { font-size: 14px; color: #D8D6D0; }
.ask .agree label { display: flex; align-items: center; gap: 10px; color: #E8E6E1; font-size: 14px; cursor: pointer; }
.ask .agree input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--accent); padding: 0; border: 0; }
.ask details { margin: 8px 0 0 30px; }
.ask summary { cursor: pointer; color: #9A9893; font-size: 13px; }
.ask details p { margin-top: 8px; font-size: 13px; line-height: 1.7; color: #A9A7A2; }
.ask .btn[disabled] { opacity: .6; cursor: wait; }
.ask-msg { font-size: 15px; line-height: 1.7; min-height: 0; margin: 0; }
.ask-msg:empty { display: none; }
.ask-msg.ok { padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(233,178,27,.1); color: #fff; }
.ask-msg.err { padding: 12px 16px; border-left: 3px solid #E07A5F; background: rgba(224,122,95,.1); color: #F2E6E2; }
.ask-msg a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ── 감리 실적 (글자 목록) — 2026.11.20 ─────────────────────── */
.sv { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.sv h3 { font-size: 18px; font-weight: 700; }
.sv ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.sv li { display: flex; gap: 14px; font-size: 16px; line-height: 1.6; }
.sv .y { color: var(--mute); font-size: 14px; min-width: 40px; padding-top: 2px; }
@media (max-width: 860px) { .sv { grid-template-columns: 1fr; gap: 14px; } .sv ul { grid-template-columns: 1fr; } }

/* ── 영상 (유튜브) — 2026.11.20 ─────────────────────────────── */
.fm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.fm { display: block; min-width: 0; }
.fm-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1b1b1b; }
.fm-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; opacity: .92; }
.fm:hover .fm-img img { transform: scale(1.04); opacity: 1; }
.fm-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.fm-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.fm:hover .fm-play { background: var(--accent); }
.fm-t { font-size: 15px; line-height: 1.5; margin-top: 10px; text-wrap: balance; }
#film .more { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.v-film { margin-top: 18px; }
.v-film a { display: inline-block; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; margin-right: 14px; }
@media (max-width: 1100px) { .fm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .fm-grid { grid-template-columns: repeat(2, 1fr); } .fm-t { font-size: 14px; } }
@media (max-width: 860px) {
  .sel-head { grid-template-columns: 1fr; gap: 16px; }
  .sel, .sel.flip { grid-template-columns: 1fr; gap: 22px; }
  .sel.flip .sel-img { order: 0; }
}

/* (2026.11.20) 정사각 · 세로 사진 썸네일: 건물 전체가 보이게 (app.js fitCheck) — 양옆은 같은 사진을 흐리게 */
.fitwrap { overflow: hidden; }
.fitwrap::before { content: ""; position: absolute; inset: -24px; background: var(--fitbg) center / cover no-repeat; filter: blur(16px) saturate(.9); opacity: .85; }
img.fitall { object-fit: contain !important; }

/* (2026.11.20) 상세 창: 손 스케치 → 완성 */
.v-story { margin: 22px 0 6px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.v-story-h { font-size: 12px; letter-spacing: .14em; color: var(--accent); margin-bottom: 12px; }
.v-story-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-story-row i { font-style: normal; color: #9A9893; font-size: 18px; }
.v-story-row button { position: relative; width: 112px; aspect-ratio: 4 / 3; padding: 0; border: 1px solid rgba(255,255,255,.18); background: #222; cursor: pointer; overflow: hidden; }
.v-story-row button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-story-row button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.55); text-align: left; }
.v-story-row button:hover { border-color: var(--accent); }
.v-thumbs button.sk { outline: 1px dashed rgba(233,178,27,.8); outline-offset: -3px; }
/* (2026.11.20 밤) 아이폰 같은 스프링(튀는) 움직임 곡선 */
:root { --spring-pop: cubic-bezier(.34, 1.56, .64, 1); --spring-zoom: cubic-bezier(.32, .72, 0, 1); }
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-pop: linear(0, .034 1.4%, .141 3%, .592 8.5%, .799 11.6%, .958 15%, 1.074 18.7%, 1.128 21.6%, 1.157 24.6%, 1.16 27.6%, 1.145 30.8%, 1.088 37.4%, 1.019 46.2%, .989 52.8%, .982 58.2%, .989 66.4%, 1.001 79.6%, 1);
    --spring-zoom: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 18.4%, 1.017 23.4%, 1.042 28.6%, 1.035 33.9%, .996 50.6%, .995 57.5%, 1);
  }
}
/* 들어간 뒤 첫 화면 칸들도 살짝 튀며 나타남 */
.hc-grid .tile { animation-timing-function: var(--spring-pop); }
/* (2026.11.20 밤) 첫 화면 콜라주 '벽돌 쌓기' — 화면 가장자리까지 꽉 채움(줄 끝은 화면 밖으로 잘림, core-arch.com 처럼)
   칸 하나 = 2열. 홀수 줄은 반 칸 들어가서 화면에 딱 맞고, 짝수 줄은 칸이 하나 더 있어 양 끝이 반씩 잘림 → 빈자리 없음
   site.js hero.brick = true 일 때만 (기본은 바둑판). 이전 판(양 끝 빈칸)은 사용자 의견으로 폐기 */
.hero.collage:has(.hc-grid.brick) { overflow-x: clip; }
.hc-grid.brick { --g: clamp(4px, .5vw, 8px); gap: var(--g);
  grid-template-columns: repeat(14, minmax(0, 1fr));
  width: calc(var(--vw, 100vw) + (var(--vw, 100vw) + var(--g)) / 6); margin-left: calc(50% - var(--vw, 100vw) / 2 - (var(--vw, 100vw) + var(--g)) / 12); }
.hc-grid.brick .tile { grid-column: span 2; }
.hc-grid.brick .tile:nth-child(13n+1) { grid-column: 2 / span 2; }            /* PC: 6칸(꽉) → 7칸(양 끝 반씩) 반복 */
@media (max-width: 1100px) {
  .hc-grid.brick { grid-template-columns: repeat(10, minmax(0, 1fr)); width: calc(var(--vw, 100vw) + (var(--vw, 100vw) + var(--g)) / 4); margin-left: calc(50% - var(--vw, 100vw) / 2 - (var(--vw, 100vw) + var(--g)) / 8); }
  .hc-grid.brick .tile:nth-child(13n+1) { grid-column: span 2; }
  .hc-grid.brick .tile:nth-child(9n+1) { grid-column: 2 / span 2; }             /* 태블릿: 4칸 → 5칸 */
}
@media (max-width: 860px) {
  .hc-grid.brick { grid-template-columns: repeat(8, minmax(0, 1fr)); width: calc(var(--vw, 100vw) + (var(--vw, 100vw) + var(--g)) / 3); margin-left: calc(50% - var(--vw, 100vw) / 2 - (var(--vw, 100vw) + var(--g)) / 6); }
  .hc-grid.brick .tile:nth-child(13n+1), .hc-grid.brick .tile:nth-child(9n+1) { grid-column: span 2; }
  .hc-grid.brick .tile:nth-child(7n+1) { grid-column: 2 / span 2; }             /* 휴대폰: 3칸 → 4칸 */
}
/* (2026.11.20 밤) 인트로 원근감: 창 너머 사이트가 멀리 있다가(작게) 들어갈 때 앞으로 다가옴 */
main.intro-far { transform: scale(.84); transform-origin: 50% calc(var(--sy, 0px) + 50vh); filter: brightness(.82); }
main.intro-near { transform: none; filter: none; transform-origin: 50% calc(var(--sy, 0px) + 50vh);
  transition: transform 1.25s var(--spring-zoom), filter 1s ease; }
@media (max-width: 860px) {
  main.intro-far { transform: scale(.72); }                                   /* 휴대폰: 더 멀리서 시작 → 들어가는 느낌이 더 큼 */
  .intro.go .door { transition-duration: 1.35s; }                            /* 휴대폰: 조금 더 천천히 */
  main.intro-near { transition-duration: 1.4s, 1.1s; }
}
@media (prefers-reduced-motion: reduce) { main.intro-far, main.intro-near { transform: none; filter: none; transition: none; } }
/* (2026.11.20 밤) 약식 자가진단 → 정밀 진단기 연결 */
.ck-full { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ck-full span { font-size: 13px; color: var(--mute); line-height: 1.6; }
