/* Moncur site - work page
   Sections used by templates/Work-V2.cshtml.
   Loaded by _LayoutNew.cshtml after tokens.css; no build step. */

/* Work page --------------------------------------------------- */
#work-hero {
  grid-template-columns: 1fr;
  grid-template-rows: 20rem 1fr;
}

@media (min-width: 768px) {
  #work-hero {
    grid-template-rows: 1fr;
  }

  #work-hero > * {
    grid-column: 1;
    grid-row: 1;
  }
}

#work-hero hgroup {
  background: var(--mc-blue);
  max-width: 80rem;
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  #work-hero hgroup {
    background: none;
    padding-top: 10rem;
    padding-bottom: 10rem;
  }
}

#work-hero hgroup h1 {
  max-width: 56rem;
}

#work-hero .circle {
  top: -18%;
  left: 0;
  z-index: -1;
  filter: brightness(0);
}

@media (min-width: 768px) {
  #work-hero .circle {
    filter: brightness(1);
  }
}

#work-hero hgroup p {
  max-width: 36rem;
  font-family: var(--mc-font-wide);
  font-size: 1.5rem;
}

#panels::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000 18%, transparent 70%);
}

#panels::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(0 0 0 / 0.5) 8%, transparent);
}

#panels-overlay {
  inset: 0;
  background: linear-gradient(250deg, transparent 50%, var(--mc-blue) 75%);
  mix-blend-mode: color;
}

.panel {
  overflow: hidden;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  transition: flex 900ms cubic-bezier(0.2, 0.6, 0.35, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .panel.open {
    flex: 5;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .panel.open {
    flex: 3;
  }
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#menu > div {
  padding: 4rem 1rem;
  max-width: 80rem;
}

#menu a {
  flex: 1 1 calc(50% - 1rem);
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  #menu a {
    flex-basis: 0;
    flex-grow: 0;
  }
}

.work-section {
  background: linear-gradient(to bottom, var(--mc-gray-900), #000);
  padding: 4rem 1rem;
}

.work-section > div {
  max-width: 80rem;
}

.work-cards {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .work-cards {
    flex-direction: row;
  }
}

.client-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: scale 150ms ease-out;
  min-width: 33%;
}

@media (min-width: 996px) {
  .client-card {
    min-width: 0;
  }
}

@media (hover: hover) {
  .client-card:hover {
    scale: 1.03;
  }

  .client-card:hover .client-img-overlay {
    opacity: 1;
  }
}

.client-card a {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.client-card-header {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

.client-card-header img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 24rem;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

.client-img-overlay {
  position: absolute;
  inset: 0;
  background: var(--mc-blue);
  mix-blend-mode: color;
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.client-card-content {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
  background: var(--mc-blue);
  color: white;
}

.client-card-category {
  width: fit-content;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: black;
  text-transform: uppercase;
  font-family: var(--mc-font-sans);
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.client-card-info h3 {
  font-family: var(--mc-font-wide);
  font-weight: 800;
  font-size: 1.75rem;
}

.client-card-info p {
  margin-bottom: 0;
}

.client-card-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 0.5rem;
}

.client-card-stats > :not(:first-child) {
  padding-top: 0.5rem;
}

.client-card-stats > .stat:not(:last-child) p {
  border-bottom: 1px solid rgb(255 255 255 / 0.3);
  padding-bottom: 0.5rem;
}

.client-card-stats .stat {
  display: contents;
}

.client-card-stats p {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: end;
  font-family: var(--mc-font-sans);
  margin-bottom: 0;
  line-height: 1.25;
}

@media (max-width: 767px) {
  .client-card-stats p {
    max-width: 80%;
  }
}

.client-card-stats .stat-num {
  font-family: var(--mc-font-narrow);
  font-weight: 800;
  font-size: 1.75rem;
  margin-right: 0.5rem;
  line-height: 1;
}

#contact {
  padding: 8rem 6rem;
  background: linear-gradient(to bottom, var(--mc-gray-900), #000);
}

#contact > div {
  max-width: 80rem;
}

#contact-content {
  max-width: 48rem;
}

#contact .eyebrow {
  color: var(--mc-gray-300);
}

#contact p {
  font-family: var(--mc-font-wide);
  font-size: 1.25rem;
}
