@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+KR:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette (Cold Luxury Monochrome) */
  --color-primary: #000000;       /* 완전 블랙 */
  --color-primary-dark: #000000;
  --color-primary-light: #1A1A1A;
  --color-secondary: #666666;     /* 다크 실버/그레이 */
  --color-secondary-light: #F3F3F3; /* 라이트 실버/그레이 */
  --color-background: #FFFFFF;    /* 완전 화이트 배경 */
  --color-surface: #FAFAFA;       /* 아주 밝은 쿨 그레이 */
  --color-surface-card: #FFFFFF;
  --color-text: #000000;          /* 텍스트: 완전 블랙 */
  --color-text-muted: #666666;
  --color-accent: #111111;        /* 포인트: 짙은 차콜/블랙 */
  --color-accent-light: #F0F0F0;
  --color-white: #FFFFFF;
  --color-border: #EBEBEB;        /* 아주 얇고 차가운 경계선 */

  /* Typography */
  --font-title: 'Outfit', 'Noto Sans KR', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', sans-serif;

  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.06);

  /* Layout Constants */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

p {
  color: var(--color-text-muted);
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* SEO & Accessibility helper */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Common Layout Components */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-bg-surface {
  background-color: var(--color-surface);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.25rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.section-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* Button & UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background-color: var(--color-secondary-light);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(235, 235, 235, 0.8);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-h1 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
}

.logo-symbol-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-top: -14px;
  margin-bottom: -14px;
  margin-right: -8px;
  margin-left: -8px;
  vertical-align: middle;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger menu for mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 800px;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  position: relative;
  background-color: #FFFFFF; /* Light fallback for white ink video */
  overflow: hidden;
}

/* Hero Container Layout */
.hero-container-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 3;
}

/* Left Typography */
.hero-brand-typography {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  user-select: none;
  animation: fadeInUp 1s ease-out;
}

.hero-brand-typography .brand-text {
  font-family: 'Playfair Display', 'Outfit', 'Noto Sans KR', sans-serif;
  font-size: clamp(7.5rem, 8.5vw, 10rem); /* Responsively scaled up to fit screen ratio */
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-brand-typography .outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px #000000;
  margin-bottom: 5px;
}

.hero-brand-typography .bold-text {
  color: #000000;
}

/* Right Side Menu */
.hero-side-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 60%;
}

/* Vertical Slogan */
.vertical-slogan {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.9rem;
  font-weight: 500;
  color: #000000;
  letter-spacing: 0.25em;
  opacity: 0.8;
  display: flex;
  align-items: center;
  height: 100%;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding-right: 15px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Floating Pills */
.hero-pill-buttons {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1001;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #FFFFFF;
  border: 1px solid #EBEBEB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.pill-btn svg {
  color: #000000;
}

.pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #000000;
}

.pill-btn-kakao {
  background-color: #FEE500;
  border-color: #FEE500;
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.2);
}

.pill-btn-kakao svg {
  color: #191919;
}

.pill-btn-kakao:hover {
  background-color: #FADA0A;
  border-color: #FADA0A;
  box-shadow: 0 8px 20px rgba(254, 229, 0, 0.35);
}

/* Hero Fullscreen Background Video */
.hero-video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1); /* Very subtle white overlay to keep the white ink video bright */
  z-index: 2;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Team Banner Section */
.team-banner-section {
  padding: 40px 0 0 0; /* Reduced top padding, zero bottom padding to stick closer to adjacent sections */
  background-color: var(--color-white);
  text-align: center;
}

.team-banner-container {
  width: 100%;
  max-width: 1800px; /* 1.5x larger max-width container */
  margin: 0 auto;
  padding: 0 40px;
}

.team-banner-text {
  font-size: clamp(1.25rem, 3.8vw, 1.85rem);
  line-height: 1.8;
  color: var(--color-primary); /* Darker black color for better contrast */
  margin-bottom: 40px; /* Sightly reduced gap */
  font-weight: 400; /* Regular weight for first line */
  letter-spacing: -0.02em;
}

.team-banner-text strong {
  font-weight: 700; /* Distinct bold weight for 2nd and 3rd lines */
}

