/* ==========================================================================
   이룸세무법인 - style.css
   ========================================================================== */

:root {
  --navy: #0F2A4A;
  --navy-dark: #081627;
  --navy-soft: #17395f;
  --gold: #C9A15A;
  --gold-light: #E4C68A;
  --kakao: #FEE500;
  --kakao-text: #391B1B;
  --ink: #1B2430;
  --gray-600: #5C6672;
  --gray-500: #7A8593;
  --gray-100: #F1F3F5;
  --gray-50: #F8F9FA;
  --white: #FFFFFF;
  --radius: 16px;
  --container-w: 1180px;
  --shadow-soft: 0 10px 30px rgba(15, 42, 74, 0.08);
  --shadow-strong: 0 20px 50px rgba(8, 22, 39, 0.25);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --font-en: "Poppins", "Pretendard Variable", Pretendard, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  box-shadow: 0 10px 24px rgba(201, 161, 90, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(201, 161, 90, 0.45); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.refund-section .btn-outline,
.section .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.section .btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-kakao {
  background: var(--kakao);
  color: var(--kakao-text);
  box-shadow: 0 10px 24px rgba(254, 229, 0, 0.4);
}
.btn-kakao:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(254, 229, 0, 0.5); }
.btn-kakao.is-disabled { opacity: 0.5; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(15, 42, 74, 0.96);
  backdrop-filter: blur(6px);
  padding: 10px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 42px; width: auto; filter: brightness(0) invert(1); }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 20px;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
.site-header:not(.is-scrolled) .main-nav a { color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 160;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(201,161,90,0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(23,57,95,0.6), transparent 55%),
    linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--navy-soft));
  background-size: 200% 200%;
  animation: heroGradient 16s ease infinite;
}
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,22,39,0.55) 0%, rgba(8,22,39,0.35) 40%, rgba(8,22,39,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  color: var(--gold-light);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 21px;
  margin-bottom: 18px;
}
.hero-title {
  font-family: "Noto Serif KR", serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-title strong { font-weight: 600; }
.hero-title-phrase { white-space: nowrap; }
.text-gold { color: var(--gold-light); }
.hero-desc {
  font-size: clamp(15px, 1.75vw, 21px);
  color: rgba(255,255,255,0.86);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-desc-lead, .hero-desc-career { display: block; }
.hero-desc-lead { font-weight: 600; }
.hero-desc-gap { display: none; }
.hero-desc-career { margin-top: 12px; font-weight: 200; line-height: 1.5; }
.career-mobile-break { display: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  max-width: 1180px;
  width: 100%;
  margin-bottom: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 26px 10px;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1.12, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.hero-stats .stat:nth-child(1) { transform: translate(-52px, 0) scale(0.92); }
.hero-stats .stat:nth-child(2) { transform: translate(0, -52px) scale(0.92); }
.hero-stats .stat:nth-child(3) { transform: translate(0, 52px) scale(0.92); }
.hero-stats .stat:nth-child(4) { transform: translate(52px, 0) scale(0.92); }
.hero-stats.is-visible .stat { opacity: 1; transform: translate(0, 0) scale(1); }
.hero-stats.is-visible .stat:nth-child(1) { transition-delay: 0.05s; }
.hero-stats.is-visible .stat:nth-child(2) { transition-delay: 0.2s; }
.hero-stats.is-visible .stat:nth-child(3) { transition-delay: 0.35s; }
.hero-stats.is-visible .stat:nth-child(4) { transition-delay: 0.5s; }
.hero-stats .stat:hover,
.hero-stats .stat:focus-visible {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold);
}
.hero-stats .stat:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold);
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(201,161,90,0.16), rgba(201,161,90,0.05));
  color: var(--gold);
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-stats .stat:hover .stat-icon,
.hero-stats .stat:focus-visible .stat-icon,
.hero-stats .stat:active .stat-icon {
  background: linear-gradient(160deg, rgba(201,161,90,0.34), rgba(201,161,90,0.14));
  transform: scale(1.1);
}
.stat-icon svg { width: 52px; height: 52px; fill: currentColor; }
.stat-label {
  display: block;
  white-space: nowrap;
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--gray-500);
}
.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-en);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  color: var(--navy-dark);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: 0.48em; color: var(--gold); font-weight: 800; margin-left: 3px; white-space: nowrap; }

.count-num {
  display: inline-block;
  opacity: 0;
  transform: translateY(-38px);
  filter: blur(7px);
  transition: opacity 0.5s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-stats.is-visible .count-num { opacity: 1; transform: translateY(0); filter: blur(0); }
.hero-stats.is-visible .stat:nth-child(1) .count-num { transition-delay: 0.15s; }
.hero-stats.is-visible .stat:nth-child(2) .count-num { transition-delay: 0.3s; }
.hero-stats.is-visible .stat:nth-child(3) .count-num { transition-delay: 0.45s; }
.hero-stats.is-visible .stat:nth-child(4) .count-num { transition-delay: 0.6s; }

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator span {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  position: relative;
}
.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold-light);
  border-radius: 4px;
  animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ---------- Stats (이룸세무법인 현황) section ---------- */
