.proj-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 80px) 0 60px;
  overflow: hidden;
}
.proj-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.proj-hero__inner {
  max-width: 1100px;
}

.proj-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--text-2);
}
.proj-hero__breadcrumb a {
  color: var(--text-2);
  transition: color 0.3s;
}
.proj-hero__breadcrumb a:hover {
  color: var(--accent);
}
.proj-hero__breadcrumb svg {
  opacity: 0.4;
  flex-shrink: 0;
}
.proj-hero__breadcrumb span {
  color: var(--text-0);
  font-weight: 600;
}

.proj-hero__head {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proj-hero__title {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 12px 0 20px;
}

.proj-hero__desc {
  font-size: 1.15rem;
  color: var(--text-1);
  line-height: 1.8;
  max-width: 1000px;
}

.proj-hero__meta {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.proj-hero__meta-item {
  font-size: 0.85rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.proj-hero__meta-item i {
  color: var(--accent);
  font-size: 0.8rem;
}

.proj-hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.stat-card {
  position: relative;
  padding: 32px 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-lg);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
body:not(.dark-theme) .stat-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 8px 24px rgba(0, 0, 0, 0.04);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}
body:not(.dark-theme) .stat-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-card__value {
  display: block;
  font-family: var(--f-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--text-0), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-card__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.2);
}
.dash-frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.dash-frame__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.dash-frame__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-3);
}
.dash-frame__dots span:first-child {
  background: #f87171;
}
.dash-frame__dots span:nth-child(2) {
  background: #fbbf24;
}
.dash-frame__dots span:last-child {
  background: #34d399;
}
.dash-frame__title {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-frame__body {
  position: relative;
}
.dash-frame__body .tableauPlaceholder {
  width: 100%;
  min-height: 400px;
}
.dash-frame__body .tableauPlaceholder object {
  width: 100%;
}
.dash-frame__body img {
  width: 100%;
  height: auto;
  display: block;
}
.dash-frame__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 14px;
  font-size: 0.82rem;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.dash-frame__hint i {
  color: var(--accent);
  font-size: 0.85rem;
}

body:not(.dark-theme) .dash-frame {
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.06);
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.finding-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.35s var(--ease);
}
.finding-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-4px);
}
.finding-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 18px;
  transition: all 0.3s;
}
.finding-card:hover .finding-card__icon {
  background: var(--accent);
  color: #fff;
}
.finding-card__title {
  font-family: var(--f-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.finding-card__desc {
  font-size: 0.88rem;
  color: var(--text-1);
  line-height: 1.65;
}

.findings-grid--2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .findings-grid--2x2 {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
}

.gallery-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(37, 99, 235, 0.1);
}

.gallery-card__img-wrap {
  position: relative;
  background: #090a0f;
  border-bottom: 1px solid var(--border);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.dark-theme) .gallery-card__img-wrap {
  background: #f1f2f6;
}

.gallery-card__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.dark-theme) .gallery-card__img-wrap img {
  border-color: rgba(0, 0, 0, 0.08);
}

.gallery-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-full);
  z-index: 2;
}

.gallery-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card__title {
  font-family: var(--f-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-card__title i {
  color: var(--accent);
  font-size: 0.95rem;
}

.gallery-card__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.gallery-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-card__meta-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-1);
}

code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
  min-width: 0;
}
.detail__main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}
.detail__sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.detail-block__title {
  font-family: var(--f-heading);
  font-size: clamp(1.2rem, 3.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: break-word;
  word-break: break-word;
}
.detail-block p {
  font-size: 0.95rem;
  color: var(--text-1);
  line-height: 1.8;
  overflow-wrap: break-word;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step:first-child {
  border-top: 1px solid var(--border);
}
.step__num {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}
.step__content {
  min-width: 0;
  flex: 1;
}
.step__content h3 {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  overflow-wrap: break-word;
}
.step__content p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  color: var(--text-1);
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
}
.check-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--accent);
  font-size: 0.75rem;
  width: 16px;
  text-align: center;
}

.sidebar-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-width: 0;
}
.sidebar-card__title {
  font-family: var(--f-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.sidebar-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  line-height: 1.2;
}

.sidebar-card__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-row:last-child {
  border-bottom: none;
}
.sidebar-row__label {
  font-size: 0.82rem;
  color: var(--text-2);
  flex-shrink: 0;
}
.sidebar-row__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-0);
  text-align: right;
  word-break: break-word;
}

.sidebar-card__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  transition: all 0.3s var(--ease);
}
.sidebar-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.sidebar-link i {
  color: var(--accent);
  font-size: 1rem;
  width: 18px;
  text-align: center;
}
.sidebar-link span {
  flex: 1;
}
.sidebar-link svg {
  opacity: 0.4;
  transition: opacity 0.3s;
}
.sidebar-link:hover svg {
  opacity: 1;
}

.proj-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
}
.proj-nav__card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proj-nav__card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
}

.proj-nav__card--prev {
  text-align: left;
}
.proj-nav__card--next {
  text-align: right;
}
.proj-nav__card--all {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 24px 32px;
}

.proj-nav__label {
  font-size: 0.78rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.proj-nav__card--next .proj-nav__label {
  justify-content: flex-end;
}
.proj-nav__name {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 700;
}
.proj-nav__card--all span {
  font-size: 0.88rem;
  font-weight: 600;
}
.proj-nav__card--all i {
  color: var(--accent);
}

@media (max-width: 992px) {
  body {
    overflow-x: hidden;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .detail__sidebar {
    position: static;
    order: -1;
    min-width: 0;
  }
  .detail__main {
    min-width: 0;
  }
  .proj-nav {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .proj-nav__card--all {
    grid-column: 1/-1;
  }
}

@media (max-width: 576px) {
  .proj-hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 32px;
  }
  .proj-hero__title {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .findings-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-card {
    padding: 20px 16px;
  }
  .proj-nav {
    grid-template-columns: 1fr;
  }
  .proj-nav__card--next .proj-nav__label {
    justify-content: flex-start;
  }
  .proj-nav__card--next {
    text-align: left;
  }
}
