/* Dalpaengi AptMarble — 아파트대리석바닥 The달팽이
   visual-designer-INSIDE-V2 재작업(신버전 마스터프롬프트): 디자인 1번(34aptr) + font_id 0(30apt)
   컬러: deep #161616(PrettyBlack) / accent #555A8C(인디고, 16톤 id8) / mid-band #DCD8CF(그레이지)
   폰트: h1/h2/h3/본문/메뉴/링크 = Noto Serif KR(serif) / button·.btn·.nav-cta = Pretendard 600
*/

:root {
  --deep: #161616;
  --deep-2: #2A2A2A;
  --accent: #555A8C;
  --accent-dim: #42466C;
  --accent-soft: #E6E7F0;
  --accent-btn-text: #FFFFFF;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;
  --ink: #1A1A1A;
  --desc: #475569;
  --bar-chrome: #EDF0F2;
  --cream: #DCD8CF;
  --cream-soft: #EDEAE2;
  --border: #DDD8CE;
  --radius: 2px;
  --radius-img: 10px;
  --radius-btn: 8px;
  --font-serif: "Noto Serif KR", serif;
  --font-sans: "Pretendard", "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font: var(--font-serif);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; font-family: inherit; }
h1, h2, h3 { margin: 0 0 16px; font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.01em; word-break: keep-all; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 12px; word-break: keep-all; }
ul { word-break: keep-all; }

.am-skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--deep); color: #fff; padding: 10px 16px;
}
.am-skip:focus { left: 0; }

.am-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--desc); margin-bottom: 12px; display: block;
}

/* ── 이미지 자리 placeholder (media-manager 단계 전, 안전 폴백) ── */
.am-ph {
  display: block; width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(199,194,206,.35) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, var(--bg-soft) 0%, var(--accent-soft) 100%);
  position: relative;
}
.am-ph::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 34px; height: 34px;
  background-color: var(--accent-dim);
  opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4l4.6 13.2L42 22l-13.4 4.8L24 40l-4.6-13.2L6 22l13.4-4.8L24 4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4l4.6 13.2L42 22l-13.4 4.8L24 40l-4.6-13.2L6 22l13.4-4.8L24 4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── 버튼 ─────────────────────────────────────────────────── */