.stats-section.section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 64px 0;
  background: linear-gradient(160deg, #FFFFFF, var(--gray-50) 55%, #EFF2F6);
}
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(201,161,90,0.16), transparent 42%),
    radial-gradient(circle at 90% 90%, rgba(15,42,74,0.10), transparent 50%);
  pointer-events: none;
}
.stats-section .container {
  position: relative;
  z-index: 1;
}

/* ---------- Section common ---------- */
.section { padding: 110px 0; }
.section-eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 13px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy-dark);
  margin-bottom: 20px;
}
.section-desc {
  color: var(--gray-600);
  font-size: 16px;
  max-width: 620px;
  margin-bottom: 56px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* ---------- Services (주요업무) section ---------- */
.services-section { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.services-grid .service-card:nth-child(3n+1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(3n+2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3n+3) { transition-delay: 0.16s; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(15,42,74,0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold);
}
.service-num {
  display: block;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 16px;
}
.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card ul li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-600);
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.services-dots { display: none; }

/* ---------- Profile section ---------- */
.profile-section { background: var(--white); }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.profile-grid .profile-card:nth-child(3n+1) { transition-delay: 0s; }
.profile-grid .profile-card:nth-child(3n+2) { transition-delay: 0.08s; }
.profile-grid .profile-card:nth-child(3n+3) { transition-delay: 0.16s; }
.profile-card {
  position: relative;
  background: var(--navy-dark);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.profile-photo { position: absolute; inset: 0; }
.photo-fade {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: profileCrossfade 9s ease-in-out infinite;
}
.profile-card .photo-fade:only-child { animation: none; opacity: 1; }
@keyframes profileCrossfade {
  0% { opacity: 1; }
  49.9% { opacity: 1; }
  50% { opacity: 0; }
  99.9% { opacity: 0; }
  100% { opacity: 1; }
}
.profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,22,39,0) 45%, rgba(8,22,39,0.88) 100%);
}
.profile-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  z-index: 2;
  color: var(--white);
  transition: opacity 0.3s ease;
}
.profile-info h3 { font-size: 20px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.profile-info .role { font-size: 13px; font-weight: 600; color: var(--gold-light); }
.branch-tag { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }

.profile-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(15, 42, 74, 0.94);
  color: var(--white);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.profile-overlay h3 { font-size: 19px; font-weight: 800; }
.profile-overlay .role { color: var(--gold-light); font-size: 13px; margin-left: 8px; }
.profile-overlay ul { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,0.9); overflow-y: auto; }
.profile-overlay ul.scrollable { max-height: 100%; padding-right: 6px; }
.profile-overlay ul li::before { content: "· "; color: var(--gold-light); }

.profile-card:hover .profile-overlay,
.profile-card:focus-visible .profile-overlay,
.profile-card.is-active .profile-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.profile-card:hover .profile-info,
.profile-card.is-active .profile-info { opacity: 0; }

/* ---------- Profile detail modal (모바일 전용, 텍스트만 표시) ---------- */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.profile-modal.is-open { opacity: 1; visibility: visible; }
.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,22,39,0.72);
}
.profile-modal-box {
  position: relative;
  z-index: 1;
  width: min(360px, 86vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  transform: translateY(16px);
  transition: transform 0.3s ease;
}
.profile-modal.is-open .profile-modal-box { transform: translateY(0); }
.profile-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(8, 22, 39, 0.6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  color: var(--white);
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.profile-modal-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-shrink: 0;
}
.profile-modal-photo .photo-fade { object-position: top; }
.profile-modal-photo .photo-fade:only-child { animation: none; opacity: 1; }
.profile-modal-body {
  padding: 20px 22px 26px;
  color: var(--white);
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.profile-modal-box .profile-overlay {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  background: transparent;
  padding: 0;
  gap: 12px;
}
.profile-modal-box .profile-overlay h3 { font-size: 17px; }
.profile-modal-box .profile-overlay .role { font-size: 12.5px; }
.profile-modal-box .profile-overlay ul { font-size: 13px; gap: 7px; }

/* ---------- Location section ---------- */
.location-section {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy) 60%, var(--navy-soft));
}
.location-section .section-eyebrow { color: var(--gold-light); }
.location-section .section-title { color: var(--white); }
.location-section .section-desc { color: rgba(255,255,255,0.82); }

.location-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 28px;
  align-items: center;
}

