:root {
  --primary-color: #2c3e50;
  --accent-color: #2a9d8f;
  --surface-color: #f9f9f9;
  --surface-alt: #eef0f2;
  --text-muted: #6c757d;
  --navbar-height: 54px;
}

body {
  margin-top: var(--navbar-height);
  font-family: "Noto Sans KR", sans-serif;
  color: var(--primary-color);
  background-color: var(--surface-color);
}

body.lightbox-open {
  overflow: hidden;
}

.image-loading-shell {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(224, 230, 234, 0.85);
}

.image-loading-shell > img {
  position: relative;
  z-index: 1;
  transition: opacity 0.25s ease, transform 0.55s ease;
}

.image-loading-shell.is-loading > img {
  opacity: 0.14;
}

.image-loading-indicator {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(223, 230, 234, 0.34));
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-loading-shell.is-loaded > .image-loading-indicator {
  opacity: 0;
  visibility: hidden;
}

.image-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(44, 62, 80, 0.16);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: imageLoadingSpin 0.8s linear infinite;
}

.site-navbar {
  --bs-navbar-padding-y: 0;
  min-height: var(--navbar-height);
  height: var(--navbar-height);
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.site-navbar .container {
  height: 100%;
  align-items: center;
}

.site-logo {
  width: auto;
  height: 34px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin-right: 1rem;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  padding: 0 0.1rem;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1;
  color: var(--primary-color) !important;
}

@media (min-width: 992px) {
  .site-navbar .navbar-collapse {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    height: 100%;
  }

  .site-navbar .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
    gap: 0.75rem;
  }

  .site-navbar .nav-item {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .site-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
  }
}

.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 40vh;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(24, 32, 42, 0.84), rgba(24, 32, 42, 0.84));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}

