/* ============================================
   RIVERBOY — Baby & Family Photography Studio
   Design System: Minimal, Editorial, Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Noto+Sans+KR:wght@100;200;300;400;500&family=Lato:wght@100;300;400&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --white: #ffffff;
  --black: #1a1a1a;
  --gray-100: #f8f8f8;
  --gray-200: #eeeeee;
  --gray-300: #cccccc;
  --gray-400: #999999;
  --gray-500: #777777;
  --gray-600: #555555;
  --gray-700: #333333;

  --font-en: 'Cormorant Garamond', 'Georgia', serif;
  --font-kr: 'Noto Sans KR', sans-serif;
  --font-ui: 'Lato', 'Noto Sans KR', sans-serif;

  --header-height: 120px;
  --header-height-scrolled: 80px;
  --max-width: 1200px;
  --gap: 30px;

  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-kr);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a:hover {
  opacity: 0.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Skip to Content Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
  font-family: var(--font-kr);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  opacity: 1;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition-medium), box-shadow var(--transition-medium), padding var(--transition-medium);
  padding: 30px 0 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding: 15px 0 0;
}

.site-header.header-white {
  background: rgba(255, 255, 255, 0.97);
}

/* Logo */
.header-logo {
  text-align: center;
  margin-bottom: 20px;
  transition: margin var(--transition-medium);
}

.site-header.scrolled .header-logo {
  margin-bottom: 12px;
}

.header-logo a {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--black);
  text-transform: uppercase;
  display: inline-block;
  transition: color var(--transition-fast);
}

.header-logo.logo-light a {
  color: var(--white);
}

.site-header.scrolled .header-logo a,
.site-header.scrolled .header-logo.logo-light a {
  color: var(--black);
}

/* Main Nav */
.main-nav {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 15px;
  padding-bottom: 15px;
  transition: border-color var(--transition-medium);
}

.header-logo.logo-light ~ .main-nav {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.site-header.scrolled .main-nav {
  border-top-color: rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 8px 0;
  display: inline-block;
  position: relative;
  transition: color var(--transition-fast);
}

.header-logo.logo-light ~ .main-nav .nav-list > li > a {
  color: rgba(255, 255, 255, 0.85);
}

.site-header.scrolled .nav-list > li > a {
  color: var(--gray-600);
}

.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width var(--transition-medium);
}

.nav-list > li > a:hover {
  opacity: 1;
  color: var(--black);
}

.nav-list > li > a:hover::after {
  width: 100%;
}

.nav-list > li.active > a {
  color: var(--black);
}

.nav-list > li.active > a::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--white);
  min-width: 160px;
  padding: 15px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 100;
}

.nav-list > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 7px 25px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-600);
  white-space: nowrap;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.nav-dropdown a:hover {
  opacity: 1;
  color: var(--black);
  padding-left: 30px;
}

/* Hamburger */
.hamburger {
  display: none;
  position: absolute;
  top: 25px;
  right: 25px;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--black);
  position: absolute;
  left: 0;
  transition: all var(--transition-fast);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: rotate(-45deg);
}

.hamburger.light span {
  background: var(--white);
}

.site-header.scrolled .hamburger span,
.site-header.scrolled .hamburger.light span {
  background: var(--black);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
}

.mobile-nav-content a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.mobile-nav-content a:hover {
  opacity: 1;
  color: var(--black);
}

.mobile-nav-content .mobile-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
}

.mobile-nav-content .mobile-sub a {
  font-size: 11px;
  color: var(--gray-400);
}

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero-logo-text {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease 0.5s forwards;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease 0.8s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1.2s ease 1.2s forwards;
}

.hero-scroll-indicator span {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(8px); }
  60% { transform: rotate(45deg) translateY(4px); }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  padding: 180px 0 100px;
  text-align: center;
}

.about-hero-title {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.4;
  margin-bottom: 40px;
}

.about-hero-title span {
  display: block;
}

.about-hero-sub {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 2;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.about-who {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-who-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.about-who-time {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-bottom: 40px;
}

.about-video-placeholder {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  cursor: pointer;
}

.about-video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 18px solid var(--white);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

.play-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}

.about-story {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px 80px;
}

.about-story p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 2.2;
  color: var(--gray-700);
  margin-bottom: 25px;
}

.about-quote {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.about-quote-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 30px;
}

.about-quote-text {
  font-family: var(--font-kr);
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: var(--black);
  margin-bottom: 25px;
}

.about-quote-text .quote-mark {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 300;
  color: var(--gray-300);
  vertical-align: middle;
}