.team-banner-img-wrapper {
  max-width: 1600px; /* Increased to 1600px to expand 1.5x larger */
  margin: 0 auto;
  padding: 0;
}

.team-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  display: block;
}

/* Reduce top padding of the About Us section to bring it closer to the team image */
#brand-intro {
  padding-top: 40px !important;
}

@media (max-width: 768px) {
  .team-banner-section {
    padding: 30px 0 0 0;
  }
  .team-banner-container {
    padding: 0 20px;
  }
  .team-banner-text {
    margin-bottom: 24px;
    line-height: 1.6;
  }
  #brand-intro {
    padding-top: 30px !important;
  }
}

/* Brand Intro / Professionalism Section */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.brand-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.15);
}

.brand-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.brand-card:hover .brand-card-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.brand-card-title {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 600;
}

.brand-card-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.guide-content {
  display: grid;
  grid-template-columns: 1fr 1.35fr; /* Further expanded right column to eliminate cropping on the sides */
  gap: 40px; /* Reduced gap to maximize available space for the diagram card */
  align-items: stretch; /* Stretch columns to match height perfectly */
}

.guide-visual {
  position: relative;
  background-color: var(--color-white); /* White background to match the diagram image and guide items */
  border-radius: var(--border-radius-md); /* Matching border-radius of guide-item */
  border: 1px solid var(--color-border); /* Matching border of guide-item */
  box-shadow: var(--shadow-sm); /* Matching shadow of guide-item */
  padding: 0; /* Set to 0 to let the image expand edge-to-edge inside the card */
  overflow: hidden;
  height: 100%; /* Auto height to match guide-detail-list height exactly */
}

.guide-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire container exactly without leaving blank margins */
  display: block;
}

/* Director Profile Styles */
.director-profile-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--color-border);
}

.director-grid {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  text-align: center; /* Center-align header texts */
  width: 100%;
}

.director-visual {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
  width: 400px; /* Centered card width on desktop */
  height: 580px; /* Aspect-ratio optimized portrait height */
  margin-bottom: 40px; /* Spacing below the profile card */
}

.director-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fits profile picture edge-to-edge beautifully */
  display: block;
  object-position: center top;
}

.director-info {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center elements horizontally */
  width: 100%;
}

.director-quote {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 720px;
}

.director-career-box {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2-column layout on desktop to balance the lists */
  gap: 48px;
  width: 100%;
  max-width: 900px;
  text-align: left; /* Keep credentials lists left-aligned for readability */
}

.career-group {
  display: flex;
  flex-direction: column;
}

.career-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  position: relative;
  padding-left: 12px;
}

.career-group-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  background-color: var(--color-text);
}

.career-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-list li {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
  position: relative;
  padding-left: 14px;
}

.career-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-weight: bold;
}

.guide-detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.guide-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.guide-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.1);
}

