/*
 * Selected Work page.
 * Static anonymized project evidence page with scoped editorial styling.
 */

.osm-selected-work-page {
  background: var(--osm-color-bg);
  color: var(--osm-color-text-primary);
}

.osm-selected-work-page-hero {
  background:
    linear-gradient(135deg, rgb(var(--osm-rgb-midnight-navy) / 1) 0%, rgb(var(--osm-rgb-deep-navy) / 1) 58%, rgb(var(--osm-rgb-charcoal) / 1) 100%);
  color: var(--osm-color-text-on-dark);
  overflow: hidden;
  padding-block: clamp(6.5rem, 13vw, 11rem) var(--osm-section-space);
  position: relative;
}

.osm-selected-work-page-hero::before {
  background:
    radial-gradient(circle at 18% 12%, rgb(var(--osm-rgb-soft-copper) / 0.12), transparent 24rem),
    linear-gradient(90deg, transparent 0%, rgb(var(--osm-rgb-warm-ivory) / 0.035) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.osm-selected-work-page-hero__inner {
  position: relative;
  z-index: var(--osm-z-raised);
}

.osm-selected-work-page-hero__content {
  display: grid;
  gap: var(--osm-space-3);
  max-width: 940px;
}

.osm-selected-work-page-hero__headline {
  color: var(--osm-color-text-on-dark);
  font-size: var(--osm-text-h1);
  max-width: 10ch;
}

.osm-selected-work-page-hero__intro {
  color: var(--osm-color-text-on-dark-secondary);
  max-width: var(--osm-measure-narrow);
}

.osm-selected-work-page-hero__note {
  border-inline-start: 1px solid var(--osm-color-accent);
  color: var(--osm-color-text-on-dark-muted);
  font-size: var(--osm-text-small);
  line-height: var(--osm-line-caption);
  max-width: 42rem;
  padding-inline-start: var(--osm-space-3);
}

.osm-selected-work-page-intro,
.osm-selected-work-page-featured,
.osm-selected-work-page-privacy,
.osm-selected-work-page-demonstrates,
.osm-selected-work-page-philosophy,
.osm-selected-work-page-cta {
  padding-block: var(--osm-section-space);
}

.osm-selected-work-page-intro {
  background:
    linear-gradient(180deg, var(--osm-color-bg) 0%, var(--osm-color-surface) 100%);
}

.osm-selected-work-page-intro__inner,
.osm-selected-work-page-privacy__inner,
.osm-selected-work-page-philosophy__inner {
  display: grid;
  gap: var(--osm-space-6);
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.62fr);
}

.osm-selected-work-page-intro__header,
.osm-selected-work-page-featured__header,
.osm-selected-work-page-privacy__header,
.osm-selected-work-page-demonstrates__header,
.osm-selected-work-page-philosophy__header,
.osm-selected-work-page-cta__content {
  display: grid;
  gap: var(--osm-space-3);
}

.osm-selected-work-page-intro__title,
.osm-selected-work-page-featured__title,
.osm-selected-work-page-privacy__title,
.osm-selected-work-page-demonstrates__title,
.osm-selected-work-page-philosophy__title,
.osm-selected-work-page-cta__title {
  color: inherit;
  font-size: var(--osm-text-h2);
}

.osm-selected-work-page-intro__title,
.osm-selected-work-page-privacy__title,
.osm-selected-work-page-philosophy__title {
  max-width: 13ch;
}

.osm-selected-work-page-featured__title,
.osm-selected-work-page-demonstrates__title {
  max-width: 15ch;
}

.osm-selected-work-page-intro__copy,
.osm-selected-work-page-philosophy__copy {
  align-self: end;
  color: var(--osm-color-text-secondary);
  display: grid;
  gap: var(--osm-space-3);
  max-width: var(--osm-measure-narrow);
}

.osm-selected-work-page-featured {
  background: var(--osm-color-surface);
}

.osm-selected-work-page-featured__inner {
  display: grid;
  gap: var(--osm-space-8);
}

.osm-selected-work-page-projects {
  border-top: 1px solid var(--osm-color-border-strong);
  display: grid;
}

.osm-selected-work-page-project {
  border-bottom: 1px solid var(--osm-color-border);
  display: grid;
  gap: var(--osm-space-5);
  grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 1fr);
  padding-block: var(--osm-space-8);
}

.osm-selected-work-page-project__meta {
  align-content: start;
  display: grid;
  gap: var(--osm-space-3);
}

