@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap");

.our-work-page {
  --work-forest: #7a1d12;
  --work-forest-deep: #1a0907;
  --work-ink: #17211f;
  --work-cream: #f6edea;
  --work-paper: #fffaf8;
  --work-gold: #db3315;
  --work-sage: #a8b9a6;
  background: var(--work-paper);
  color: var(--work-ink);
  font-family: "DM Sans", sans-serif;
}

.our-work-page main {
  overflow: hidden;
}

.our-work-page h1,
.our-work-page h2,
.our-work-page h3,
.our-work-page p {
  margin-top: 0;
}

.our-work-page em {
  color: var(--work-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

.work-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.work-kicker {
  margin-bottom: 20px;
  color: #f5d985;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.work-kicker--dark {
  color: #8a6a1d;
}

.work-hero {
  position: relative;
  min-height: min(780px, calc(100vh - 90px));
  margin-top: 10px;
  overflow: hidden;
  background: var(--work-forest-deep);
  color: #fff;
  isolation: isolate;
}

.work-hero__image,
.work-hero__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.78) contrast(1.02);
  animation: work-hero-in 1.3s cubic-bezier(.16, 1, .3, 1) both;
}

.work-hero__wash {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 43, 37, .94) 0%, rgba(7, 55, 47, .79) 39%, rgba(7, 55, 47, .18) 72%),
    linear-gradient(0deg, rgba(4, 31, 27, .58), transparent 50%);
}

.work-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 38%;
  height: 10px;
  background: var(--work-gold);
}

.work-hero__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: inherit;
  margin-inline: auto;
  padding: clamp(88px, 13vh, 150px) 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-hero__copy {
  max-width: 770px;
  animation: work-copy-in .9s .12s cubic-bezier(.16, 1, .3, 1) both;
}

.work-hero h1 {
  max-width: 10ch;
  margin-bottom: 28px;
  color: #fff;
  font-size: clamp(4rem, 8.2vw, 7.7rem);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: .82;
  text-shadow: none;
}

.work-hero h1 em {
  letter-spacing: -.045em;
}

.work-hero__copy > p:not(.work-kicker) {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.work-hero__actions,
.work-cta__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.work-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.work-button:hover {
  transform: translateY(-3px);
}

.work-button--light {
  background: #fff;
  color: var(--work-forest-deep);
}

.work-button--light:hover {
  background: var(--work-gold);
}

.work-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.work-text-link span {
  color: var(--work-gold);
  font-size: 1.1rem;
  transition: transform .25s ease;
}

.work-text-link:hover span {
  transform: translate(3px, -3px);
}

.work-hero__note {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(360px, 100%);
  padding: 20px 0 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
}

.work-hero__note-number {
  color: var(--work-gold);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}

.work-hero__note strong {
  display: block;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.work-hero__note p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  line-height: 1.45;
}

.work-intro {
  display: grid;
  grid-template-columns: .72fr 2.1fr;
  gap: 56px;
  padding-block: clamp(90px, 12vw, 150px);
}

.work-intro__label {
  padding-top: 12px;
  border-top: 1px solid rgba(23, 33, 31, .24);
  color: #766f61;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.work-intro__statement h2 {
  max-width: 900px;
  margin-bottom: 28px;
  color: var(--work-ink);
  font-size: clamp(2.35rem, 4.4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.03;
}

.work-intro__statement p {
  max-width: 680px;
  margin: 0 0 0 auto;
  color: #625f57;
  font-size: 1.02rem;
  line-height: 1.8;
}

.work-programs {
  padding-block: clamp(80px, 10vw, 130px);
  background: var(--work-cream);
}

.work-section-heading {
  display: grid;
  grid-template-columns: 1.5fr .72fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}

.work-section-heading h2,
.work-method h2,
.work-cta h2 {
  margin-bottom: 0;
  color: var(--work-ink);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .98;
}

.work-section-heading > p {
  margin-bottom: 4px;
  color: #69645a;
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.work-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--work-ink);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.work-card--feature {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 858px;
}

.work-card--portrait {
  grid-column: span 5;
  min-height: 420px;
}

.work-card--compact {
  grid-column: span 5;
  min-height: 420px;
}

.work-card--wide {
  grid-column: span 7;
  min-height: 500px;
}

.work-card--image-small {
  grid-column: span 5;
  min-height: 500px;
}

.work-card img,
.work-card__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.work-card img {
  object-fit: cover;
  filter: saturate(.78);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .5s ease;
}

.work-card__shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 25, 22, .06) 14%, rgba(4, 25, 22, .88) 100%);
}

.work-card:hover img {
  transform: scale(1.045);
  filter: saturate(.95);
}

.work-card__index {
  position: absolute;
  top: 24px;
  right: 26px;
  color: rgba(255, 255, 255, .75);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.work-card__content {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
}

.work-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
}

