/* Site-wide layered UI stages — solid cards, not blur walls */

.ui-stage {
  --ui-card: #16161c;
  --ui-card-2: #1c1c24;
  --ui-line: rgba(255, 255, 255, 0.1);
  --ui-gold: #d4a84b;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 24px;
}

.ui-stage--compact {
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(24px, 4vw, 40px);
}

.ui-stage__copy h1,
.ui-stage__copy .ui-stage__title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #f7f6f2;
  font-weight: 600;
}

.ui-stage__copy .lede,
.ui-stage__copy p {
  margin: 0 0 1.25rem;
  max-width: 28rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(244, 244, 239, 0.9);
}

.ui-stage__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ui-gold);
}

.ui-stage__stack {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.ui-card {
  background: var(--ui-card);
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ui-card--browser {
  width: min(100%, 400px);
  transform: rotate(-2deg);
  z-index: 2;
}

.ui-card--stat {
  position: absolute;
  right: 0;
  bottom: 12%;
  width: min(52%, 210px);
  padding: 16px 18px;
  transform: rotate(3deg);
  z-index: 3;
  background: var(--ui-card-2);
}

.ui-card--tag {
  position: absolute;
  left: 4%;
  bottom: 8%;
  z-index: 4;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--ui-gold);
  color: #121212;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transform: rotate(-8deg);
  box-shadow: 0 12px 30px rgba(212, 168, 75, 0.35);
  border: none;
}

.ui-card__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, 0.03);
}

.ui-card__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.ui-card__dot:nth-child(1) { background: #ff5f57; }
.ui-card__dot:nth-child(2) { background: #febc2e; }
.ui-card__dot:nth-child(3) { background: #28c840; }

.ui-card__body {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  min-height: 190px;
}

.ui-card__art {
  background: linear-gradient(145deg, #2a2418 0%, #1a1a20 55%, #121218 100%);
  display: grid;
  place-items: center;
  padding: 20px;
}

.ui-card__glyph {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0d080, #d4a84b 55%, #8a6a28);
  box-shadow: 0 12px 40px rgba(212, 168, 75, 0.35);
  position: relative;
}

.ui-card__glyph::after {
  content: '0';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1408;
  letter-spacing: -0.06em;
}

.ui-card__glyph--work::after { content: 'W'; }
.ui-card__glyph--contact::after { content: '@'; }
.ui-card__glyph--case::after { content: 'C'; }
.ui-card__glyph--svc::after { content: 'S'; }

.ui-card__side {
  padding: 16px 14px;
  border-left: 1px solid var(--ui-line);
  background: #121218;
}

.ui-card__side-line {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}
.ui-card__side-line:nth-child(1) { width: 88%; background: rgba(212, 168, 75, 0.45); }
.ui-card__side-line:nth-child(2) { width: 72%; }
.ui-card__side-line:nth-child(3) { width: 64%; }
.ui-card__side-line:nth-child(4) { width: 80%; }
.ui-card__side-line:nth-child(5) { width: 48%; }

.ui-card--stat strong {
  display: block;
  font-size: 1.45rem;
  color: #f7f6f2;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.ui-card--stat span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 239, 0.55);
}

.ui-card--mini {
  position: absolute;
  left: 8%;
  top: 10%;
  width: min(46%, 170px);
  padding: 12px;
  z-index: 1;
  transform: rotate(-6deg);
}

.ui-card--mini .ui-mini-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.ui-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4a84b, #6a5020);
  flex-shrink: 0;
}

.ui-mini-bar {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

/* Case / service heroes: keep dynamic text, add stack on the right */
.case-page .case-hero .wrap,
.service-page .svc-hero .wrap {
  max-width: 1180px;
}

.case-page .case-hero--stage,
.service-page .svc-hero--stage {
  text-align: left;
}

.case-page .case-hero--stage .ui-stage,
.service-page .svc-hero--stage .ui-stage {
  padding-left: 0;
  padding-right: 0;
}

.case-page .case-hero--stage .case-hero__title,
.service-page .svc-hero--stage .svc-hero__title {
  text-align: left;
}

.case-page .case-hero--stage .case-hero__summary,
.service-page .svc-hero--stage .svc-hero__intro {
  margin-left: 0;
}

@media (max-width: 860px) {
  .ui-stage {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .ui-stage__stack {
    min-height: 280px;
    order: -1;
  }

  .ui-card--browser {
    transform: rotate(-1deg);
  }
}