.hero-fps {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  min-width: 118px;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(42, 157, 143, 0.32);
  border-radius: 999px;
  background: rgba(20, 28, 36, 0.45);
  color: #99e3da;
  font-size: 0.8rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.hero h1,
.section-title,
.page-hero-title {
  font-family: "Cormorant Garamond", serif;
}

.hero h1 {
  font-size: clamp(1.3rem, 2.5vw, 2.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-copy {
  font-family: "SUIT", "Noto Sans KR", sans-serif;
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.88);
}

.section-title {
  position: relative;
  display: table;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
}

.portfolio-detail-title {
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.5rem auto 0;
  background: var(--accent-color);
}

.feature-tile,
.service-card,
.portfolio-card,
.contact-panel,
.about-panel {
  height: 100%;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.feature-tile {
  padding: 1.5rem 1rem;
  text-align: center;
  background: #f7f7f7;
}

.feature-tile i,
.service-icon {
  color: var(--accent-color);
}

.service-card .service-icon {
  font-size: 27px;
}

.btn-primary,
.btn-submit {
  border: none;
  border-radius: 0.3rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
}

.btn-primary:hover,
.btn-submit:hover {
  background-color: #21867a;
}

.contact-submit-btn {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.contact-submit-btn.is-firing {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(42, 157, 143, 0.22);
}

.contact-submit-fx {
  position: absolute;
  inset: -240px;
  z-index: 2;
  pointer-events: none;
}

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

.client-logo {
  border-radius: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.service-card img {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(24, 32, 42, 0.08);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-gallery video {
  width: 100%;
  max-width: 640px;
  height: auto;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-card .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-card .card-title {
  padding-top: 10px;
  text-align: center;
  transform: scale(1);
  transform-origin: center center;
  will-change: color, text-shadow, letter-spacing;
  transition: transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease, letter-spacing 0.4s ease;
}

.portfolio-card:hover .card-title {
  color: #213948;
  letter-spacing: 0.01em;
  text-shadow: 0 0 0.01px currentColor, 0 8px 14px rgba(24, 32, 42, 0.06);
  transform: scale(1.1);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: center;
  min-width: 132px;
  margin-top: auto;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(42, 157, 143, 0.18);
  border-radius: 999px;
  background: rgba(42, 157, 143, 0.1);
  color: var(--accent-color);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card-cta i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.portfolio-card .card-cta {
  margin-bottom: 17px;
}

.card-cta:hover {
  border-color: rgba(42, 157, 143, 0.42);
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(42, 157, 143, 0.18);
}

.card-cta:hover i {
  transform: translateX(2px);
}

.portfolio-item {
  cursor: pointer;
}

.portfolio-card {
  cursor: pointer;
}

.portfolio-thumb {
  height: 200px;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform, filter;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 200px;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 22px rgba(24, 32, 42, 0.14),
    inset 0 0 58px rgba(24, 32, 42, 0.1);
}

.portfolio-card:hover .portfolio-thumb {
  transform: scale(1.035);
  filter: saturate(1.03);
}

.filter-btn {
  white-space: nowrap;
}

.portfolio-filter-scroll {
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.detail-img,
.detail-hero-shell {
  position: relative;
  overflow: hidden;
  height: 400px;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  background: #eef1f4;
}

.detail-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 28px rgba(24, 32, 42, 0.16),
    inset 0 0 76px rgba(24, 32, 42, 0.1);
}

.detail-hero-track {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.detail-hero-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.detail-hero-shell.is-tall .detail-hero-frame {
  height: auto;
  min-height: 100%;
  animation: detailHeroPanY var(--detail-hero-duration-y, 12s) cubic-bezier(0.25, 0, 0.35, 1) 0s infinite alternate;
  will-change: transform;
}

.detail-hero-shell.is-wide .detail-hero-track {
  height: 100%;
  animation: detailHeroPanX var(--detail-hero-duration-x, 12s) cubic-bezier(0.25, 0, 0.35, 1) 0s infinite alternate;
  will-change: transform;
}

.detail-hero-shell::after {
  content: "";
  position: absolute;
  inset: -12% auto -12% -35%;
  width: 22%;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 28%,
    rgba(255, 255, 255, 0.52) 50%,
    rgba(255, 255, 255, 0.12) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-45deg) translateX(-140%);
  opacity: 0;
  pointer-events: none;
  animation: detailHeroShine 10s ease-in-out infinite;
}

.detail-hero {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  filter: saturate(0.94);
}

.detail-hero-shell.is-short .detail-hero {
  height: 400px;
}

.detail-hero:hover {
  filter: saturate(1);
  transition: filter 0.35s ease;
}

.detail-info dt {
  font-weight: 600;
}

.about-img {
  width: 100%;
  height: 300px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.kiosk-gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: #dfe6ea;
  cursor: pointer;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.kiosk-gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 22px rgba(24, 32, 42, 0.14),
    inset 0 0 58px rgba(24, 32, 42, 0.1);
}

.kiosk-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(24, 32, 42, 0.14);
}

.kiosk-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(24, 32, 42, 0.08));
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.kiosk-gallery-item:hover::after {
  opacity: 1;
}

.kiosk-gallery-item > .image-loading-shell {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.kiosk-gallery-thumb,
.kiosk-gallery-preview-video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform, filter;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.kiosk-gallery-preview-video {
  background: transparent;
}

.kiosk-gallery-item:hover .kiosk-gallery-thumb,
.kiosk-gallery-item:hover .kiosk-gallery-preview-video {
  transform: scale(1.035);
  filter: saturate(1.03);
}

.kiosk-lightbox[hidden] {
  display: none !important;
}

.kiosk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(12, 18, 24, 0.82);
  backdrop-filter: blur(10px);
}

.kiosk-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 90vh;
  max-width: 90vw;
  max-height: 90vh;
}

.kiosk-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.kiosk-lightbox-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.kiosk-lightbox-image.is-slide-prev,
.kiosk-lightbox-video.is-slide-prev {
  animation: kioskMediaSlidePrev 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.kiosk-lightbox-image.is-slide-next,
.kiosk-lightbox-video.is-slide-next {
  animation: kioskMediaSlideNext 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.kiosk-lightbox-close,
.kiosk-lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.kiosk-lightbox-close i,
.kiosk-lightbox-nav i {
  font-size: 1.2rem;
}

.kiosk-lightbox-close:hover,
.kiosk-lightbox-nav:hover {
  background: rgba(42, 157, 143, 0.78);
  transform: translateY(-1px);
}

.kiosk-lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.kiosk-lightbox-prev {
  left: 1.5rem;
}

.kiosk-lightbox-next {
  right: 1.5rem;
}

.kiosk-lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 72px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(8px);
}

.kiosk-lightbox-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 4.5rem;
  left: 1.5rem;
  z-index: 1;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

@keyframes kioskMediaSlidePrev {
  0% {
    opacity: 0;
    transform: translateX(-88px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes kioskMediaSlideNext {
  0% {
    opacity: 0;
    transform: translateX(88px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes detailHeroEnter {
  0% {
    transform: translateY(18px) scale(0.985);
    opacity: 0;
    filter: saturate(0.9) blur(3px);
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: saturate(0.98) blur(0);
  }
}

@keyframes imageLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes detailHeroFloat {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-7px) scale(1.008);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes detailHeroPanY {
  0% {
    transform: translateY(calc(var(--detail-hero-pan-y, 0px) / 2));
  }

  100% {
    transform: translateY(calc(var(--detail-hero-pan-y, 0px) / -2));
  }
}

@keyframes detailHeroPanX {
  0% {
    transform: translateX(calc(var(--detail-hero-pan-x, 0px) / 2));
  }

  100% {
    transform: translateX(calc(var(--detail-hero-pan-x, 0px) / -2));
  }
}

@keyframes detailHeroShine {
  0%,
  74% {
    transform: skewX(-45deg) translateX(-140%);
    opacity: 0;
  }

  3% {
    opacity: 0.9;
  }

  9% {
    transform: skewX(-45deg) translateX(640%);
    opacity: 0.55;
  }

  10%,
  100% {
    transform: skewX(-45deg) translateX(640%);
    opacity: 0;
  }
}

.contact-panel {
  position: relative;
  padding: 1.5rem;
}

.portfolio-admin-list {
  height: auto;
  overflow: visible;
}

.contact-status-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

.contact-status-overlay.is-visible {
  display: flex;
}

.contact-status-card {
  position: relative;
  width: min(100%, 420px);
  padding: 1.4rem 1.35rem 1.2rem;
  border: 1px solid rgba(42, 157, 143, 0.24);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(26, 33, 40, 0.14);
}

.contact-status-card.is-success {
  border-color: rgba(42, 157, 143, 0.32);
}

.contact-status-card.is-error {
  border-color: rgba(220, 53, 69, 0.24);
}

.contact-status-card.is-pending {
  border-color: rgba(42, 157, 143, 0.28);
}

.contact-status-label {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #1f6f67;
}

.contact-status-message {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--primary-color);
}

.contact-status-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  color: #7b8791;
}

.contact-status-close.is-hidden {
  display: none;
}

#naverMap {
  width: 100%;
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  padding: 1rem 0;
  color: #bdc3c7;
  background-color: #2c3e50;
  line-height: 1.7;
}

.site-footer p {
  display: block;
  margin-bottom: 0.35rem;
}

.footer-copy,
.footer-contact {
  font-size: 0.95rem;
}

::placeholder {
  color: #cccccc !important;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }
}