.work-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.work-card strong {
  max-width: 16ch;
  color: inherit;
  font-size: clamp(1.65rem, 2.5vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.work-card__content > span:not(.work-card__icon) {
  max-width: 390px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  line-height: 1.55;
}

.work-card b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-card b i {
  color: var(--work-gold);
  font-size: 1rem;
  font-style: normal;
  transition: transform .25s ease;
}

.work-card:hover b i {
  transform: translate(3px, -3px);
}

.work-card--cream,
.work-card--gold,
.work-card--green,
.work-card--paper {
  color: var(--work-ink);
}

.work-card--cream {
  background: #d9ded1;
}

.work-card--gold {
  background: #d4ab47;
}

.work-card--green {
  background: var(--work-forest);
  color: #fff;
}

.work-card--paper {
  background: #e9e3d3;
}

.work-card--cream .work-card__index,
.work-card--gold .work-card__index,
.work-card--paper .work-card__index {
  color: rgba(23, 33, 31, .55);
}

.work-card--cream .work-card__icon,
.work-card--gold .work-card__icon,
.work-card--paper .work-card__icon {
  border-color: rgba(23, 33, 31, .3);
}

.work-card--cream .work-card__content > span:not(.work-card__icon),
.work-card--gold .work-card__content > span:not(.work-card__icon),
.work-card--paper .work-card__content > span:not(.work-card__icon) {
  color: rgba(23, 33, 31, .66);
}

.work-card--cream b i,
.work-card--gold b i,
.work-card--paper b i {
  color: var(--work-forest);
}

.work-method {
  padding-block: clamp(90px, 12vw, 160px);
  background:
    radial-gradient(circle at 2% 5%, rgba(210, 170, 70, .12), transparent 25%),
    var(--work-paper);
}

.work-method__grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(60px, 9vw, 130px);
}

.work-method__intro {
  align-self: start;
  position: sticky;
  top: 130px;
}

.work-method__intro > p:not(.work-kicker) {
  max-width: 430px;
  margin: 28px 0;
  color: #69645a;
  line-height: 1.75;
}

.work-text-link--dark {
  color: var(--work-ink);
}

.work-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid rgba(23, 33, 31, .18);
  transition-delay: var(--work-delay, 0ms);
}

.work-steps li:last-child {
  border-bottom: 1px solid rgba(23, 33, 31, .18);
}

.work-steps li > span {
  padding-top: 4px;
  color: #9b7a29;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.work-steps strong {
  display: block;
  margin-bottom: 9px;
  color: var(--work-ink);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.025em;
}

.work-steps p {
  max-width: 500px;
  margin-bottom: 0;
  color: #68645b;
  line-height: 1.7;
}

.work-cta {
  position: relative;
  min-height: 620px;
  margin-bottom: clamp(80px, 10vw, 130px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.work-cta > img,
.work-cta__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.work-cta > img {
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(.72);
}

.work-cta__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 42, 36, .96), rgba(6, 48, 41, .72) 54%, rgba(5, 42, 36, .08));
}

.work-cta__content {
  max-width: 730px;
  padding: clamp(40px, 7vw, 80px);
}

.work-cta h2 {
  color: #fff;
}

.work-cta__content > p:not(.work-kicker) {
  max-width: 540px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, .74);
  line-height: 1.7;
}

.work-button--gold {
  background: var(--work-gold);
  color: #17211f;
}

.work-button--gold:hover {
  background: #e3c36d;
}

.work-button--outline {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.work-button--outline:hover {
  border-color: #fff;
  background: #fff;
  color: var(--work-forest-deep);
}

.our-work-page .reveal {
  transition-delay: var(--work-delay, 0ms);
}

/* Projects portfolio additions */
.our-work-page .work-hero__wash {
  background:
    linear-gradient(90deg, rgba(18, 15, 15, .96) 0%, rgba(31, 22, 21, .82) 43%, rgba(31, 22, 21, .2) 76%),
    linear-gradient(0deg, rgba(15, 11, 10, .7), transparent 52%);
}

.project-filter-row {
  display: flex;
  gap: 10px;
  margin: -12px 0 34px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.project-filter-row span {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(122, 29, 18, .18);
  border-radius: 999px;
  background: rgba(255, 250, 248, .65);
  color: #6e625e;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-filter-row span:first-child {
  border-color: var(--work-gold);
  background: var(--work-gold);
  color: #fff;
}

.project-grid .work-card {
  cursor: default;
}

.project-grid .work-card__shade {
  background: linear-gradient(180deg, rgba(25, 14, 12, .03) 10%, rgba(20, 12, 11, .94) 100%);
}

.project-grid .work-card__content small {
  display: block;
  margin-bottom: 11px;
  color: #ff9a88;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-grid .work-card--cream .work-card__content small,
.project-grid .work-card--gold .work-card__content small {
  color: var(--work-forest);
}

.project-grid .work-card b {
  color: rgba(255, 255, 255, .58);
}

.project-grid .work-card--cream b,
.project-grid .work-card--gold b {
  color: rgba(23, 33, 31, .58);
}

.project-profile-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
  padding: clamp(55px, 8vw, 95px) max(20px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .08), transparent 35%),
    var(--work-gold);
  color: #fff;
}

.project-profile-band h2 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}

