/* ============================================================
   sections.css — tech stack, testimonials and stats bands.
   Solid brand panels (dark/light/dark) layered over the fixed
   scene, in the HUD/terminal language of the rest of the site.
   ============================================================ */

.slab {
  position: relative;
  z-index: 20;
  padding-block: 5rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .slab { padding-block: 8rem; }
}
.slab--dark {
  background-color: var(--c-brown);
  color: var(--c-white);
}
.slab--light {
  background-color: var(--c-haze);
  color: var(--c-brown);
}

.slab__inner {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .slab__inner { padding-inline: 4rem; }
}

.slab__head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 680px;
  margin-bottom: 3.5rem;
}
.slab__lead {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.78;
}

/* ---- Tech stack --------------------------------------------------- */
.layers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}
@media (min-width: 768px) {
  .layers__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .layers__grid { grid-template-columns: repeat(5, 1fr); }
}
.layer-col__label {
  margin-bottom: 1rem;
  color: var(--c-rose);
  font-size: 14px;
}
.layer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.layer-list li {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.layer-list li::before {
  content: "> ";
  opacity: 0.4;
}
.layer-list li:hover {
  border-color: var(--c-rose);
  background-color: rgba(0, 168, 204, 0.1);
}

/* ---- Testimonials ------------------------------------------------- */
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--c-brown);
  background-color: var(--c-white);
}
.review::before,
.review::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--c-burnt);
  border-style: solid;
}
.review::before { top: 6px; right: 6px; border-width: 1px 1px 0 0; }
.review::after { bottom: 6px; left: 6px; border-width: 0 0 1px 1px; }
.review__mark {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 0.4;
  color: var(--c-rose);
}
.review__quote {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.65;
}
.review__who {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.review__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.review__role {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.6;
}

/* ---- Portfolio (drag carousel) ------------------------------------ */
.case-rail {
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
  cursor: grab;
}
.case-rail__track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  padding-inline: 1.5rem;
  will-change: transform;
}
@media (min-width: 1024px) {
  .case-rail__track { padding-inline: 4rem; }
}

.case-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: clamp(300px, 56vw, 700px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.case-card__poster {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background-color: var(--c-brown);
  overflow: hidden;
}
/* real project screenshot fills the poster, under the browser chrome */
.case-card__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
}
.case-card__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.85rem;
  background-color: rgba(0, 0, 0, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}
.case-card__chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
}
.case-card__chrome em {
  margin-left: 0.5rem;
  font-style: normal;
  letter-spacing: 0.02em;
}
.case-card__art {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.case-card__art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.case-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
}
.case-card__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case-card__live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-teal-soft);
}
.case-card__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-teal-soft);
  box-shadow: 0 0 8px var(--c-teal-soft);
  animation: blip 1.4s infinite;
}
.case-card__cat {
  color: rgba(255, 255, 255, 0.5);
}
.case-card__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}
.case-card__tag {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.72;
}
.case-card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-rose);
}
/* closing CTA card */
.case-card--cta {
  justify-content: center;
  text-decoration: none;
  color: var(--c-white);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.28);
  background-color: transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.case-card--cta:hover {
  border-color: var(--c-rose);
  background-color: rgba(0, 168, 204, 0.06);
}
.case-card__cta-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2.5rem 2rem;
}
.kicker--cta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-rose);
}

/* progress thumb */
.case-progress {
  position: relative;
  height: 2px;
  margin-top: 2.5rem;
  background-color: rgba(255, 255, 255, 0.14);
}
.case-progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background-color: var(--c-rose);
}