.osm-selected-work-page-project__number,
.osm-selected-work-page-project__type,
.osm-selected-work-page-project__status {
  color: var(--osm-color-accent);
  font-size: var(--osm-text-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: var(--osm-line-caption);
  text-transform: uppercase;
}

.osm-selected-work-page-project__status {
  color: var(--osm-color-text-muted);
  max-width: 14rem;
}

.osm-selected-work-page-project__content {
  display: grid;
  gap: var(--osm-space-6);
}

.osm-selected-work-page-project__heading {
  display: grid;
  gap: var(--osm-space-3);
  grid-template-columns: minmax(12rem, 0.56fr) minmax(18rem, 0.8fr) minmax(18rem, 0.8fr);
}

.osm-selected-work-page-project__title {
  color: var(--osm-color-text-primary);
  font-family: var(--osm-font-display);
  font-size: var(--osm-text-h3);
  font-weight: 400;
  line-height: var(--osm-line-heading);
  margin: 0;
  max-width: 14ch;
}

.osm-selected-work-page-project__overview {
  color: var(--osm-color-text-secondary);
  font-size: var(--osm-text-body-lg);
  line-height: 1.58;
  max-width: var(--osm-measure-narrow);
}

.osm-selected-work-page-project__details {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.osm-selected-work-page-project__details > div {
  background: rgb(var(--osm-rgb-warm-ivory) / 0.42);
  border: 1px solid var(--osm-color-border);
  min-width: 0;
  padding: var(--osm-card-pad);
}

.osm-selected-work-page-project__details h4 {
  color: var(--osm-color-text-primary);
  font-family: var(--osm-font-body);
  font-size: var(--osm-text-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: var(--osm-line-caption);
  margin: 0 0 var(--osm-space-3);
  text-transform: uppercase;
}

.osm-selected-work-page-project__details p {
  color: var(--osm-color-text-secondary);
}

.osm-selected-work-page-project__details ul {
  color: var(--osm-color-text-secondary);
  display: grid;
  gap: var(--osm-space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.osm-selected-work-page-project__details li {
  min-width: 0;
  padding-inline-start: var(--osm-space-3);
  position: relative;
}

.osm-selected-work-page-project__details li::before {
  background: var(--osm-color-accent);
  content: "";
  height: 1px;
  inset-block-start: 0.82em;
  inset-inline-start: 0;
  position: absolute;
  width: var(--osm-space-2);
}

.osm-selected-work-page-privacy {
  background: var(--osm-color-midnight-navy);
  color: var(--osm-color-text-on-dark);
}

.osm-selected-work-page-privacy__copy {
  align-self: end;
  color: var(--osm-color-text-on-dark-secondary);
  max-width: var(--osm-measure-narrow);
}

.osm-selected-work-page-demonstrates {
  background:
    linear-gradient(180deg, var(--osm-color-warm-ivory) 0%, var(--osm-color-bg) 100%);
}

.osm-selected-work-page-demonstrates__inner {
  display: grid;
  gap: var(--osm-space-8);
}

.osm-selected-work-page-demonstrates__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.osm-selected-work-page-demonstrates__grid li {
  background: rgb(var(--osm-rgb-warm-ivory) / 0.42);
  border: 1px solid var(--osm-color-border);
  color: var(--osm-color-text-primary);
  font-family: var(--osm-font-display);
  font-size: var(--osm-text-h4);
  line-height: var(--osm-line-heading);
  min-width: 0;
  padding: var(--osm-card-pad);
}

.osm-selected-work-page-philosophy {
  background: var(--osm-color-bg);
}

.osm-selected-work-page-cta {
  background: var(--osm-color-bg);
  color: var(--osm-color-text-primary);
}

.osm-selected-work-page-cta__inner {
  align-items: end;
  border-top: 1px solid var(--osm-color-border-strong);
  display: grid;
  gap: var(--osm-space-5);
  grid-template-columns: minmax(0, 0.8fr) auto;
  padding-block-start: var(--osm-space-6);
}

.osm-selected-work-page-cta__title {
  max-width: 14ch;
}

.osm-selected-work-page-cta__copy {
  color: var(--osm-color-text-secondary);
  max-width: var(--osm-measure-narrow);
}

.osm-selected-work-page-cta__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--osm-space-2);
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .osm-selected-work-page-project__heading {
    grid-template-columns: minmax(12rem, 0.5fr) minmax(18rem, 1fr);
  }

  .osm-selected-work-page-project__overview {
    grid-column: 1 / -1;
  }

  .osm-selected-work-page-project__details,
  .osm-selected-work-page-demonstrates__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .osm-selected-work-page-intro__inner,
  .osm-selected-work-page-project,
  .osm-selected-work-page-privacy__inner,
  .osm-selected-work-page-philosophy__inner,
  .osm-selected-work-page-cta__inner {
    grid-template-columns: 1fr;
  }

  .osm-selected-work-page-project {
    gap: var(--osm-space-4);
  }

  .osm-selected-work-page-project__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .osm-selected-work-page-project__status {
    max-width: none;
  }

  .osm-selected-work-page-project__heading {
    grid-template-columns: 1fr;
  }

  .osm-selected-work-page-project__overview {
    grid-column: auto;
  }

  .osm-selected-work-page-intro__title,
  .osm-selected-work-page-featured__title,
  .osm-selected-work-page-privacy__title,
  .osm-selected-work-page-demonstrates__title,
  .osm-selected-work-page-philosophy__title {
    max-width: 15ch;
  }

  .osm-selected-work-page-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 781px) {
  .osm-selected-work-page-hero {
    padding-block: clamp(5.5rem, 22vw, 7rem) var(--osm-section-space-sm);
  }

  .osm-selected-work-page-intro,
  .osm-selected-work-page-featured,
  .osm-selected-work-page-privacy,
  .osm-selected-work-page-demonstrates,
  .osm-selected-work-page-philosophy,
  .osm-selected-work-page-cta {
    padding-block: var(--osm-section-space-sm);
  }

  .osm-selected-work-page-featured__inner,
  .osm-selected-work-page-demonstrates__inner {
    gap: var(--osm-space-6);
  }

  .osm-selected-work-page-project {
    padding-block: var(--osm-space-6);
  }

  .osm-selected-work-page-project__details,
  .osm-selected-work-page-demonstrates__grid {
    grid-template-columns: 1fr;
  }

  .osm-selected-work-page-project__details > div,
  .osm-selected-work-page-demonstrates__grid li {
    padding: var(--osm-space-4);
  }

  .osm-selected-work-page-cta__actions {
    align-items: stretch;
    display: grid;
  }
}