.project-profile-band p:not(.work-kicker) {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  line-height: 1.7;
}

.project-profile-band .work-kicker {
  color: rgba(255, 255, 255, .76);
}

.project-profile-band .work-button--light {
  min-width: 190px;
  color: var(--work-forest-deep);
}

.project-profile-band .work-button--light:hover {
  background: var(--work-forest-deep);
  color: #fff;
}

.our-work-page .work-cta {
  margin-top: clamp(80px, 10vw, 130px);
}

.our-work-page .work-cta__shade {
  background: linear-gradient(90deg, rgba(20, 12, 11, .97), rgba(40, 23, 20, .76) 56%, rgba(40, 23, 20, .12));
}

@keyframes work-hero-in {
  from { opacity: .5; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes work-copy-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .work-hero {
    min-height: 700px;
  }

  .work-hero__wash {
    background:
      linear-gradient(90deg, rgba(5, 43, 37, .94), rgba(7, 55, 47, .56)),
      linear-gradient(0deg, rgba(4, 31, 27, .72), transparent 70%);
  }

  .work-intro,
  .work-section-heading,
  .work-method__grid {
    grid-template-columns: 1fr;
  }

  .work-intro {
    gap: 36px;
  }

  .work-intro__label {
    max-width: 190px;
  }

  .work-intro__statement p {
    margin-left: 0;
  }

  .work-section-heading {
    gap: 24px;
  }

  .work-section-heading > p {
    max-width: 560px;
  }

  .work-card--feature,
  .work-card--portrait,
  .work-card--compact,
  .work-card--wide,
  .work-card--image-small {
    grid-column: span 6;
    grid-row: auto;
    min-height: 540px;
  }

  .work-card--compact {
    min-height: 400px;
  }

  .work-method__intro {
    position: static;
  }

  .project-profile-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-profile-band .work-button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .work-container,
  .work-hero__inner {
    width: min(100% - 28px, 1180px);
  }

  .work-hero {
    min-height: 680px;
    margin-top: 6px;
  }

  .work-hero__image {
    object-position: 62% center;
  }

  .work-hero__inner {
    padding-top: 86px;
    padding-bottom: 34px;
  }

  .work-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.3rem);
  }

  .work-hero__note {
    align-self: flex-start;
    width: 100%;
  }

  .work-intro {
    padding-block: 78px;
  }

  .work-intro__statement h2,
  .work-section-heading h2,
  .work-method h2,
  .work-cta h2 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .work-programs {
    padding-block: 72px;
  }

  .work-grid {
    display: block;
  }

  .work-card,
  .work-card--feature,
  .work-card--portrait,
  .work-card--compact,
  .work-card--wide,
  .work-card--image-small {
    min-height: 460px;
    margin-bottom: 14px;
  }

  .work-card--cream,
  .work-card--gold,
  .work-card--green,
  .work-card--paper {
    min-height: 380px;
  }

  .work-card__content {
    padding: 28px;
  }

  .work-card strong {
    font-size: 2rem;
  }

  .project-filter-row {
    margin-bottom: 24px;
  }

  .project-profile-band {
    padding-right: 14px;
    padding-left: 14px;
  }

  .project-profile-band .work-button {
    width: 100%;
  }

  .work-method {
    padding-block: 80px;
  }

  .work-method__grid {
    gap: 52px;
  }

  .work-steps li {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .work-cta {
    width: 100%;
    min-height: 650px;
    margin-bottom: 70px;
  }

  .work-cta > img {
    object-position: 63% center;
  }

  .work-cta__shade {
    background: linear-gradient(0deg, rgba(5, 42, 36, .98) 0%, rgba(5, 42, 36, .72) 68%, rgba(5, 42, 36, .18));
  }

  .our-work-page .work-cta__shade {
    background: linear-gradient(0deg, rgba(20, 12, 11, .98) 0%, rgba(40, 23, 20, .76) 68%, rgba(40, 23, 20, .18));
  }

  .work-cta__content {
    padding: 42px 22px;
  }

  .work-cta__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-hero__image,
  .work-hero__copy {
    animation: none;
  }

  .work-card img,
  .work-button,
  .work-text-link span,
  .work-card b i {
    transition: none;
  }
}