.branch-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.branch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.branch-card:hover, .branch-card:focus-visible, .branch-card.is-active {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold);
  box-shadow: var(--shadow-strong);
}
.branch-card-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.branch-card .branch-name { font-weight: 800; color: var(--navy-dark); font-size: 17px; }
.branch-card address { font-style: normal; color: var(--gray-600); font-size: 14px; line-height: 1.5; }
.branch-call-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, #4ade80, #16a34a);
  box-shadow: 0 3px 8px rgba(22,163,74,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.branch-call-btn svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.branch-phone-text { display: none; }
.branch-call-btn:hover, .branch-call-btn:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(22,163,74,0.45);
}

.map-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.map-stage { position: relative; width: 100%; }
.korea-map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35));
}
.map-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.connector-line {
  fill: none;
  stroke: rgba(228,198,138,0.55);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  transition: stroke 0.2s ease, stroke-width 0.2s ease;
}
.connector-line.is-active { stroke: var(--gold-light); stroke-width: 2.5; }

.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}
.map-pin:hover, .map-pin:focus-visible, .map-pin.is-active {
  transform: scale(1.4);
  background: var(--gold-light);
}

.map-zoom-inset {
  position: absolute;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.45), 0 0 0 3px rgba(228,198,138,0.85), 0 0 0 6px rgba(255,255,255,0.2);
  z-index: 2;
}
.zoom-inset-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ---------- Youtube section ---------- */
.youtube-section { background: var(--white); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.video-grid .video-card:nth-child(1) { transition-delay: 0s; }
.video-grid .video-card:nth-child(2) { transition-delay: 0.08s; }
.video-grid .video-card:nth-child(3) { transition-delay: 0.16s; }
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover, .video-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-dark); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.08); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,22,39,0) 55%, rgba(8,22,39,0.55) 100%); }
.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}
.play-icon::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%,-50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--navy-dark);
}
.video-card:hover .play-icon { transform: translate(-50%,-50%) scale(1.05); background: var(--gold-light); }
.video-card h3 {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.youtube-cta { text-align: center; }

/* video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal.is-open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(8,22,39,0.88); }
.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 920px;
  z-index: 1;
}
.video-modal-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute;
  top: -44px; right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  line-height: 1;
}

/* ---------- Refund section ---------- */
.refund-section { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: var(--white); overflow: hidden; }
.refund-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.refund-section .section-eyebrow { color: var(--gold-light); }
.refund-section .section-title { color: var(--white); }
.refund-section .section-desc { color: rgba(255,255,255,0.82); max-width: 100%; }
.refund-visual { display: flex; justify-content: center; }
.refund-badge {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 60%, #a9803f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 30px 60px rgba(201,161,90,0.35);
  animation: badgeFloat 4.5s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.refund-badge-amount { font-size: 34px; font-weight: 900; color: var(--navy-dark); }
.refund-badge-amount em { font-size: 0.5em; font-style: normal; }
.refund-badge-label { font-size: 13px; font-weight: 700; color: var(--navy); text-align: center; padding: 0 20px; }

/* ---------- News (최신소식) section ---------- */
.news-section {
  position: relative;
  background: var(--navy-dark);
  overflow: hidden;
}
.news-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.news-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.news-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 22, 39, 0.88), rgba(8, 22, 39, 0.72) 55%, rgba(15, 42, 74, 0.85));
}
.news-section .container {
  position: relative;
  z-index: 1;
}
.news-section .section-eyebrow { color: var(--gold-light); }
.news-section .section-title { color: var(--white); }
.news-section .section-desc { color: rgba(255, 255, 255, 0.78); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(228, 198, 138, 0.25);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.news-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}
.news-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--white);
}
.news-excerpt {
  flex: 1 1 auto;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.news-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  transition: gap 0.25s ease, color 0.25s ease;
}
.news-link span { transition: transform 0.25s ease; }
.news-link:hover { gap: 10px; color: var(--white); }
.news-link:hover span { transform: translateX(4px); }

