.page-shell {
  width: min(var(--theme-shell-wide), calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2.8rem 0 5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--theme-accent);
}

/* ---- Hero ---- */

.hero {
  max-width: 38rem;
  margin-bottom: 3rem;
}

.hero h1 {
  margin: 0;
  max-width: 38rem;
  font-family: var(--theme-font-ui);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--theme-text);
}

.hero-copy {
  max-width: 32rem;
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--theme-text-muted);
}

/* ---- Gallery ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

.asset-card {
  min-height: 17rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: var(--theme-card-pad);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), var(--theme-surface) 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--theme-shadow-xs);
}

.asset-card:hover,
.asset-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--theme-accent-line);
  box-shadow: var(--theme-shadow-md);
  outline: none;
}

.asset-index,
.asset-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.asset-index {
  color: var(--theme-text-soft);
}

.asset-kicker {
  color: var(--theme-accent);
}

.asset-card strong {
  max-width: 13rem;
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--theme-text);
}

.asset-description {
  max-width: 14rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--theme-text-muted);
}

/* ---- Asset preview thumbnails ---- */

.asset-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  padding: 0.95rem;
  border-radius: var(--theme-radius-md);
  background:
    var(--theme-accent-wash-soft),
    var(--theme-surface-muted);
}

.asset-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    linear-gradient(var(--theme-border), var(--theme-border));
  background-size: auto, 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 0, center center;
  opacity: 0.7;
  pointer-events: none;
}

.asset-preview > * {
  position: relative;
  z-index: 1;
}

.asset-preview-bars .asset-bar {
  display: block;
  height: 0.42rem;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-neutral-muted);
}

.asset-bar-1 {
  width: 82%;
  background: var(--theme-neutral-strong);
}

.asset-bar-2 {
  width: 48%;
}

.asset-bar-3 {
  width: 62%;
  background: rgba(var(--theme-accent-rgb), 0.72);
}

.asset-bar-4 {
  width: 36%;
  background: var(--theme-accent);
}

.asset-preview-donut {
  grid-template-columns: 4rem 1fr;
  align-items: center;
  gap: 0.9rem;
}

.asset-donut-ring {
  position: relative;
  width: 4rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--theme-neutral-strong) 0% 40%,
    var(--theme-text-soft) 40% 60%,
    rgba(var(--theme-accent-rgb), 0.78) 60% 85%,
    var(--theme-accent) 85% 100%
  );
}

.asset-donut-ring::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 50%;
  background: var(--theme-surface-strong);
}

.asset-donut-legend {
  display: grid;
  gap: 0.45rem;
}

.asset-donut-legend i,
.asset-progress-label,
.asset-rank-row b,
.asset-rank-row em {
  display: block;
  font-style: normal;
}

.asset-donut-legend i {
  width: 100%;
  height: 0.4rem;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-ink-soft-fill);
}

.asset-preview-progress {
  gap: 0.7rem;
}

.asset-progress-label {
  width: 52%;
  height: 0.42rem;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-ink-soft-fill);
}

.asset-progress-track {
  display: block;
  width: 100%;
  height: 0.55rem;
  border-radius: var(--theme-radius-pill);
  overflow: hidden;
  background: var(--theme-neutral-muted);
}

.asset-progress-fill {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: var(--theme-radius-pill);
  background: linear-gradient(90deg, var(--theme-neutral-strong) 0%, var(--theme-accent) 100%);
}

.asset-preview-stat {
  padding: 0;
  background: transparent;
}

.asset-preview-stat::before {
  display: none;
}

