:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --primary-soft: #fff7ed;
  --dark: #0f172a;
  --dark-hover: #1e293b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --latin: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p, li, dt, dd, span, strong, b, small, a, button {
  word-break: keep-all;
}

.shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 900;
}

.template-switcher {
  display: inline-flex;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.switch-btn {
  border: 0;
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.switch-btn:hover {
  color: var(--text-main);
}

.switch-btn.is-active {
  background: var(--surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.header-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* Template Panel Animation */
.template-panel {
  animation: fadeIn 0.35s ease;
}

.template-panel[hidden] {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons & Common Elements */
.eyebrow {
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-outline {
  background: var(--surface);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.button-outline:hover {
  border-color: var(--text-main);
  background: var(--bg-subtle);
}

.button-secondary {
  background: var(--bg-muted);
  color: var(--text-body);
  padding: 11px 18px;
  font-size: 14px;
}

.button-secondary:hover {
  background: var(--border);
  color: var(--text-main);
}

.button-accent {
  background: var(--primary);
  color: #ffffff;
  padding: 16px 28px;
  font-size: 16px;
}

.button-accent:hover {
  background: var(--primary-hover);
}

.button-white {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  padding: 16px 24px;
  font-size: 16px;
}

.button-white:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-main);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-stats span {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: #0f172a;
  display: grid;
  place-items: center;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-card-overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.overlay-tag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #fdba74;
  margin-bottom: 2px;
}

.hero-card-overlay strong {
  font-size: 15px;
  font-weight: 700;
}

.overlay-link {
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.overlay-link:hover {
  background: var(--primary);
}

/* Trust Strip */
.trust-section {
  padding: 56px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--latin);
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.trust-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.trust-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 620px;
}

/* Portfolio Grid Section */
.portfolio-section {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.filter-chip.is-active {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transition: opacity 0.2s var(--ease-out);
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out), opacity 0.25s var(--ease-out);
}

.portfolio-card.is-entering {
  animation: cardEnter 0.36s var(--ease-out) both;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.portfolio-card[hidden] {
  display: none;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.portfolio-card:active {
  transform: translateY(-1px) scale(0.995);
}

.card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .card-thumb img {
  transform: scale(1.02);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 8px;
  word-break: keep-all;
}

.card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-more {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.portfolio-pagination {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio-pagination[hidden] {
  display: none;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.page-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.page-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.page-status {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Service Accordion Section */
.service-section {
  padding: 88px 0;
}

.service-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.service-intro h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.service-desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.prep-box {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--primary-soft);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
}

.prep-box strong {
  display: block;
  font-size: 14px;
  color: var(--primary-hover);
  margin-bottom: 10px;
}

.prep-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.service-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
  overflow: hidden;
}

.service-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.service-item.is-open {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.service-option {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 36px 1fr auto 28px;
  align-items: center;
  text-align: left;
  gap: 12px;
}

.service-no {
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.service-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.service-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-body);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.service-item.is-open .service-badge {
  background: var(--primary-soft);
  color: var(--primary);
}

.service-icon {
  font-style: normal;
  font-size: 18px;
  color: var(--text-muted);
  text-align: right;
  transition: transform 0.3s var(--ease-out), color 0.2s var(--ease-out);
}

.service-item.is-open .service-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.service-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s var(--ease-out), opacity 0.25s var(--ease-out);
}

.service-item.is-open .service-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}

.service-detail-inner {
  overflow: hidden;
}

.service-detail-inner p {
  padding: 0 24px 20px 72px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Process Section */
.process-section {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.process-grid {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-block;
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Map & Curated Templates */
.map-template,
.curated-template {
  padding: 56px 0 88px;
  background: var(--bg-subtle);
}

.map-header,
.curated-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.map-header h1,
.curated-header h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.curated-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.curation-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.curation-banner.is-solution {
  border-left-color: var(--dark);
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.curation-banner-badge {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: -12px;
  white-space: nowrap;
}

.curation-banner-body h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.curation-banner-body p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.curation-banner-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.curation-banner-points span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.solution-problem-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 3px 9px;
  margin-bottom: 8px;
  width: fit-content;
  white-space: nowrap;
}

.map-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.map-stat-card strong {
  font-family: var(--latin);
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
}

.map-stat-card strong span {
  font-size: 20px;
  font-family: var(--sans);
}

.map-stat-card b {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  white-space: nowrap;
}

.map-stat-card small {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.region-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.region-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.region-btn span {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  white-space: nowrap;
}

.region-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.region-btn.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #ffffff;
}

.region-btn.is-active span {
  background: var(--primary);
  color: #ffffff;
}

.map-stage {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 20px;
  height: 620px;
}

.map-board {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e2e8f0;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

#districtMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-inner-list {
  position: absolute;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: 280px;
  max-width: calc(100% - 28px);
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.leaflet-container {
  font-family: var(--sans);
  background: #e2e8f0;
}

.leaflet-tile-pane {
  filter: saturate(0.75) contrast(0.96) brightness(1.02);
}

.map-Floating-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-hq-btn,
.map-reset-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-out);
}

.map-hq-btn {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}

.map-hq-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.map-reset-btn:hover {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}

.hq-pin-wrapper {
  background: transparent;
  border: 0;
}

.hq-star-pin {
  display: inline-block;
  color: #ea580c;
  font-size: 20px;
  line-height: 1;
  -webkit-text-stroke: 1.5px #ffffff;
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.45);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}

.hq-star-pin.is-large {
  font-size: 24px;
  -webkit-text-stroke: 2px #ffffff;
}

.hq-star-pin:hover {
  transform: translate(-50%, -50%) scale(1.22);
}

/* Studio Location & Field Tour Section */
.studio-location-section {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.location-card {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.location-info h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin-bottom: 14px;
}

.location-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.location-details {
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
}

.location-details > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.location-details dt {
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.location-details dd {
  margin: 0;
  color: var(--text-main);
}

.location-details dd strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.location-details dd span {
  font-size: 13px;
  color: var(--text-muted);
}

.address-with-minimap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.address-text-block {
  flex: 1;
  min-width: 0;
}

.address-minimap-thumb {
  position: relative;
  width: 118px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: #e2e8f0;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.address-minimap-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.2);
}

.address-minimap-thumb img {
  width: 185%;
  height: 185%;
  object-fit: cover;
  object-position: 18% 54%;
  display: block;
  filter: contrast(1.03) saturate(1.06);
}

.minimap-star-pin {
  position: absolute;
  top: 46%;
  left: 44%;
  transform: translate(-50%, -50%);
  color: #ea580c;
  font-size: 16px;
  line-height: 1;
  -webkit-text-stroke: 1.2px #ffffff;
  text-shadow: 0 2px 5px rgba(15, 23, 42, 0.45);
  pointer-events: none;
}

.minimap-caption {
  position: absolute;
  right: 5px;
  bottom: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tel-highlight {
  font-weight: 800;
  color: var(--primary);
  font-size: 16px;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.location-Tour-box {
  display: flex;
  flex-direction: column;
}

.studio-map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.studio-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--dark);
  color: #ffffff;
  font-size: 13px;
}

.studio-map-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.studio-map-center-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s var(--ease-out);
}

.studio-map-center-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.studio-map-canvas {
  width: 100%;
  flex: 1;
  min-height: 240px;
  max-height: 300px;
  background: #e2e8f0;
  position: relative;
  z-index: 1;
}

.studio-map-footer {
  padding: 14px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.studio-map-footer strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.studio-map-footer span {
  font-size: 12px;
  color: var(--text-muted);
}

.kakao-nav-link {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #fee500;
  color: #191919;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.15s var(--ease-out);
}

.kakao-nav-link:hover {
  transform: translateY(-1px);
}

.studio-spot-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.45);
  transform: translate(-50%, -125%);
}

.studio-spot-pin::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 7px 0;
  border-style: solid;
  border-color: var(--primary) transparent transparent;
}

.district-pin-wrapper {
  background: transparent;
  border: 0;
}

.district-pin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid var(--primary);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  transform: translate(-50%, -50%);
  transition: transform 0.22s var(--ease-spring), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  cursor: pointer;
}

.district-pin strong {
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.district-pin:hover {
  transform: translate(-50%, -56%) scale(1.06);
  border-color: var(--dark);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.district-pin.is-selected {
  background: var(--dark);
  border-color: var(--dark);
  color: #ffffff;
  transform: translate(-50%, -58%) scale(1.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}

.district-pin.is-selected strong {
  background: var(--primary);
  color: #ffffff;
}

.district-list-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.district-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.district-list-eyebrow {
  display: block;
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 3px;
}

.district-post-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
}

.district-list-hint {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.district-post-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.district-post-item {
  width: 100%;
  text-align: left;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.4;
  transition: all 0.16s var(--ease-out);
}

.district-post-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.5;
  padding-bottom: 2px;
}

.district-post-item small {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
}

.district-post-item:hover {
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateX(2px);
}

.district-post-item.is-selected {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

.district-post-item.is-selected small {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.project-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.preview-image {
  position: relative;
  height: 310px;
  flex-shrink: 0;
  background: #0f172a;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.22s var(--ease-out), transform 0.35s var(--ease-out);
}

.preview-image img.is-switching {
  opacity: 0.35;
  transform: scale(1.015);
}

.preview-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.preview-copy {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  transition: opacity 0.2s var(--ease-out), transform 0.22s var(--ease-out);
}

.preview-copy.is-switching {
  opacity: 0.55;
  transform: translateY(3px);
}

.preview-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.preview-copy h2 {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0;
  word-break: keep-all;
}

.preview-meta {
  margin: 10px 0 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.preview-meta > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 6px 0;
  border-bottom: 1px solid var(--bg-muted);
  font-size: 13px;
}

.preview-meta dt {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.preview-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
}

.preview-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-actions .button {
  padding: 12px 12px;
  font-size: 13.5px;
  white-space: nowrap;
}

.map-source-note {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Inquiry CTA Section */
.inquiry-section {
  padding: 72px 0;
  background: var(--dark);
  color: #ffffff;
}

.inquiry-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.inquiry-copy .eyebrow {
  color: #fdba74;
}

.inquiry-copy h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.inquiry-copy p {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.65;
}

.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-address-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-minimap-chip {
  position: relative;
  width: 56px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #e2e8f0;
  flex-shrink: 0;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.footer-minimap-chip:hover {
  transform: scale(1.06);
  border-color: var(--primary);
}

.footer-minimap-chip img {
  width: 190%;
  height: 190%;
  object-fit: cover;
  object-position: 18% 54%;
  display: block;
}

.footer-minimap-dot {
  position: absolute;
  top: 48%;
  left: 42%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  border: 1.5px solid #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.28);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .service-layout,
  .map-stage,
  .location-card {
    grid-template-columns: 1fr;
  }

  .trust-section {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-header,
  .curated-header,
  .inquiry-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .curation-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .curation-banner-points {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .map-stage {
    height: auto;
  }

  .map-board {
    height: 480px;
  }

  .map-inner-list {
    width: 240px;
  }

  .project-preview {
    height: auto;
  }

  .preview-image {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header-cta {
    display: none;
  }

  .switch-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero-section {
    padding: 40px 0 48px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portfolio-grid,
  .process-grid,
  .preview-actions {
    grid-template-columns: 1fr;
  }

  .map-board {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  #districtMap {
    position: relative;
    height: 300px;
  }

  .map-inner-list {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    max-height: 260px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-option {
    grid-template-columns: 28px 1fr auto 22px;
    padding: 16px 18px;
  }

  .service-detail-inner p {
    padding: 0 18px 16px 56px;
  }

  .location-card {
    padding: 24px 20px;
    gap: 28px;
  }

  .location-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