.am-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--deep); color: #fff;
  padding: 14px 28px; font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  border-radius: var(--radius-btn); border: none; cursor: pointer;
  transition: background .2s, transform .15s, color .2s;
}
.am-btn:hover { background: var(--deep-2); transform: translateY(-1px); }
.am-btn-lg { padding: 17px 36px; font-size: 16px; }
.am-btn-accent { background: var(--accent); color: var(--accent-btn-text); }
.am-btn-accent:hover { background: var(--accent-dim); }
.am-btn-outline {
  background: transparent; border: 1.5px solid #fff; color: #fff;
}
.am-btn-outline:hover { background: #fff; color: var(--deep); }

/* ── 헤더 (2-state, B-22) ─────────────────────────────────── */
.am-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22,22,22,.22);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.am-header.is-scrolled {
  background: var(--bar-chrome);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 18px rgba(22,22,22,.10);
}
.am-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.am-logo-group { display: flex; flex-direction: column; gap: 2px; }
.am-logo { font-size: 21px; font-weight: 800; color: #fff; transition: color .3s; }
.am-logo span { color: var(--accent); transition: background .3s, color .3s, padding .3s; border-radius: 4px; }
.am-header.is-scrolled .am-logo { color: var(--deep); }
.am-header.is-scrolled .am-logo span {
  background: var(--accent); color: var(--deep); padding: 1px 7px;
}
.am-logo-tagline { font-size: 12px; color: rgba(255,255,255,.75); font-weight: 500; transition: color .3s; }
.am-header.is-scrolled .am-logo-tagline { color: var(--desc); }
.am-header-right { display: flex; align-items: center; gap: 30px; }
.am-nav { display: flex; gap: 26px; }
.am-nav a {
  position: relative; color: #fff; font-size: 15px; font-weight: 500; opacity: .9; transition: opacity .3s, color .3s;
  padding-bottom: 4px;
}
.am-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.am-nav a:hover { opacity: 1; }
.am-nav a:hover::after { transform: scaleX(1); }
.am-header.is-scrolled .am-nav a { color: var(--ink); }
.am-btn-header { white-space: nowrap; }
.am-burger { display: none; }
.am-burger span { background: #fff; display: block; }
.am-header.is-scrolled .am-burger span { background: var(--deep); }
.am-nav-mobile { display: none; }

/* ── 히어로 (홈, 타이포그래피 중심) ───────────────────────── */
.am-hero {
  position: relative; overflow: hidden; color: #fff;
  margin-top: -77px; padding-top: 77px;
  min-height: 640px; display: flex; align-items: flex-end;
  background: linear-gradient(160deg, var(--deep) 0%, #262626 55%, #303030 100%);
}
.am-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.am-hero-bg img, .am-hero-bg.am-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.am-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(22,22,22,.62) 0%, rgba(22,22,22,.32) 45%, rgba(22,22,22,.18) 100%);
}
.am-hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 0 24px 84px;
}
.am-hero-inner h1 { font-size: 25px; font-weight: 800; line-height: 1; color: #fff; margin: 0 0 18px; }
.am-hero-brand { font-size: 50px; font-weight: 600; letter-spacing: .03em; margin: 0 0 18px; color: var(--accent); }
.am-hero-brand span { color: #fff; font-weight: 400; }
.am-hero-desc { font-size: 17px; color: #ececf1; margin: 0; max-width: 620px; }

/* ── 서브히어로 (내부 페이지, 메인 히어로 이미지 고정) ─────── */
.am-subhero {
  position: relative; overflow: hidden;
  margin-top: -77px; padding-top: 77px;
  min-height: 380px;
  display: flex; align-items: flex-end;
  background: linear-gradient(160deg, var(--deep) 0%, #262626 55%, #303030 100%);
}
.am-subhero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(22,22,22,.68) 0%, rgba(22,22,22,.34) 50%, rgba(22,22,22,.16) 100%);
}
.am-subhero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.am-subhero-bg img, .am-subhero-bg.am-ph { width: 100%; height: 100%; object-fit: cover; }
.am-subhero-content {
  position: relative; z-index: 2;
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 0 24px 46px;
}
.am-subhero-content .am-eyebrow { color: var(--accent); }
.am-subhero-content h1 { color: #fff; font-size: clamp(28px, 4.4vw, 42px); text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.am-subhero-content .am-hero-desc { color: #f1f1f5; text-shadow: 0 1px 8px rgba(0,0,0,.3); }

/* ── 섹션 공통 ─────────────────────────────────────────────── */
.am-section { padding: 76px 24px; }
.am-section-alt { background: var(--bg-soft); }
.am-section-cream { background: var(--cream); }
.am-section-dark { background: var(--deep); color: #fff; }
.am-section-inner { max-width: 1200px; margin: 0 auto; }
.am-section-head { max-width: 640px; margin: 0 0 40px; }
.am-section-dark .am-eyebrow { color: var(--accent); }

/* ── 퀵링크 (홈) ──────────────────────────────────────────── */
.am-quicklinks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.am-quicklink-card {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  border-radius: var(--radius-img); aspect-ratio: 4/3; background: var(--deep);
}
.am-quicklink-card img, .am-quicklink-card .am-ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}
.am-quicklink-card:hover img { transform: scale(1.06); filter: brightness(1.06); }
.am-quicklink-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(22,22,22,.72) 0%, rgba(22,22,22,0) 55%);
}
.am-quicklink-card span {
  position: relative; z-index: 2; padding: 20px; color: #fff; font-weight: 700; font-size: 15px;
}
.am-quicklink-cta {
  background: var(--accent); align-items: center; justify-content: center;
}
.am-quicklink-cta span { padding: 0; color: var(--deep); }
.am-quicklink-cta::after { display: none; }
.am-quicklink-cta:hover { background: var(--accent-dim); }

/* ── 서비스 그리드 (SVG 라인아이콘, B-20) ─────────────────── */
.am-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.am-service-card {
  padding: 30px 26px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.am-service-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22,22,22,.08); }
.am-service-card svg { width: 40px; height: 40px; color: var(--deep); margin-bottom: 16px; display: block; }
.am-service-card h3 { font-size: 16px; margin-bottom: 8px; }
.am-service-card p { font-size: 14px; color: var(--desc); margin: 0; }