/* ---------- Kakao section ---------- */
.kakao-section { background: var(--white); }
.kakao-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.kakao-section .section-eyebrow { color: #C79A00; }
.kakao-qr { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-box {
  width: 200px; height: 200px;
  background: var(--white);
  border: 3px solid var(--kakao);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}
.qr-caption { color: var(--gray-600); font-size: 13.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 50px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-logo { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-info { font-size: 13px; line-height: 1.6; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ---------- Desktop 시인성 강화 (모바일은 기존 크기 유지) ---------- */
@media (min-width: 641px) {
  .btn { font-size: 16px; }
  .main-nav a { font-size: 21px; }
  .hero-eyebrow { font-size: 22px; }
  .hero-title {
    width: min(100%, 900px);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.3);
    font-weight: 200;
    text-align: left;
  }
  .hero-title strong { font-weight: 600; }
  .hero-desc {
    width: min(100%, 900px);
    max-width: none;
    font-size: 20px;
    line-height: 1.25;
    text-align: left;
  }
  .hero-desc-career {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: 48px;
    margin-top: 20px;
    font-weight: 200;
    line-height: 1.25;
  }
  .stat span:not(strong span) { font-size: 14px; }
  .section-eyebrow { font-size: 14px; }
  .section-desc { font-size: 18px; }
  .profile-info h3 { font-size: 22px; }
  .profile-info .role,
  .branch-tag { font-size: 14px; }
  .profile-overlay h3 { font-size: 21px; }
  .profile-overlay .role { font-size: 14px; }
  .profile-overlay ul { font-size: 15px; }
  .branch-card .branch-name { font-size: 19px; }
  .branch-card address {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.4px;
  }
  .branch-card {
    align-items: flex-start;
  }
  .branch-card-info { width: 100%; }
  .branch-call-btn { display: none; }
  .branch-phone-text {
    display: inline-block;
    margin-top: 4px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
  .branch-phone-text:hover, .branch-phone-text:focus-visible {
    color: var(--navy-dark);
    text-decoration: underline;
  }
  .service-card h3 { font-size: 21px; }
  .service-card ul li { font-size: 15px; }
  .video-card h3 { font-size: 16px; }
  .refund-badge-amount { font-size: 37px; }
  .refund-badge-label { font-size: 14px; }
  .news-title { font-size: 20px; }
  .news-excerpt { font-size: 15px; }
  .news-link { font-size: 14px; }
  .qr-caption { font-size: 14.5px; }
  .footer-info { font-size: 14px; }
  .footer-copy { font-size: 13px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .refund-inner, .kakao-inner { grid-template-columns: 1fr; text-align: center; }
  .refund-visual, .kakao-qr { order: -1; }
  .section-desc { margin-left: auto; margin-right: auto; }
}

@media (max-width: 899px) {
  .location-layout { grid-template-columns: 1fr; }
  .map-wrap { order: -1; }
  .branch-col-left { order: 0; }
  .branch-col-right { order: 1; }
  .map-connectors { display: none; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--navy-dark);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 150;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 26px; }
  .main-nav a { font-size: 15px; }
  .nav-toggle { display: flex; }
  .hero-eyebrow { font-size: 17px; }
  .eyebrow-dot { display: none; }
  .eyebrow-break { display: block; margin-top: 2px; }
  .career-mobile-break { display: block; }
  .hero-title { font-size: 27px; }
  .hero-content { padding-bottom: 48px; }
  .stats-section.section { padding: 56px 0; min-height: 100vh; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat { padding: 28px 8px; gap: 12px; border-radius: 18px; }
  .stat-icon { width: 50px; height: 50px; }
  .stat-icon svg { width: 24px; height: 24px; }
  .stat-label { font-size: 16.25px; }
  .stat-value { font-size: clamp(22px, 7.2vw, 30px); }
  .services-carousel { position: relative; overflow: hidden; touch-action: pan-y; }
  .services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    transition: transform 0.6s ease;
  }
  .services-grid .service-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
  /* 캐러셀 카드는 상하 reveal 애니메이션 없이 좌우 이동만 발생하도록 고정 */
  .services-carousel .service-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-card { padding: 26px 22px; }
  .services-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
  }
  .services-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(15,42,74,0.18);
    border: none;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
  }
  .services-dot.is-active {
    width: 22px;
    border-radius: 4px;
    background: var(--gold);
  }
  .branch-col { gap: 10px; }
  .branch-card { padding: 12px 14px; gap: 10px; min-height: 78px; }
  .branch-card-info { gap: 2px; }
  .branch-card .branch-name { font-size: 15px; }
  .branch-card address { font-size: 12.5px; line-height: 1.3; letter-spacing: -0.5px; }
  .branch-call-btn { width: 38px; height: 38px; border-radius: 10px; }
  .branch-call-btn svg { width: 19px; height: 19px; }
  .profile-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
  .profile-card {
    aspect-ratio: unset;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    text-align: center;
    transition: transform 0.25s ease;
  }
  .profile-card:active { transform: scale(0.96); }
  .profile-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin: 0 auto 8px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }
  .profile-photo::after { display: none; }
  .profile-info { position: static; padding: 0; }
  .profile-info h3 {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-dark);
  }
  .profile-info h3 .role { display: block; margin-top: 2px; font-size: 10.5px; color: var(--gold); font-weight: 600; }
  .branch-tag { display: none; }
  /* 모바일은 인라인 오버레이 대신 별도 모달을 쓰므로 hover/is-active 오버레이 노출을 무효화 */
  .profile-overlay { display: none; }
  .profile-card:hover .profile-info,
  .profile-card:focus-visible .profile-info,
  .profile-card.is-active .profile-info { opacity: 1; }
  .video-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .logo img { height: 26px; }
}
