/* An illustrative Home screen, rendered sharply at every phone size. */
.hero-portfolio {
  --rest-rotation: -1.5deg;
}
.hero-portfolio .hero-device {
  z-index: 3;
}
.hero-back-card {
  position: absolute;
  z-index: 1;
  width: 168px;
  transform: perspective(1100px)
    translate3d(
      calc(var(--move-x, 0px) * -0.65),
      calc(var(--move-y, 0px) * -0.55),
      0
    )
    rotateX(calc(var(--tilt-x, 0deg) * 0.45))
    rotateY(calc(var(--tilt-y, 0deg) * 0.65)) rotateZ(var(--card-rotation));
}
.hero-back-card-left {
  --card-rotation: -13deg;
  top: 66px;
  left: 1%;
}
.hero-back-card-right {
  --card-rotation: 13deg;
  right: -1%;
  top: 310px;
}
.hero-card-face {
  position: relative;
  display: block;
  border-radius: 9px;
  transform: translateY(var(--card-lift, 0px))
    rotate(var(--card-hover-turn, 0deg));
  box-shadow:
    0 18px 28px #0006,
    0 0 0 1px #ffffff0d;
  transition:
    transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 400ms ease;
}
.hero-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 10%,
    #ffffffb0 48%,
    transparent 80%
  );
  opacity: calc(var(--pointer-active, 0) * 0.08);
  transform: translateX(calc(var(--move-x, 0px) * -0.5));
}
.hero-card-face img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-back-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 9px;
}
.portfolio-screen {
  container-type: inline-size;
  aspect-ratio: 368 / 800;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  user-select: none;
  border-radius: 31px;
}
.portfolio-demo-content {
  position: relative;
  height: 100%;
  padding-top: 4cqw;
  font-size: 4.4cqw;
  line-height: 1.35;
}
.portfolio-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11cqw;
  height: 7cqw;
  font-size: 4cqw;
}
.portfolio-status-icons {
  display: flex;
  align-items: center;
  gap: 2cqw;
}
.portfolio-status-icons svg {
  width: 12cqw;
  height: 4.5cqw;
}
.portfolio-battery {
  width: 7cqw;
  height: 3.5cqw;
  border-radius: 1cqw;
  background: var(--text);
  position: relative;
}
.portfolio-battery::after {
  content: "";
  position: absolute;
  right: -1cqw;
  top: 1cqw;
  width: 0.6cqw;
  height: 1.5cqw;
  background: var(--text);
}
.portfolio-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5cqw 5cqw 4cqw;
}
.portfolio-wordmark {
  font-size: 6.1cqw;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.portfolio-wordmark > span {
  color: var(--gold);
}
.portfolio-profile {
  width: 7.5cqw;
  height: 7.5cqw;
}
.portfolio-overview {
  padding-inline: 5cqw;
}
.portfolio-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  font-size: 4.1cqw;
  font-weight: 700;
}
.portfolio-info {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--muted);
  color: var(--muted);
  width: 3.4cqw;
  height: 3.4cqw;
  border-radius: 50%;
  font-size: 2.5cqw;
  margin-left: 2cqw;
}
.portfolio-mode {
  display: flex;
  width: 43cqw;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
}
.portfolio-mode > span {
  flex: 1;
  text-align: center;
  padding: 1.4cqw 0 2.5cqw;
}
.portfolio-mode > .selected {
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
}
.portfolio-amount {
  display: block;
  margin-top: 2.4cqw;
  font-size: 10.6cqw;
  line-height: 1.3;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.portfolio-amount > span {
  color: #f5f3edcc;
}
.portfolio-gain {
  color: var(--sage);
  font-size: 3.8cqw;
  font-weight: 700;
  margin-top: 1cqw;
  white-space: nowrap;
}
.portfolio-gain > span {
  color: var(--muted);
  font-weight: 400;
}
.portfolio-chart {
  margin-top: 5cqw;
}
.portfolio-chart > svg {
  display: block;
  width: 100%;
  height: 40cqw;
  overflow: visible;
}
.portfolio-chart-line {
  filter: drop-shadow(0 2px 3px #9dccaa26);
}
.portfolio-chart-dates {
  display: flex;
  justify-content: space-between;
  padding: 1cqw 5cqw 0;
  color: var(--muted);
  font-size: 3cqw;
}
.portfolio-periods {
  display: flex;
  justify-content: space-between;
  padding: 3cqw 5cqw 0;
  color: var(--muted);
  font-size: 3.8cqw;
}
.portfolio-periods > span {
  width: 12cqw;
  padding-bottom: 3cqw;
  text-align: center;
}
.portfolio-periods > .selected {
  color: var(--text);
  border-bottom: 1px solid var(--gold);
  font-weight: 700;
}
.portfolio-recent {
  margin-top: 4cqw;
  padding-inline: 5cqw;
}
.portfolio-recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2cqw;
}
.portfolio-recent-heading > strong {
  font-size: 5cqw;
}
.portfolio-recent-heading > span {
  font-size: 3cqw;
  color: var(--gold);
}
.portfolio-recent-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.7cqw;
}
.portfolio-recent-cards img {
  width: 100%;
  height: auto;
  border-radius: 1.7cqw;
  box-shadow: 0 5px 9px #0005;
}
.portfolio-recent-cards strong,
.portfolio-recent-cards span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portfolio-recent-cards strong {
  margin-top: 2cqw;
  font-size: 3.1cqw;
}
.portfolio-recent-cards span {
  color: var(--muted);
  font-size: 2.6cqw;
  margin-top: 0.6cqw;
}
.portfolio-navigation {
  position: absolute;
  bottom: 3cqw;
  inset-inline: 3.5cqw;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  padding: 2cqw 1cqw 2.3cqw;
  border: 1px solid #ffffff0c;
  border-radius: 6cqw;
  background: #2c2e33ed;
  box-shadow: 0 -7px 15px #151619aa;
  color: var(--muted);
}
.portfolio-navigation > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 1.5cqw;
  font-size: 2.7cqw;
}
.portfolio-navigation svg {
  width: 6cqw;
  height: 6cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portfolio-navigation > .selected {
  color: var(--gold);
}
.portfolio-scan > svg {
  box-sizing: content-box;
  padding: 2.4cqw;
  background: var(--gold);
  border-radius: 3.6cqw;
  color: var(--bg);
  margin-top: -6cqw;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-back-card:not(:has(.motion-art)):hover {
    --card-lift: -9px;
    --card-hover-turn: 2deg;
  }
  .hero-back-card-right:not(:has(.motion-art)):hover {
    --card-hover-turn: -2deg;
  }
  .hero-back-card:hover .hero-card-face {
    box-shadow:
      0 26px 34px #0008,
      0 0 0 1px #f4ce7340;
  }
}
@media (max-width: 1050px) {
  .hero-back-card {
    width: 150px;
  }
  .hero-back-card-left {
    top: 74px;
    left: -1%;
  }
  .hero-back-card-right {
    top: 294px;
  }
}
@media (max-width: 800px) {
  .hero-back-card {
    width: 174px;
  }
  .hero-back-card-left {
    top: 78px;
    left: 5%;
  }
  .hero-back-card-right {
    top: 310px;
    right: 5%;
  }
}
@media (max-width: 560px) {
  .hero-back-card {
    width: 130px;
  }
  .hero-back-card-left {
    top: 85px;
    left: 0;
  }
  .hero-back-card-right {
    top: 298px;
    right: 0;
  }
  .hero-portfolio .stage-note {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .hero-portfolio .hero-device {
    width: 212px;
  }
  .hero-back-card {
    width: 112px;
  }
  .hero-back-card-left {
    top: 90px;
    left: 1%;
  }
  .hero-back-card-right {
    top: 305px;
    right: 1%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-back-card {
    transform: rotate(var(--card-rotation));
  }
  .hero-card-face {
    transform: none;
  }
  .hero-card-face::after {
    display: none;
  }
}
