html.cb-on,
html.cb-on body {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.cb-on body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.cb-deck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.cb-track {
  position: relative;
  height: 100%;
  transition: transform 850ms cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.cb-track.cb-instant {
  transition: none;
}

.cb-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  scroll-behavior: auto;
}

.cb-slide-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: var(--cb-head, 60px);
}

.cb-fit {
  width: 100%;
  flex-shrink: 0;
  margin: auto 0;
  transform-origin: 50% 0;
}

.cb-body {
  width: 100%;
  margin: 0 auto;
  padding: clamp(0.4rem, 1.6vh, 1.25rem) 0;
}

.cb-slide .cb-body > section {
  padding: 0;
  margin: 0;
}

.cb-slide .container {
  max-width: none;
  padding: 0 4%;
}

html.cb-on .cbr {
  left: auto;
  width: auto;
  max-width: 1280px;
  transform: none;
  margin: 0 auto;
}

@media (max-width: 899px) {
  html.cb-on .cbr {
    max-width: 520px;
  }
}

.cb-slide .tier-header {
  margin: 0 0 clamp(10px, 2vh, 20px);
}

.cb-slide .tier-art {
  width: 220px;
  max-width: 30%;
}

.cb-slide .portfolio-art {
  aspect-ratio: auto;
  height: 150px;
}

.cb-slide .portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cb-slide .portfolio-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  flex-grow: 0;
}

.cb-slide .portfolio-header {
  margin: 0 0 18px;
  padding: 14px 20px;
}

.cb-slide .portfolio-header .hero-badge {
  margin-bottom: 6px;
}

.cb-slide .portfolio-grid-single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.cb-slide .portfolio-grid-single .portfolio-card {
  max-width: none;
}

.cb-slide .trusted-by-header {
  margin-bottom: 18px;
}

.cb-slide footer {
  margin-top: clamp(12px, 3vh, 32px);
  padding: 18px 0 14px;
}

.cb-slide .features-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cb-slide .cb-intro-slide .portfolio-header {
  margin: 0;
  padding: 40px 32px;
}

@media (max-height: 820px) and (min-width: 861px) {
  .cb-slide .portfolio-desc,
  .cb-slide .portfolio-tags {
    display: none;
  }
}

.tier-index {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  text-align: left;
}

.tier-index a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-left: 3px solid var(--accent-cyan, #38bdf8);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-main, #f8fafc);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tier-index a:hover {
  border-color: var(--accent-cyan, #38bdf8);
  background: rgba(56, 189, 248, 0.08);
}

.tier-index strong {
  font-size: 1rem;
  color: var(--accent-cyan, #38bdf8);
}

.tier-index span {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.cb-slide .cb-banner .container {
  padding: 0 1.5%;
}

.tier-part {
  font-size: 0.8em;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
}

.cb-dots {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border, rgba(148, 163, 184, 0.18));
  backdrop-filter: blur(8px);
}

.cb-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.cb-dot::before {
  content: "";
  position: absolute;
  inset: -5px -8px;
}

.cb-dot:hover {
  border-color: var(--accent-cyan, #38bdf8);
}

.cb-dot[aria-current="true"] {
  height: 24px;
  background: var(--accent-cyan, #38bdf8);
  border-color: var(--accent-cyan, #38bdf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.cb-dot:focus-visible {
  outline: 2px solid var(--accent-cyan, #38bdf8);
  outline-offset: 3px;
}

.cb-dot::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translate(6px, -50%);
  white-space: nowrap;
  background: #1e293b;
  color: var(--text-main, #f8fafc);
  border: 1px solid var(--bg-card-border, rgba(148, 163, 184, 0.18));
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cb-dot:hover::after,
.cb-dot:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 860px) {
  .cb-slide .tier-art {
    display: none;
  }

  .cb-slide .portfolio-grid,
  .cb-slide .portfolio-grid-single {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .cb-slide .portfolio-grid::-webkit-scrollbar {
    display: none;
  }

  .cb-slide .portfolio-grid > .portfolio-card {
    flex: 0 0 calc(50% - 7px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .cb-ind[data-kind="port"] {
    display: flex;
  }

  .cb-slide .portfolio-grid-single {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .cb-dots {
    right: 3px;
    gap: 7px;
    padding: 0;
    background: none;
    border: 0;
    backdrop-filter: none;
  }

  .cb-dot {
    width: 6px;
    height: 6px;
  }

  .cb-dot[aria-current="true"] {
    height: 16px;
  }

  .cb-dot::after {
    display: none;
  }
}

@media (max-width: 640px) {
  html.cb-on body > header nav {
    flex-wrap: nowrap;
    min-height: 52px;
    gap: 10px;
  }

  html.cb-on body > header .site-logo {
    height: 30px;
    padding: 4px 8px;
  }

  html.cb-on body > header .nav-links {
    width: auto;
    gap: 12px;
    padding-bottom: 0;
    overflow: visible;
  }

  html.cb-on body > header .nav-links a {
    font-size: 0.82rem;
  }

  html.cb-on body > header .btn {
    display: none;
  }

  .cb-slide .portfolio-desc,
  .cb-slide .portfolio-langs {
    display: none;
  }
}

.cb-ind {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.cb-ind-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cb-ind-dot::before {
  content: "";
  position: absolute;
  inset: -8px -5px;
}

.cb-ind-dot[aria-current="true"] {
  width: 22px;
  background: var(--accent-cyan, #38bdf8);
  border-color: var(--accent-cyan, #38bdf8);
}

.cb-ind-dot:focus-visible {
  outline: 2px solid var(--accent-cyan, #38bdf8);
  outline-offset: 3px;
}

.cb-ind-count {
  margin-left: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  min-width: 2.6em;
}

@media (max-width: 640px) {
  .cb-slide .portfolio-grid > .portfolio-card {
    flex: 0 0 100%;
  }

  .cb-slide .features-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cb-slide .features-grid::-webkit-scrollbar {
    display: none;
  }

  .cb-slide .features-grid > .feature-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .cb-ind[data-kind="feat"] {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb-track,
  .cb-dot,
  .cb-dot::after {
    transition: none;
  }
}