.guide-num {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

.guide-item-title {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.guide-item-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Applicable Cases Section */
.case-types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.case-type-btn {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 14px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-type-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.case-type-btn:hover:not(.active) {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.case-type-icon {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.case-type-name {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Before / After Slider Component */
.case-display-box {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.case-slider-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  border: 1px solid var(--color-border);
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-img-after {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  z-index: 1;
}

.ba-img-before-wrapper {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-img-before {
  z-index: 2;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--color-white);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--color-white);
}

.ba-handle-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ba-badge {
  position: absolute;
  top: 20px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 4;
  box-shadow: var(--shadow-sm);
}

.ba-badge-before {
  left: 20px;
  background-color: rgba(44, 44, 44, 0.8);
  color: var(--color-white);
}

.ba-badge-after {
  right: 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.case-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-info-title {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.case-info-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.case-meta-item {
  font-size: 0.85rem;
  background-color: var(--color-surface);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

.case-info-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-tag {
  font-size: 0.8rem;
  color: var(--color-accent);
  background-color: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 500;
}

/* Reviews / Testimonials Section - Infinite Vertical Scroll */
.testimonials-wrapper {
  position: relative;
  max-height: 640px;
  overflow: hidden;
  margin-top: 40px;
  padding: 10px 0;
  /* Top and Bottom Fade mask */
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.testimonials-columns-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-content: center;
}

@media (min-width: 769px) {
  .testimonials-columns-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .testimonials-columns-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonials-column {
  overflow: hidden;
  height: 640px;
  position: relative;
  display: none; /* Hidden on mobile by default */
}

#testimonials-col-1 {
  display: block; /* Always show column 1 */
}

@media (min-width: 769px) {
  #testimonials-col-2 {
    display: block; /* Show column 2 on tablet */
  }
}

@media (min-width: 1025px) {
  #testimonials-col-3 {
    display: block; /* Show column 3 on desktop */
  }
}

.testimonials-column-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation-name: scroll-vertical;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Vertical Scrolling Keyframes */
@keyframes scroll-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Set different durations for each column to create an organic, staggered flow */
#testimonials-col-1 .testimonials-column-inner {
  animation-duration: 25s;
}

#testimonials-col-2 .testimonials-column-inner {
  animation-duration: 35s;
}

#testimonials-col-3 .testimonials-column-inner {
  animation-duration: 30s;
}

/* Pause animation on hover for readability */
.testimonials-column:hover .testimonials-column-inner {
  animation-play-state: paused;
}

/* Testimonial Card Styling (Premium monochrome) */
.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #FBBF24; /* Premium gold/yellow star color */
}

.testimonial-stars svg {
  fill: currentColor;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-weight: 400;
  word-break: keep-all;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #F0F0F0;
  padding-top: 16px;
  margin-top: 4px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #000000;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
}

.testimonial-role {
  font-size: 0.8rem;
  color: #767676;
}

/* FAQ Section (Accordion) */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0; /* Prevents overflow and enables text wrapping */
}

.faq-question-q {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-secondary);
  flex-shrink: 0; /* Prevents the Q badge from shrinking */
}

.faq-icon-wrapper {
  color: var(--color-primary);
  transition: var(--transition-smooth);
  flex-shrink: 0; /* Prevents arrow from being compressed or pushed out */
  margin-left: 16px; /* Ensures space between question text and arrow */
}

.faq-item.active .faq-icon-wrapper {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-answer {
  padding: 0 30px 24px 72px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Inquiry & Location Section */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

/* Reservation / Consultation Form */
.inquiry-form-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.form-header-title {
  font-size: 1.65rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-header-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  color: var(--color-text);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.form-checkbox-label input {
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.form-checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  margin-top: 16px;
}

/* Location details */
.location-info {
  display: flex;
  flex-direction: column;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  gap: 16px;
}

.map-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
}

.location-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loc-item {
  display: flex;
  gap: 16px;
}

.loc-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.loc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.loc-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.loc-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.quick-contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.btn-kakaotalk {
  background-color: #FEE500;
  color: #191919;
  font-weight: 600;
}

.btn-kakaotalk:hover {
  background-color: #FADA0A;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(254, 229, 0, 0.3);
}

.btn-tel {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-tel:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Footer styling */
.footer {
  background-color: #000000; /* 완전 블랙 */
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 120px; /* 모바일 하단 플로팅바 고려 여유 공간 */
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-logo-symbol {
  background-color: var(--color-white);
}

.footer-logo-symbol::after {
  background-color: var(--color-primary);
}

.footer-description {
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-link-group-title {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info {
  line-height: 1.8;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.35);
  max-width: 1000px;
  margin-top: 20px;
  line-height: 1.5;
  font-size: 0.75rem;
}

/* Mobile Sticky Bar (CTA) */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  padding: 12px 20px 24px; /* safe area를 감안한 하단 여백 */
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
  z-index: 999;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Responsive Web Design (Media Queries) */
@media (max-width: 1024px) {
  .hero-container-layout {
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    text-align: center;
    padding-top: 40px;
  }
  
  .hero-brand-typography {
    align-items: center;
  }

  .hero-brand-typography .brand-text {
    font-size: 4.5rem;
  }
  
  .hero-side-menu {
    flex-direction: column;
    gap: 20px;
    height: auto;
  }

  .vertical-slogan {
    writing-mode: horizontal-tb;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 0;
    padding-bottom: 10px;
  }
  
  /* hero-pill-buttons and pill-btn are now fixed vertically across all breakpoints */
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .guide-visual {
    height: 320px; /* Reduced height on mobile to fit the horizontal layout diagram */
  }
  .case-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .case-slider-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ba-slider-container {
    height: auto;
  }
  .inquiry-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .hero-side-menu {
    animation: none !important;
    transform: none !important;
  }
  .hero-brand-typography .brand-text {
    font-size: 3.25rem;
  }
  .hero-pill-buttons {
    position: fixed;
    bottom: 100px; /* Positioned above the mobile bottom bar */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1001; /* Floats above sticky bars and main content */
    width: auto;
    max-width: none;
  }
  .pill-btn {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
    border: 1px solid #EBEBEB;
  }
  .pill-btn span {
    display: none;
  }
  .pill-btn svg {
    width: 22px;
    height: 22px;
    margin: 0;
  }
  .pill-btn-kakao {
    background-color: #FEE500 !important;
    border-color: #FEE500 !important;
    border-radius: 50% !important; /* Make it circular like the others */
  }
  .pill-btn-kakao svg {
    width: 24px !important;
    height: 24px !important;
  }
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-background);
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    gap: 40px;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  .nav-list.active {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
  /* Animation for Hamburger */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .header-actions .btn {
    display: none;
  }
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .brand-card {
    padding: 30px 20px;
  }
  .team-banner-text br {
    display: none;
  }
  .guide-visual {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .guide-visual-img {
    height: 100%;
    object-fit: contain;
  }
  .case-types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 24px;
  }
  .case-type-btn {
    padding: 10px 6px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .case-type-btn:nth-child(1),
  .case-type-btn:nth-child(2),
  .case-type-btn:nth-child(3) {
    grid-column: span 2;
  }
  .case-type-btn:nth-child(4),
  .case-type-btn:nth-child(5) {
    grid-column: span 3;
  }
  .case-type-name {
    font-size: 0.8rem;
  }
  .case-display-box {
    padding: 24px 16px;
  }
  /* reviews-grid override removed as it is replaced by testimonials-columns-container */
  .inquiry-form-card {
    padding: 30px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  /* Show Mobile Floating Bar */
  .mobile-sticky-bar {
    display: grid;
  }

  /* Director Mobile Styles */
  .director-profile-section {
    margin-top: 50px;
    padding-top: 40px;
  }
  
  .director-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .director-visual {
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 3 / 4;
    margin-left: auto;
    margin-right: auto;
  }
  
  .director-career-box {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-brand-typography .brand-text {
    font-size: 2.5rem;
  }
  .ba-slider-container {
    height: auto;
  }
  .quick-contact-buttons {
    grid-template-columns: 1fr;
  }
  .faq-answer {
    padding: 0 20px 20px 36px;
  }
}

/* Infinite Gallery Slider Section */
.section-gallery-slider {
  width: 100%;
  background-color: var(--color-background);
  padding: 60px 0 80px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.gallery-slider-header {
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

.gallery-slider-hook {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.6;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  margin: 0;
}

.gallery-slider-hook::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 16px auto 0 auto;
  opacity: 0.15;
}

/* Faded edges effect */
.gallery-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* Right-scrolling animation (Negative starting point to show second half) */
@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Left-scrolling animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.gallery-infinite-scroll {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-right 30s linear infinite;
  padding: 10px 0;
  will-change: transform;
}

.gallery-infinite-scroll.scroll-left {
  animation-name: scroll-left;
}

.gallery-infinite-scroll.scroll-right {
  animation-name: scroll-right;
}

/* Image Card Styling */
.gallery-image-item {
  flex-shrink: 0;
  width: auto;
  height: 350px; /* Standardize track height */
  border-radius: var(--border-radius-md); /* 16px */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--color-secondary-light);
}

.gallery-image-item img {
  width: auto;
  height: 100%;
  display: block;
}

/* Hover micro-interactions */
.gallery-image-item:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-gallery-slider {
    padding: 40px 0 60px 0;
    gap: 24px;
  }
  .gallery-slider-hook {
    font-size: 1.05rem;
  }
  .gallery-slider-hook::after {
    margin: 12px auto 0 auto;
  }
  .gallery-image-item {
    width: auto;
    height: 240px; /* Adaptive height on mobile */
  }
  .gallery-infinite-scroll {
    gap: 16px;
  }
}