.about-quote-source {
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

.about-philosophy {
  padding: 100px 0;
  text-align: center;
  background: var(--gray-100);
}

.about-philosophy-tagline {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 25px;
}

.about-philosophy-main {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-philosophy-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 2;
  max-width: 550px;
  margin: 0 auto 30px;
}

.about-philosophy-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ============================================
   GALLERY / WORKS PAGES
   ============================================ */
.gallery-header {
  padding: 160px 0 40px;
  text-align: center;
}

.gallery-header-sub {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.gallery-header-title {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Gallery Tab Navigation */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 20px 0 50px;
  flex-wrap: wrap;
}

.gallery-tabs a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.gallery-tabs a:hover,
.gallery-tabs a.active {
  opacity: 1;
  color: var(--black);
  border-bottom-color: var(--black);
}

/* Masonry Grid */
.gallery-grid {
  column-count: 3;
  column-gap: 15px;
  padding: 0 15px;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-fast);
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.05);
}

/* Load More Button */
.load-more-wrap {
  text-align: center;
  padding: 60px 0 100px;
}

.load-more-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: none;
  border: 1px solid var(--gray-300);
  padding: 14px 45px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.load-more-btn:hover {
  color: var(--black);
  border-color: var(--black);
}

/* ============================================
   SERVICE PAGE
   ============================================ */
.service-header {
  padding: 160px 0 60px;
  text-align: center;
}

.service-header h1 {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gap) 100px;
}

.service-card {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  overflow: hidden;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.service-card:hover::before {
  opacity: 0.15;
}

.service-card-en {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.service-card-kr {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-500);
  position: relative;
  z-index: 1;
}

.service-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
}

.service-card-arrow::after {
  content: '\2192';
  font-size: 18px;
  color: var(--gray-600);
}

.service-card:hover .service-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-card:hover {
  background: var(--gray-200);
}

/* ============================================
   CONTACTS PAGE
   ============================================ */
.contacts-header {
  padding: 160px 0 60px;
  text-align: center;
}

.contacts-header h1 {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gap) 60px;
}

.contact-card {
  text-align: center;
  padding: 40px 20px;
}

.contact-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--gray-600);
  stroke-width: 1.2;
}

.contact-card h6,
.contact-card .contact-card-title {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-500);
}

.contacts-note {
  text-align: center;
  padding: 30px var(--gap) 20px;
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-500);
}

.contacts-cta {
  text-align: center;
  padding: 0 0 60px;
}

.contacts-cta a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  padding: 12px 35px;
  display: inline-block;
  transition: all var(--transition-fast);
}

.contacts-cta a:hover {
  opacity: 1;
  color: var(--black);
  border-color: var(--black);
}

.contacts-social {
  text-align: center;
  padding: 40px 0 80px;
  border-top: 1px solid var(--gray-200);
}

.contacts-social-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.social-icons a svg {
  width: 22px;
  height: 22px;
  fill: var(--gray-600);
  transition: fill var(--transition-fast);
}

.social-icons a:hover {
  opacity: 1;
}

.social-icons a:hover svg {
  fill: var(--black);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.site-footer p {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  text-transform: uppercase;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 900;
  background: none;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--gray-500);
  stroke-width: 1.5;
  fill: none;
}

.scroll-top:hover svg {
  stroke: var(--black);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
}

.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }

/* ============================================
   HOMEPAGE SECTIONS BELOW HERO
   ============================================ */
.home-tagline {
  padding: 100px 0;
  text-align: center;
}

.home-tagline-text {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.home-works-preview {
  padding: 0 0 100px;
}

.home-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  max-width: 100%;
}

.home-works-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.home-works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.home-works-item:hover img {
  transform: scale(1.05);
}

