:root {
  --zl-purple: #6c5ce7;
  --zl-purple-light: #8b7ff0;
  --zl-purple-dim: rgba(108, 92, 231, 0.12);
  --zl-dark-bg: #0a0a18;
  --zl-dark-card: #12122a;
  --zl-dark-border: #1e1e38;
  --zl-light-bg: #f5f5f7;
  --zl-light-card: #ffffff;
  --zl-light-border: #e8e8ec;
  --zl-text-white: #ffffff;
  --zl-text-light: #c8c8d8;
  --zl-text-muted: #6e6e88;
  --zl-text-dark: #0f0f1e;
  --zl-text-body: #4a4a5a;
  --zcv-text-white: #ffffff;
  --zl-font-display: "Syne", sans-serif;
  --zl-font-body: "Inter", sans-serif;
}

/* Always keep the theme's global header/footer visible on project pages. */
.single-project #header,
.single-project #footer,
.post-type-archive-project #header,
.post-type-archive-project #footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.zl-project-page {
  font-family: var(--zl-font-body);
  background: var(--zl-dark-bg);
  color: var(--zl-text-white);
}

.zl-project-page .container,
.project-container,
.hero-inner,
.next-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

.zl-project-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--zl-dark-border);
  height: 68px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zl-project-nav .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--zl-text-white);
  font-family: var(--zl-font-display);
  font-weight: 800;
  font-size: 22px;
}

.zl-project-nav .nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zl-purple);
}

.zl-project-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.zl-project-nav .nav-links a {
  color: var(--zl-text-muted);
  text-decoration: none;
  font-size: 14px;
}

.zl-project-nav .nav-links a:hover,
.zl-project-nav .nav-links a.active {
  color: var(--zl-text-white);
}

.zl-project-nav .nav-cta {
  background: var(--zl-purple);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb {
  padding: 84px 6% 0;
  background: var(--zl-dark-bg);
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--zl-text-muted);
}

.breadcrumb a {
  color: var(--zl-text-muted);
  text-decoration: none;
}

.breadcrumb span {
  color: var(--zl-text-white);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.hero-project {
  background: var(--zl-dark-bg);
  padding: 32px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-project::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 65%);
}

.project-cat-badge,
.section-sup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.project-cat-badge {
  color: var(--zl-purple-light);
  margin-bottom: 20px;
}

.project-cat-badge::before,
.section-sup::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--zl-purple);
}

.hero-project h1,
.sec-title,
.sidebar-title,
.result-num,
.next-card-title,
.cta-section h2 {
  font-family: var(--zl-font-display);
}

.hero-project h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 58px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
	color: var(--zcv-text-white);
	max-width: 760px;
}

.project-title-line {
  display: block;
}

.project-title-line-1 {
  color: var(--zl-text-white);
}

.project-title-line-2 {
  color: var(--zl-purple-light);
}

.hero-project .sub {
  font-size: 16px;
  color: var(--zl-text-light);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 680px;
}

.meta-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  color: var(--zl-text-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.meta-value {
  font-size: 13px;
  font-weight: 500;
}

.meta-divider {
  width: 0.5px;
  background: var(--zl-dark-border);
}

.tech-pills,
.sidebar-tags,
.archive-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
}

.tech-pill,
.sidebar-tag,
.archive-pills span {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--zl-purple-dim);
  color: var(--zl-purple-light);
  border: 0.5px solid rgba(108, 92, 231, 0.25);
}

.cta-group,
.cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-btns {
  justify-content: center;
}

.btn-primary,
.btn-secondary,
.sidebar-cta,
.sidebar-cta-outline {
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary,
.sidebar-cta {
  background: var(--zl-purple);
  color: #fff;
}

.btn-secondary,
.sidebar-cta-outline {
  background: transparent;
  color: var(--zl-text-light);
  border: 0.5px solid var(--zl-dark-border);
}

.sidebar-card-cta .sidebar-cta,
.sidebar-card-cta .sidebar-cta-outline {
  width: 100%;
  max-width: 320px;
  margin: 0;
  min-height: 44px;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-card-cta .sidebar-cta {
  margin-bottom: 10px;
}

.sidebar-card-cta .sidebar-cta-outline {
  color: var(--zl-purple);
  border: 1px solid rgba(108, 92, 231, 0.45);
  background: transparent;
}

.project-image-section {
  background: var(--zl-dark-card);
}

.project-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-top: 0.5px solid var(--zl-dark-border);
  border-bottom: 0.5px solid var(--zl-dark-border);
}

.project-hero-placeholder {
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #12122a 0%, #1a1a3a 50%, #12122a 100%);
}

.s-light {
  background: var(--zl-light-bg);
}

.s-light-pad,
.s-dark-pad {
  padding: 72px 0;
}

.s-dark-pad {
  background: var(--zl-dark-card);
}

.content-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 6%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.section-sup {
  color: var(--zl-purple);
  margin-bottom: 10px;
}

.section-sup.light-sup {
  color: var(--zl-purple-light);
}

.sec-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.dark-title {
  color: var(--zl-text-dark);
}

.white-title {
  color: var(--zl-text-white);
}

.body-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--zl-text-body);
}

.sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: var(--zl-light-card);
  border: 0.5px solid var(--zl-light-border);
  border-radius: 16px;
  padding: 24px;
}

.sidebar-card-cta {
  background: #e7e5f7;
  border: 1px solid rgba(108, 92, 231, 0.35);
}

.sidebar-cta-title {
  margin: 0 0 14px;
  color: var(--zl-purple);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-card-cta .body-text {
  color: #51586b;
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--zl-text-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--zl-light-border);
}

.sidebar-row:last-child {
  border-bottom: none;
}

.sidebar-key {
  font-size: 12px;
  color: var(--zl-text-muted);
}

.sidebar-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--zl-text-dark);
}

.csr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}

.csr-card {
  background: var(--zl-light-card);
  border: 0.5px solid var(--zl-light-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(12, 14, 30, 0.05);
}

.csr-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.csr-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.csr-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csr-icon-challenge {
  background: #fdecec;
}

.csr-icon-challenge svg {
  stroke: #d44747;
}

.csr-icon-solution {
  background: #eeebff;
}

.csr-icon-solution svg {
  stroke: #6c5ce7;
}

.csr-icon-result {
  background: #eef6e8;
}

.csr-icon-result svg {
  stroke: #476f2b;
}

.csr-card h3 {
  font-size: 31px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
  color: var(--zl-text-dark);
}

.csr-card p {
  font-size: 14px;
  color: var(--zl-text-body);
  line-height: 1.8;
  margin: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.result-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--zl-dark-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.result-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--zl-purple-light);
  margin-bottom: 6px;
}

.result-label {
  color: var(--zl-text-muted);
  font-size: 12px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stack-item {
  background: var(--zl-light-card);
  border: 0.5px solid var(--zl-light-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zl-purple);
}

.stack-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--zl-text-dark);
}

.stack-role {
  margin-left: auto;
  font-size: 11px;
  color: var(--zl-text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.gallery-img {
  border-radius: 12px;
  border: 0.5px solid var(--zl-dark-border);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--zl-dark-card), #1e1e3a);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gallery-placeholder {
  opacity: 0.2;
}

.next-section {
  background: var(--zl-dark-bg);
  padding: 64px 0;
}

.next-label {
  font-size: 11px;
  color: var(--zl-text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.next-card {
  text-decoration: none;
  background: var(--zl-dark-card);
  border: 0.5px solid var(--zl-dark-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.next-card-cat {
  font-size: 10px;
  color: var(--zl-purple-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.next-card-title {
  color: var(--zl-text-white);
  font-size: 16px;
  font-weight: 700;
}

.next-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--zl-purple-dim);
  color: var(--zl-purple-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cta-section {
  background: var(--zl-dark-card);
  padding: 80px 0;
  text-align: center;
}

.cta-section .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 6%;
}

.cta-section h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--zl-text-white);
  margin-bottom: 14px;
}

.cta-section p {
  color: var(--zl-text-light);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.zl-project-footer {
  background: var(--zl-dark-bg);
  border-top: 0.5px solid var(--zl-dark-border);
  padding: 24px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zl-project-footer .footer-copy,
.zl-project-footer .footer-links a {
  color: var(--zl-text-muted);
  font-size: 12px;
  text-decoration: none;
}

.zl-project-footer .footer-links {
  display: flex;
  gap: 20px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-filters {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.switcher-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 0.5px solid var(--zl-dark-border);
  background: transparent;
  color: var(--zl-text-muted);
  cursor: pointer;
}

.switcher-btn.active {
  background: var(--zl-purple);
  color: #fff;
  border-color: var(--zl-purple);
}

.archive-card {
  background: #fff;
  border: 1px solid var(--zl-light-border);
  border-radius: 14px;
  overflow: hidden;
}

.archive-media {
  position: relative;
  display: block;
  height: 220px;
  background: #131324;
}

.archive-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.35;
}

.archive-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 24, 0.66);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  text-transform: uppercase;
}

.archive-body {
  padding: 16px;
}

.archive-body h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.archive-body h3 a {
  color: var(--zl-text-dark);
  text-decoration: none;
}

.archive-body p {
  margin: 0 0 10px;
  color: var(--zl-text-body);
  font-size: 13px;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .archive-grid,
  .results-grid,
  .stack-grid,
  .csr-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-project h1 {
    font-size: 2rem;
  }

  .csr-card h3 {
    font-size: 24px;
  }

  .meta-row {
    gap: 16px;
  }

  .meta-divider {
    display: none;
  }

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

  .zl-project-nav .nav-links {
    display: none;
  }

  .zl-project-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