/* ── 프로세스 ─────────────────────────────────────────────── */
.am-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 8px; }
.am-process-step span { display: block; font-size: 36px; font-weight: 800; color: var(--accent-dim); margin-bottom: 12px; }
.am-process-step h3 { margin-bottom: 8px; }
.am-process-step p { color: var(--desc); font-size: 14px; margin: 0; }

/* ── 브랜드소개 — 레이아웃 타입 F (와이드 이미지 1장 + 글左·이미지3右) ── */
.am-about-wide { border-radius: var(--radius-img); overflow: hidden; margin-bottom: 48px; aspect-ratio: 21/9; }
.am-about-wide img, .am-about-wide.am-ph { width: 100%; height: 100%; object-fit: cover; }
.am-about-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.am-about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; border-top: 1px solid var(--border); padding-top: 26px; }
.am-about-fact h3 { font-size: 14px; color: var(--deep); margin-bottom: 6px; }
.am-about-fact p { font-size: 13px; color: var(--desc); margin: 0; }
.am-about-side { display: grid; grid-template-columns: 1fr; gap: 16px; }
.am-about-side img, .am-about-side .am-ph { border-radius: var(--radius-img); aspect-ratio: 16/10; width: 100%; }

/* ── 시공사례 미리보기 ────────────────────────────────────── */
.am-portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.am-portfolio-card { display: block; border: 1px solid var(--border); border-radius: var(--radius-img); overflow: hidden; }
.am-portfolio-card img, .am-portfolio-card .am-ph { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .3s; }
.am-portfolio-card:hover img { transform: scale(1.04); }
.am-portfolio-body { padding: 18px 20px; }
.am-portfolio-meta {
  font-size: 12px; color: var(--deep); font-weight: 700; letter-spacing: .04em;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border);
}
.am-portfolio-body h3 { font-size: 17px; margin-bottom: 6px; }
.am-portfolio-body p { font-size: 13px; color: var(--desc); margin-bottom: 10px; }
.am-link-more { font-weight: 600; color: var(--deep); font-size: 13px; }
.am-portfolio-all { display: block; text-align: center; }

/* ── 홈 #cases — 디자인 1번(34aptr): 4장 2×2, 590×396, 호버 시 흰면+상세 첫 문단 ── */
.am-case4-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 32px 0; }
.am-case4-card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 590 / 396; border: 1px solid var(--border); border-radius: var(--radius-img);
  background: var(--deep);
}
.am-case4-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, opacity .4s ease;
}
.am-case4-num {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: rgba(22,22,22,.55); padding: 5px 10px; border-radius: 2px;
  transition: opacity .3s ease;
}
.am-case4-face {
  position: absolute; inset: 0; z-index: 1;
  background: var(--bg); opacity: 0; transform: translateY(10px);
  padding: 34px; display: flex; flex-direction: column; justify-content: center;
  transition: opacity .35s ease, transform .35s ease;
}
.am-case4-face .am-eyebrow { margin-bottom: 10px; }
.am-case4-face h3 { font-size: 18px; margin-bottom: 10px; }
.am-case4-face p { font-size: 14px; color: var(--desc); line-height: 1.75; margin: 0 0 14px; }
.am-case4-card:hover img { transform: scale(1.03); opacity: .1; }
.am-case4-card:hover .am-case4-num { opacity: 0; }
.am-case4-card:hover .am-case4-face { opacity: 1; transform: none; }

/* ── FAQ ──────────────────────────────────────────────────── */
.am-faq-list { max-width: 800px; }
.am-faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.am-faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.am-faq-item summary::-webkit-details-marker { display: none; }
.am-faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent-dim); flex-shrink: 0; }
.am-faq-item[open] summary::after { content: '\2212'; }
.am-faq-item p { margin-top: 12px; color: var(--desc); }

/* ── 상담 카드 (contact) ──────────────────────────────────── */
.am-contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 780px; }
.am-contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft);
}
.am-contact-card svg { width: 42px; height: 42px; color: var(--deep); margin-bottom: 16px; }
.am-contact-card .am-btn { margin-top: 18px; width: 100%; }
.am-contact-info {
  margin-top: 32px; padding: 24px 28px; border-left: 3px solid var(--accent);
  background: var(--bg-soft); color: var(--desc); font-size: 14px; max-width: 780px;
}

/* ── 지역/시공사례/가이드 본문 ────────────────────────────── */
.am-article-body { max-width: 780px; color: var(--desc); font-size: 16px; }