.home-works-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.home-works-item:hover .home-works-item-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.home-works-item-text {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.home-works-item:hover .home-works-item-text {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-content {
  opacity: 0;
  animation: pageIn 0.6s ease 0.1s forwards;
}

@keyframes pageIn {
  to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 2;
  }

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

  .nav-list {
    gap: 22px;
  }

  .nav-list > li > a {
    font-size: 10.5px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding: 15px 0 0;
  }

  .header-logo {
    margin-bottom: 0;
  }

  .header-logo a {
    font-size: 20px;
    letter-spacing: 0.25em;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-nav-overlay {
    display: block;
  }

  /* Hero */
  .hero-logo-text {
    font-size: 28px;
    letter-spacing: 0.25em;
  }

  .hero-subtitle {
    font-size: 10px;
  }

  /* About */
  .about-hero {
    padding: 120px 20px 60px;
  }

  .about-hero-title {
    font-size: 30px;
  }

  .about-hero-sub {
    font-size: 13px;
  }

  .about-quote-text {
    font-size: 18px;
  }

  .about-philosophy-main {
    font-size: 20px;
  }

  /* Gallery */
  .gallery-grid {
    column-count: 2;
    column-gap: 8px;
    padding: 0 8px;
  }

  .gallery-item {
    margin-bottom: 8px;
  }

  .gallery-header {
    padding: 120px 0 25px;
  }

  .gallery-header-title {
    font-size: 28px;
  }

  .gallery-tabs {
    gap: 15px;
    padding: 15px 10px 30px;
  }

  .gallery-tabs a {
    font-size: 10px;
  }

  /* Service */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .service-header {
    padding: 120px 0 40px;
  }

  .service-header h1 {
    font-size: 28px;
  }

  /* Contacts */
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contacts-header {
    padding: 120px 0 40px;
  }

  .contacts-header h1 {
    font-size: 28px;
  }

  /* Home works */
  .home-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .home-works-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-title {
    font-size: 24px;
  }
}

/* ============================================
   PERFORMANCE: CSS Containment & Content-Visibility
   SEO: #737, #738 — 렌더링 최적화
   ============================================ */
.gallery-item {
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: 500px 600px;
}

.service-card {
  contain: layout style paint;
}

.home-works-item {
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

/* ============================================
   DARK MODE (prefers-color-scheme)
   SEO: #720 — 사용자 선호에 따른 다크 모드 지원
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --black: #f0f0f0;
    --gray-100: #222222;
    --gray-200: #2a2a2a;
    --gray-300: #444444;
    --gray-400: #888888;
    --gray-500: #aaaaaa;
    --gray-600: #cccccc;
    --gray-700: #dddddd;
  }

  body {
    color-scheme: dark;
  }

  .site-header.scrolled,
  .site-header.header-white {
    background: rgba(26, 26, 26, 0.97);
  }

  .mobile-nav-overlay {
    background: #1a1a1a;
  }

  .nav-dropdown {
    background: #222222;
  }

  .about-philosophy {
    background: #222222;
  }

  .lightbox {
    background: rgba(0, 0, 0, 0.95);
  }

  /* Slightly reduce image brightness in dark mode */
  img {
    opacity: 0.92;
    transition: opacity var(--transition-fast);
  }

  img:hover {
    opacity: 1;
  }

  /* 404 page dark mode */
  .error-code {
    color: #333333;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  /* Hide non-essential UI elements */
  .site-header,
  .hamburger,
  .mobile-nav-overlay,
  .hero-scroll-indicator,
  .scroll-top,
  .lightbox,
  .load-more-wrap,
  .skip-link,
  noscript {
    display: none !important;
  }

  /* Reset backgrounds and colors for print */
  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    line-height: 1.6;
  }

  /* Show URLs after links */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555;
  }

  /* Prevent page breaks inside key elements */
  .gallery-item,
  .service-card,
  .contact-card {
    break-inside: avoid;
  }

  /* Reset hero for print */
  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-slide {
    position: relative;
    opacity: 1;
  }

  .hero-overlay {
    display: none;
  }

  /* Ensure images print properly */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Gallery: single column for print */
  .gallery-grid {
    column-count: 2;
  }

  /* Footer: simplify */
  .site-footer {
    border-top: 1px solid #ccc;
    padding: 10px 0;
  }
}

/* ============================================
   BLOG — Listing & Article Styles
   ============================================ */

/* ---------- Blog Header ---------- */
.blog-header {
  text-align: center;
  padding: 160px 20px 60px;
}

.blog-header-sub {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-header-title {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--black);
}

/* ---------- Blog Grid (Listing) ---------- */
.blog-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gap) 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-card {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 40px;
  transition: opacity var(--transition-fast);
}

.blog-card:hover {
  opacity: 0.75;
}

.blog-card-thumb {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  flex: 1;
  min-width: 0;
}

.blog-card-category {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-kr);
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 8px;
}

.blog-card-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-date {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

/* ---------- Blog Article ---------- */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 160px var(--gap) 80px;
}

.blog-article-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
}

.blog-article-category {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.blog-article-title {
  font-family: var(--font-kr);
  font-size: 28px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 20px;
}

.blog-article-date {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

/* ---------- Blog Article Body ---------- */
.blog-article-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-700);
  line-height: 2;
}

.blog-article-body h2 {
  font-family: var(--font-kr);
  font-size: 22px;
  font-weight: 400;
  color: var(--black);
  margin: 50px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.blog-article-body h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--black);
  margin: 35px 0 12px;
}

.blog-article-body p {
  margin-bottom: 18px;
}

.blog-article-body strong {
  font-weight: 500;
  color: var(--black);
}

.blog-article-body ul,
.blog-article-body ol {
  margin: 10px 0 20px 20px;
  list-style: disc;
}

.blog-article-body ol {
  list-style: decimal;
}

