/* ==================== 03. ARCHITECTURAL SERIES & BUILT OBJECTS (CLEAN MUSEUM GALLERY — VARIANT 1A) ==================== */
.showcase {
  padding: 112px 0 116px;
  background: var(--bg);
  border-top: 1px solid var(--line-subtle);
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 44px;
}

.section-top p {
  max-width: 440px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

/* Clean Typographic Navigation Line (No Boxed Tabs) */
.showcase-tabs {
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line-subtle);
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.showcase-tabs::-webkit-scrollbar {
  display: none;
}

.showcase-tab {
  position: relative;
  padding: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
}

.showcase-tab:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.showcase-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) {
  .showcase-tab:hover {
    color: var(--ivory);
  }
}

.showcase-tab.active {
  color: var(--ivory);
}

.showcase-tab.active::after {
  transform: scaleX(1);
}

.tab-panel {
  display: none;
  animation: fadePanel 0.45s var(--ease);
}

.tab-panel.active {
  display: block;
}

/* Uniform 3-Card Museum Row with Clean Photos & Below-Photo Explications */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: start;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  cursor: pointer;
}

.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #141416;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease), opacity 0.35s var(--ease);
}

@media (hover: hover) {
  .project-card:hover .project-thumb img {
    transform: scale(1.03);
  }
}

/* Minimal Day/Night Switcher (Clean Text Only, No Emoji) */
.daynight-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 2px;
  gap: 2px;
}

.daynight-btn {
  padding: 5px 11px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.daynight-btn.active {
  background: var(--ivory);
  color: #121110;
}

/* Museum Explication Below Photo */
.project-meta {
  padding-top: 16px;
}

.project-meta b,
.project-meta .project-card-title {
  display: block;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ivory);
  transition: color 0.25s var(--ease);
}

@media (hover: hover) {
  .project-card:hover .project-meta b,
  .project-card:hover .project-meta .project-card-title {
    color: var(--gold2);
  }
}

.project-meta span.sub {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
  margin-top: 6px;
}

/* Open Architectural Specification Strip (No Boxed Cells, No JetBrains Mono) */
.showcase-specs {
  margin-top: 40px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-subtle);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.spec-cell {
  padding-right: 20px;
  border-right: 1px solid var(--line-subtle);
}

.spec-cell:last-child {
  border-right: 0;
  padding-right: 0;
}

.spec-cell small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-cell strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.22;
  color: var(--ivory);
  margin-top: 6px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1080px) {
  .showcase {
    padding: 80px 0 88px;
  }
  .section-top {
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .spec-cell:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .showcase {
    padding: 56px 0 64px;
  }
  .section-top {
    margin-bottom: 24px;
  }
  .showcase .section-top p {
    display: none;
  }
  .showcase-tabs {
    gap: 22px;
    margin-bottom: 22px;
    padding-right: 28px;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
  .showcase-tab {
    font-size: 18px;
    padding: 6px 0 12px;
    scroll-snap-align: start;
  }
  .projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0 0 6px;
    scrollbar-width: none;
  }
  .projects-grid::-webkit-scrollbar {
    display: none;
  }
  .project-card {
    flex: 0 0 88%;
    max-width: 88%;
    scroll-snap-align: start;
  }
  .daynight-switch {
    top: 10px;
    right: 10px;
    padding: 2px;
  }
  .daynight-btn {
    padding: 5px 10px;
    font-size: 9.5px;
  }
  .project-meta {
    padding-top: 12px;
  }
  .project-meta b,
  .project-meta .project-card-title {
    font-size: 20px;
  }
  .project-meta span.sub {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .showcase-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 14px;
    margin-top: 24px;
    padding-top: 18px;
  }
  .spec-cell {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-subtle);
  }
  .spec-cell:nth-child(n+3) {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .spec-cell small {
    font-size: 9.5px;
    letter-spacing: 0.11em;
  }
  .spec-cell strong {
    font-size: 16px;
    line-height: 1.22;
    margin-top: 4px;
  }
}