/* ── 시공사례·지역 본문 상단 스토리 블록 (사진 1장 → 라벨 → 제목 → 글) ── */
.am-story-block { max-width: 780px; margin-bottom: 32px; }
.am-story-img {
  width: 550px; height: 410px; object-fit: cover; border-radius: 18px;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .am-story-img { width: 100%; height: auto; aspect-ratio: 550 / 410; }
}
.am-story-label {
  font-size: 11px; font-weight: 400; letter-spacing: 0.04em;
  color: #9CA3AF; margin-bottom: 10px; display: block;
}
.am-story-title {
  font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: #111111;
  margin: 0 0 20px;
}
.am-story-block .am-article-body { font-size: 15px; line-height: 1.85; color: #4B5563; }
.am-story-block .am-article-body strong { color: #000000; font-weight: 700; }
.am-list { padding-left: 20px; max-width: 780px; color: var(--desc); }
.am-list li { margin-bottom: 8px; }
.am-proc-table { width: 100%; max-width: 780px; border-collapse: collapse; margin-top: 8px; }
.am-proc-table th, .am-proc-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--desc); }
.am-proc-table th { color: var(--accent-dim); font-weight: 700; width: 90px; }
.am-tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.am-tag-list span {
  font-size: 13px; padding: 8px 14px; border: 1px solid var(--border);
  background: var(--bg-soft); border-radius: 999px; color: var(--desc);
}
.am-case-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.am-case-outcomes li {
  list-style: none; padding: 18px; background: var(--bg-soft); border-left: 3px solid var(--accent);
  font-size: 14px; color: var(--desc);
}

/* ── 시공사례 상세: 시공전/시공중/시공후 3단 그리드 (34aptr 레이아웃, 4장/2행/세로나열 금지) ── */
.am-case-gallery-grid {
  display: grid !important; grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px; margin: 24px 0; max-width: 780px;
}
.am-case-gallery-grid.am-gallery-2 { grid-template-columns: repeat(2, 1fr) !important; }
.am-case-gallery-grid figure { margin: 0; }
.am-case-gallery-grid img, .am-case-gallery-grid .am-ph { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; display: block; }
.am-case-gallery-grid figcaption { text-align: center; font-size: 13px; color: var(--desc); margin-top: 8px; }

/* ── 시공사례 상세: 관련 시공사례 2카드 1행 ── */
.am-case-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 24px 0; max-width: 780px; }
.am-case-related-card img, .am-case-related-card .am-ph { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; display: block; }
.am-case-related-card h3 { margin: 12px 0 0; font-size: 15px; color: var(--ink); }
.am-cta-center { text-align: center; margin: 32px 0 0; max-width: 780px; }

/* ── 지역 카드 그리드 (키워드 전용 페이지) ────────────────── */
.am-region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.am-region-chip {
  padding: 16px; text-align: center; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s;
}
.am-region-chip:hover { border-color: var(--deep); background: var(--bg-soft); }

/* ── 사이트맵 ─────────────────────────────────────────────── */
.am-sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.am-sitemap-col h2 { font-size: 15px; color: var(--deep); margin-bottom: 14px; }
.am-sitemap-col a { display: block; padding: 6px 0; color: var(--desc); font-size: 14px; }
.am-sitemap-col a:hover { color: var(--deep); text-decoration: underline; }