.blog-article-body li {
  margin-bottom: 6px;
  line-height: 1.8;
}

.blog-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.blog-article-body th,
.blog-article-body td {
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.blog-article-body th {
  background: var(--gray-100);
  font-weight: 400;
  color: var(--gray-700);
}

.blog-article-body img {
  border-radius: 2px;
  margin: 20px 0;
}

.blog-article-body blockquote {
  border-left: 3px solid var(--gray-300);
  padding: 10px 20px;
  margin: 20px 0;
  color: var(--gray-500);
  font-style: italic;
}

/* ---------- Blog CTA ---------- */
.blog-cta {
  margin-top: 60px;
  padding: 40px 30px;
  background: var(--gray-100);
  text-align: center;
  border-radius: 2px;
}

.blog-cta-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 20px;
}

.blog-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  border: 1px solid var(--gray-300);
  transition: all var(--transition-fast);
}

.blog-cta-btn:hover {
  opacity: 1;
  border-color: var(--black);
  color: var(--black);
}

.blog-cta-phone {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.blog-cta-phone:hover {
  background: var(--gray-700);
  color: var(--white);
}

.blog-cta-phone svg {
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

.blog-cta-kakao {
  background: var(--white);
  color: var(--gray-700);
}

/* ---------- Blog Navigation ---------- */
.blog-related {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--gray-200);
}

.blog-back-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

/* ---------- Blog Empty ---------- */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 300;
}

/* ---------- Blog Responsive ---------- */
@media (max-width: 768px) {
  .blog-header {
    padding: 120px 20px 40px;
  }

  .blog-header-title {
    font-size: 32px;
  }

  .blog-card {
    flex-direction: column;
  }

  .blog-card-thumb {
    width: 100%;
    height: 200px;
  }

  .blog-article {
    padding: 120px 20px 60px;
  }

  .blog-article-title {
    font-size: 22px;
  }

  .blog-article-body h2 {
    font-size: 19px;
  }

  .blog-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .blog-cta-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ============================================
   BGM Player Widget — 우측 상단
   ============================================ */
.bgm-player {
  position: fixed;
  top: 28px;
  right: 24px;
  z-index: 9999;
  animation: bgmFadeIn 0.8s 0.5s both;
}

@keyframes bgmFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bgm-player-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  padding: 6px 14px 6px 6px;
  cursor: default;
  transition: background 0.3s, box-shadow 0.3s;
}

.bgm-player-inner:hover {
  background: rgba(26, 26, 26, 0.72);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Play/Pause button */
.bgm-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.25s;
  flex-shrink: 0;
}

.bgm-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.bgm-btn svg {
  width: 13px;
  height: 13px;
}

/* Show play icon by default, pause when playing */
.bgm-icon-pause { display: none; }
.bgm-icon-play { display: flex; align-items: center; justify-content: center; }
.bgm-player.playing .bgm-icon-pause { display: flex; align-items: center; justify-content: center; }
.bgm-player.playing .bgm-icon-play { display: none; }

/* Equalizer bars */
.bgm-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.bgm-eq span {
  display: block;
  width: 2.5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  height: 4px;
  transition: height 0.15s;
}

/* Animate when playing */
.bgm-player.playing .bgm-eq span {
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}
.bgm-player.playing .bgm-eq span:nth-child(1) { animation-duration: 0.6s; height: 6px; }
.bgm-player.playing .bgm-eq span:nth-child(2) { animation-duration: 0.8s; animation-delay: 0.1s; height: 12px; }
.bgm-player.playing .bgm-eq span:nth-child(3) { animation-duration: 0.7s; animation-delay: 0.2s; height: 8px; }
.bgm-player.playing .bgm-eq span:nth-child(4) { animation-duration: 0.9s; animation-delay: 0.05s; height: 14px; }

@keyframes eqBounce {
  0%   { height: 4px; }
  100% { height: 16px; }
}

/* Stopped state: flat bars */
.bgm-player:not(.playing) .bgm-eq span {
  height: 4px;
  animation: none;
}

/* Label */
.bgm-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}

/* Header scrolled: adjust position */
.site-header.scrolled ~ .bgm-player,
body:has(.site-header.scrolled) .bgm-player {
  top: 18px;
}

/* Mobile: smaller, lower */
@media (max-width: 768px) {
  .bgm-player {
    top: 16px;
    right: 60px;
  }

  .bgm-label {
    display: none;
  }

  .bgm-player-inner {
    padding: 5px 10px 5px 5px;
    gap: 6px;
  }

  .bgm-btn {
    width: 26px;
    height: 26px;
  }

  .bgm-btn svg {
    width: 11px;
    height: 11px;
  }
}