.asset-stat-shell {
  display: grid;
  gap: 0.55rem;
  min-height: 5.7rem;
  padding: 1rem;
  border-radius: calc(var(--theme-radius-md) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #172232 0%, #0f1724 100%);
  box-shadow: var(--theme-shadow-xs);
}

.asset-stat-shell i {
  width: 28%;
  height: 0.34rem;
  border-radius: var(--theme-radius-pill);
  background: rgba(var(--theme-accent-rgb), 0.86);
}

.asset-stat-shell b {
  display: block;
  width: 68%;
  height: 1.55rem;
  border-radius: 0.4rem;
  background: rgba(255, 248, 244, 0.92);
}

.asset-stat-shell em {
  display: block;
  width: 86%;
  height: 0.42rem;
  border-radius: var(--theme-radius-pill);
  background: rgba(255, 255, 255, 0.22);
}

.asset-preview-spark {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  height: 5.4rem;
}

.asset-preview-spark span {
  display: block;
  min-height: 0.55rem;
  height: var(--value);
  border-radius: var(--theme-radius-pill) var(--theme-radius-pill) 0 0;
  background: linear-gradient(180deg, var(--theme-neutral-strong) 0%, var(--theme-accent) 100%);
}

.asset-preview-bullet {
  position: relative;
  grid-template-columns: 0.28fr 0.36fr 0.36fr;
  gap: 0;
  height: 1rem;
  align-items: stretch;
}

.asset-bullet-range {
  display: block;
}

.asset-bullet-range-low {
  background: var(--theme-surface-overlay);
}

.asset-bullet-range-mid {
  background: #becbda;
}

.asset-bullet-range-high {
  background: #9fb0c3;
}

html[data-theme="dark"] .asset-bullet-range-mid {
  background: #314255;
}

html[data-theme="dark"] .asset-bullet-range-high {
  background: #42556a;
}

.asset-bullet-measure {
  position: absolute;
  top: 0.18rem;
  left: 0.55rem;
  width: 72%;
  height: 0.64rem;
  border-radius: var(--theme-radius-pill);
  background: linear-gradient(90deg, var(--theme-neutral-strong) 0%, var(--theme-accent) 100%);
}

.asset-bullet-target {
  position: absolute;
  top: -0.05rem;
  left: 82%;
  width: 0.18rem;
  height: 1.1rem;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-surface-strong);
}

.asset-preview-timeline {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  padding-top: 1.2rem;
}

.asset-preview-timeline::after {
  content: "";
  position: absolute;
  top: 1.43rem;
  left: 1.1rem;
  right: 1.1rem;
  height: 1px;
  background: var(--theme-neutral-muted);
}

.asset-timeline-dot {
  position: relative;
  display: block;
  width: 0.88rem;
  height: 0.88rem;
  margin: 0 auto;
  border: 0.14rem solid var(--theme-surface);
  border-radius: 50%;
  background: var(--theme-surface-muted);
  box-shadow: 0 0 0 1px var(--theme-neutral-muted);
  z-index: 1;
}

.asset-timeline-dot.is-complete {
  background: var(--theme-neutral-strong);
}

.asset-timeline-dot.is-current {
  background: var(--theme-accent);
}

.asset-preview-leaderboard {
  gap: 0.55rem;
}

.asset-rank-row {
  display: grid;
  grid-template-columns: 1rem 1fr 2rem;
  gap: 0.6rem;
  align-items: center;
}

.asset-rank-row i {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--theme-accent-soft);
}

.asset-rank-row b {
  width: 100%;
  height: 0.42rem;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-ink-soft-fill);
}

.asset-rank-row em {
  width: 100%;
  height: 0.34rem;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-ink-strong-fill);
}

/* ---- Compositions band ---- */

.compositions-band {
  padding-top: 2.1rem;
  border-top: 1px solid var(--theme-border);
}

.compositions-band h2 {
  margin: 0;
  font-family: var(--theme-font-ui);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--theme-text);
}

.compositions-note {
  max-width: 28rem;
  margin: 0.8rem 0 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--theme-text-muted);
}

.compositions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature-card {
  min-height: 20rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: var(--theme-card-pad-lg);
  border: 1px solid var(--theme-border-strong);
  border-radius: var(--theme-radius-lg);
  background: linear-gradient(180deg, var(--theme-surface-strong) 0%, var(--theme-surface) 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--theme-shadow-sm);
}

.feature-card strong {
  max-width: 13rem;
  font-size: 1.9rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--theme-text);
}

.feature-card span:nth-child(3) {
  max-width: 15rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--theme-text-muted);
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--theme-accent-line);
  box-shadow: var(--theme-shadow-md);
  outline: none;
}

.feature-preview {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  padding: 1rem;
  border-radius: var(--theme-radius-md);
  background: var(--theme-surface-muted);
}

.feature-preview span {
  display: block;
  min-height: 0.68rem;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-ink-soft-fill);
}

.feature-preview-dashboard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-preview-dashboard span:first-child {
  grid-column: span 3;
  min-height: 4rem;
  background: var(--theme-accent-wash);
}

.feature-preview-sheet span:first-child {
  min-height: 4.8rem;
  background: var(--theme-accent-wash);
}

.feature-preview-review {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-preview-review span:first-child {
  grid-column: span 2;
  min-height: 3rem;
}

/* ---- Responsive ---- */

@media (max-width: 1120px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .gallery,
  .compositions-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }
}