/* ── Closing (B-25, 650px 풀블리드) ──────────────────────── */
.am-closing { position: relative; height: 650px; background: linear-gradient(160deg, var(--deep) 0%, #262626 55%, #303030 100%); }
.am-closing-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-closing-bg img, .am-closing-bg.am-ph { width: 100%; height: 100%; object-fit: cover; }
.am-closing-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(22,22,22,.5) 0%, rgba(22,22,22,.72) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 26px; padding: 40px;
}
.am-closing-copy {
  color: #fff; font-size: 30px; font-weight: 700; line-height: 1.4; margin: 0; max-width: 640px;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.am-closing-quote { color: #ececf1; font-size: 14px; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.am-closing .am-btn { border-radius: 0; }
@media (max-width: 560px) { .am-closing { height: 520px; } .am-closing-copy { font-size: 22px; } }

/* ── 푸터 (B-26 · 다크 딥 배경) ───────────────────────────── */
.am-footer { background: var(--deep); color: rgba(255,255,255,.62); padding: 56px 24px 24px; }
.am-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 32px; }
.am-footer-logo { font-size: 20px; font-weight: 800; color: #fff; }
.am-footer-logo span { color: var(--accent); }
.am-footer-desc { font-size: 14px; margin-top: 8px; }
.am-footer-col h3 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; }
.am-footer-col a { display: block; font-size: 13px; padding: 4px 0; color: rgba(255,255,255,.62); transition: color .2s; }
.am-footer-col a:hover { color: #fff; }
.am-footer-biz p { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 0; line-height: 1.7; }
.am-footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; color: rgba(255,255,255,.4);
}

/* ── 하단 고정 상담바 (B-23) ──────────────────────────────── */
.am-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  padding: 13px 16px; background: var(--bar-chrome);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 22px rgba(22,22,22,.10);
  transform: translateY(100%); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.am-sticky-cta.is-visible { transform: translateY(0); opacity: 1; }
.am-sticky-cta a {
  width: 100%; max-width: 420px; background: var(--deep); color: #fff;
  padding: 13px 20px; text-align: center; border-radius: var(--radius-btn); font-weight: 700; font-size: 15px;
}

/* ── 애니메이션 훅 (CLAUDE.md 서브페이지 표준) ────────────── */
[data-anim] { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
[data-anim].is-in { opacity: 1; transform: none; }
[data-anim="slide-left"] { transform: translateX(-24px); }
[data-anim="slide-left"].is-in { transform: none; }
[data-anim="scale-in"] { transform: scale(.94); }
[data-anim="scale-in"].is-in { transform: none; }
[data-anim][data-delay="1"] { transition-delay: .05s; }
[data-anim][data-delay="2"] { transition-delay: .1s; }
[data-anim][data-delay="3"] { transition-delay: .15s; }
[data-anim][data-delay="4"] { transition-delay: .2s; }
[data-anim][data-delay="5"] { transition-delay: .25s; }

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .am-hero { min-height: 540px; }
  .am-quicklinks-grid, .am-services-grid, .am-portfolio-grid, .am-region-grid { grid-template-columns: repeat(2, 1fr); }
  .am-case4-face { padding: 24px; }
  .am-process-grid { grid-template-columns: 1fr; gap: 24px; }
  .am-about-row { grid-template-columns: 1fr; gap: 32px; }
  .am-about-side { grid-template-columns: repeat(3, 1fr); }
  .am-footer-inner, .am-sitemap-grid { grid-template-columns: 1fr 1fr; }
  .am-contact-cards, .am-case-outcomes { grid-template-columns: 1fr; }
  .am-nav { display: none; }
  .am-btn-header { display: none; }
  .am-burger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; margin-left: auto; padding: 8px;
  }
  .am-burger span { width: 22px; height: 2px; }
  .am-nav-mobile {
    display: none; flex-direction: column; background: var(--bg); padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
  .am-nav-mobile.is-open { display: flex; }
  .am-nav-mobile a { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
}
@media (max-width: 560px) {
  .am-quicklinks-grid, .am-services-grid, .am-process-grid, .am-portfolio-grid, .am-region-grid,
  .am-sitemap-grid, .am-footer-inner, .am-about-side, .am-contact-cards, .am-case-outcomes,
  .am-case4-grid {
    grid-template-columns: 1fr;
  }
  .am-hero-inner, .am-subhero-content { padding-bottom: 40px; }
}

/* ── Guide 허브 / 가이드 하단 관련 사례 / 모바일 메뉴 ── */
.am-guide-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.am-guide-head p { color: var(--desc); }
.am-guide-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: 1200px; margin: 0 auto; }
.am-guide-grid .am-portfolio-card { flex: 0 0 calc((100% - 48px) / 3); }
.am-case-related-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: none; }
@media (max-width: 900px) { .am-guide-grid .am-portfolio-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 767px) {
  body { word-break: keep-all; overflow-wrap: break-word; }
  .am-case-related-grid--3 { grid-template-columns: 1fr; }
  .am-nav-mobile.is-open { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 6px; }
  .am-nav-mobile a { font-size: 13px; text-align: center; padding: 10px 2px; white-space: nowrap; }
  .am-nav-mobile a.am-btn { grid-column: 1 / -1; margin-top: 8px; white-space: normal; }
}
@media (max-width: 560px) { .am-guide-grid .am-portfolio-card { flex-basis: 100%; } }
