:root {
  --bg: #081521;
  --bg-accent: #102638;
  --surface: rgba(11, 29, 43, 0.84);
  --surface-strong: rgba(13, 36, 54, 0.94);
  --line: rgba(119, 188, 208, 0.18);
  --text: #e7f2fb;
  --muted: #96afc2;
  --accent: #12b3a6;
  --accent-deep: #3d7bff;
  --shadow: 0 24px 80px rgba(1, 7, 14, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(61, 123, 255, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(18, 179, 166, 0.16), transparent 30%),
    linear-gradient(180deg, #07111b 0%, var(--bg) 42%, #091825 100%);
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.top-contact-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.top-contact-bar p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
}

.top-contact-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  color: #f6fbff;
  box-shadow: 0 16px 32px rgba(25, 83, 182, 0.24);
}

.showcase {
  position: relative;
  overflow: hidden;
  height: 380px;
  border: 1px solid rgba(119, 188, 208, 0.14);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(8, 21, 33, 0.96), rgba(10, 31, 46, 0.92)),
    rgba(7, 17, 27, 0.8);
}

.showcase-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 3s ease;
}

.showcase-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 22, 0.12), rgba(6, 14, 22, 0.62)),
    linear-gradient(90deg, rgba(8, 21, 33, 0.45), rgba(8, 21, 33, 0));
}

.showcase-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-indicators {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.showcase-dot {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.showcase-dot.is-active {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
}

.company-intro {
  margin-top: 22px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(10, 30, 46, 0.94), rgba(8, 22, 34, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
}

.company-intro-copy {
  max-width: 880px;
}

.company-intro-eyebrow {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.company-intro h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
}

.company-intro-description {
  margin: 18px 0 0;
  max-width: 62ch;
  line-height: 1.8;
  color: var(--muted);
  font-size: 1.04rem;
}

.project-search-section {
  margin-top: 22px;
}

.project-search-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 29, 44, 0.92), rgba(8, 24, 37, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.project-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
}

.search-label,
.project-category {
  display: block;
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.project-search-head .search-label {
  margin-bottom: 0;
}

.project-search-input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(119, 188, 208, 0.22);
  border-radius: 18px;
  background: rgba(6, 18, 28, 0.9);
  color: var(--text);
  font: inherit;
}

.project-search-input:focus {
  outline: none;
  border-color: rgba(18, 179, 166, 0.7);
  box-shadow: 0 0 0 4px rgba(18, 179, 166, 0.12);
}

.project-search-viewport {
  overflow: hidden;
  margin-top: 16px;
}

.project-search-results {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.search-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  justify-content: flex-end;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(119, 188, 208, 0.14);
  border-radius: 20px;
  background: rgba(10, 28, 42, 0.82);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.search-result-item strong,
.section-heading h2,
.project-copy h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

.search-result-item span {
  color: var(--muted);
}

.search-result-item.is-active {
  border-color: rgba(18, 179, 166, 0.45);
  background: rgba(12, 38, 56, 0.98);
}

.search-result-item:hover,
.site-footer a:hover,
.slider-button:hover {
  transform: translateY(-2px);
}

.search-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(10, 28, 42, 0.82);
  border: 1px solid rgba(119, 188, 208, 0.14);
  color: var(--muted);
}

.slider-button[disabled] {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.project-summary,
.project-highlight,
.site-footer p {
  margin: 8px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.projects-section {
  position: relative;
  padding: 24px 0 12px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 13ch;
}

.slider-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  justify-content: flex-end;
}

.slider-button {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 30, 45, 0.86);
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.projects-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(100%, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
}

.projects-slider::-webkit-scrollbar {
  display: none;
}

.projects-slider.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  padding: 20px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 29, 43, 0.96), rgba(8, 23, 35, 0.95));
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.project-visual {
  overflow: hidden;
  border-radius: 24px;
  min-height: 420px;
}

.project-zoom-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 8, 14, 0.82);
  cursor: pointer;
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: 90vh;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(119, 188, 208, 0.18);
  background: rgba(6, 18, 28, 0.96);
  box-shadow: var(--shadow);
}

.image-lightbox-dialog img {
  width: 100%;
  max-height: calc(90vh - 36px);
  object-fit: contain;
  border-radius: 18px;
}

.image-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(119, 188, 208, 0.18);
  border-radius: 50%;
  background: rgba(8, 21, 33, 0.96);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 8px 14px 2px;
}

.project-copy h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.project-summary {
  font-size: 1rem;
}

.project-highlight {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(18, 179, 166, 0.12);
  color: #b2f6f0;
  font-weight: 700;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.project-tags li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 34, 50, 0.96);
  border: 1px solid var(--line);
  font-size: 0.94rem;
}

.slider-status {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.empty-state {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(10, 29, 43, 0.96), rgba(8, 23, 35, 0.95));
  box-shadow: var(--shadow);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.empty-state p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.progress-bar {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(119, 188, 208, 0.16);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  transition: width 0.25s ease;
}

.status-text {
  min-width: 68px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(9, 29, 43, 0.96), rgba(12, 38, 58, 0.92));
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  color: #f6fbff;
  box-shadow: 0 16px 32px rgba(25, 83, 182, 0.24);
}

@media (max-width: 980px) {
  .project-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .company-intro {
    padding: 24px;
  }

  .project-visual {
    min-height: 320px;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 18px;
  }

  .top-contact-bar {
    align-items: stretch;
    flex-direction: column;
    justify-content: stretch;
  }

  .top-contact-bar a {
    width: 100%;
  }

  .showcase {
    height: 260px;
  }

  .project-search-head {
    align-items: start;
    flex-direction: column;
  }

  .project-search-results {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(0, auto);
  }

  .project-search-panel,
  .company-intro,
  .project-card,
  .site-footer {
    padding: 18px;
    border-radius: 24px;
  }

  .project-visual {
    min-height: 260px;
  }

  .slider-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .slider-button {
    width: 48px;
    height: 48px;
  }

  .slider-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer a {
    width: 100%;
  }
}
