.work-section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: 2rem;
}

.work-heading h2,
.contact-intro h2 {
  margin: 0;
  font-family: var(--display, Georgia, serif);
  font-size: clamp(3.125rem, 7.8vw, 7.25rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.066em;
}

.work-heading p {
  max-width: 16rem;
  margin: 0 0 .15rem;
  color: #46564a;
  text-wrap: balance;
}

.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: .9rem 0 1rem;
  border-top: 1px solid #d7d9cd;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}

.work-filters button {
  min-height: 2.75rem;
  padding: .45rem .95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #37493d;
  font: 650 .81rem var(--sans, sans-serif);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.work-filters button[aria-pressed="true"] {
  border-color: #b8c38f;
  background: #dce8b7;
  color: #253728;
}

.work-filters button:hover {
  border-color: #9ca991;
}

.work-filter-status,
.work-category {
  margin: 0;
  color: #526456;
  font-family: var(--mono, monospace);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .065em;
  text-transform: uppercase;
}

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

.work-toolbar[hidden],
.work-grid > [hidden],
.contact-copy[hidden] {
  display: none;
}

.work-feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  min-height: clamp(25rem, 40vw, 34rem);
  border: 1px solid #283e33;
  background: #22332a;
  color: #f7f4e9;
}

.work-feature-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  min-height: 21rem;
  background: #787861;
}

.work-feature-visual img,
.work-tile-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-feature-visual img {
  position: absolute;
  inset: 0;
}

.work-feature-content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: clamp(1.5rem, 4.4vw, 4.5rem);
}

.work-feature .work-category {
  color: #cedc9b;
}

.work-feature h3,
.work-tile h3,
.work-practice h3,
.contact-form h3 {
  margin: 0;
  font-family: var(--display, Georgia, serif);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}

.work-feature h3 {
  margin-top: .8rem;
  font-size: clamp(2.7rem, 5.4vw, 5.5rem);
}

.work-feature-content > p {
  max-width: 31ch;
  margin: 1rem 0 1.6rem;
  color: #e0e5d9;
  line-height: 1.6;
  text-wrap: pretty;
}

.work-project-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.85rem;
  padding: .55rem .9rem;
  border: 1px solid #d4e2a6;
  background: #d4e2a6;
  color: #213227;
  font-size: .81rem;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}

.work-project-link:hover {
  border-color: #f0f6d8;
  background: #f0f6d8;
}

.work-project-link span:last-child {
  flex: none;
  font: 500 1rem var(--sans, sans-serif);
}

.work-case {
  margin-top: clamp(1.2rem, 2.4vw, 2rem);
  border-top: 1px solid #5c6b5c;
}

.work-case summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  color: #f1f2e9;
  font-size: .825rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.work-case summary::-webkit-details-marker {
  display: none;
}

.work-case summary:hover {
  color: #d4e2a6;
}

.work-case-icon {
  position: relative;
  flex: 0 0 .65rem;
  height: .65rem;
}

.work-case-icon::before,
.work-case-icon::after {
  position: absolute;
  inset: calc(50% - .5px) 0 auto;
  height: 1px;
  background: currentColor;
  content: "";
}

.work-case-icon::after {
  transform: rotate(90deg);
}

.work-case[open] .work-case-icon::after {
  visibility: hidden;
}

.work-case-content {
  display: grid;
  gap: .65rem;
  padding-bottom: .4rem;
}

.work-case-content p {
  margin: 0;
  color: #e0e5d9;
  font-size: .83rem;
  line-height: 1.65;
}

.work-case-content strong {
  display: block;
  color: #f7f4e9;
  font-weight: 750;
}

.work-tile {
  min-width: 0;
  border: 1px solid #d7d9cd;
  background: #f1eee4;
}

.work-tile a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.work-tile a:focus-visible {
  outline-offset: 3px;
}

.work-tile-visual {
  overflow: hidden;
  aspect-ratio: 1.94;
  background: #d6d1bf;
}

.work-tile-music .work-tile-visual {
  background: #393d34;
}

.work-tile-visual img {
  transition: transform .45s ease;
}

.work-tile a:hover img {
  transform: scale(1.035);
}

.work-tile-content {
  display: flex;
  flex: 1;
  align-items: start;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: clamp(1rem, 2.7vw, 2.5rem);
}

.work-tile h3,
.work-practice h3 {
  margin-top: .35rem;
  font-size: clamp(1.75rem, 3.1vw, 3rem);
}

.work-tile p,
.work-practice p {
  margin: .6rem 0 0;
  color: #445449;
  font-size: .9rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.work-tile-arrow {
  display: grid;
  flex: 0 0 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid #bbc3af;
  border-radius: 50%;
  color: #253728;
  font-size: 1.1rem;
  transition: background-color .2s;
}

.work-tile a:hover .work-tile-arrow {
  background: #dce8b7;
}

.work-practice {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 1rem 2.25rem;
  padding: clamp(1.3rem, 3.05vw, 2.75rem);
  border: 1px solid #d7d9cd;
}

.work-practice p {
  max-width: 36ch;
  margin: 0;
}

.work-practice-channel {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  color: #334e3a;
  font-size: .81rem;
  font-weight: 700;
  text-underline-offset: .22em;
}

.work-project-link-outline {
  justify-self: start;
  border-color: #abb9a8;
  background: transparent;
}

.work-project-link-outline:hover {
  border-color: #a5b391;
  background: #dce8b7;
}

.contact-section {
  padding-block: clamp(4rem, 8vw, 8rem);
  background: #1e2e25;
  color: #f7f4e9;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: 3rem clamp(2.5rem, 7vw, 8rem);
}

.contact-intro h2 {
  max-width: 10ch;
}

.contact-intro > p:not(.contact-status) {
  max-width: 29ch;
  margin: 1.25rem 0 1.8rem;
  color: #d9e1d4;
  line-height: 1.65;
  text-wrap: balance;
}

.contact-channels {
  max-width: 32rem;
  border-top: 1px solid #536657;
}

.contact-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
  border-bottom: 1px solid #536657;
}

.contact-channel a {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .65rem;
  min-height: 3.25rem;
  padding-block: .4rem;
  color: #f7f4e9;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}

.contact-channel a:hover {
  color: #d4e2a6;
}

.contact-handle {
  color: #c6d2c3;
  font-family: var(--mono, monospace);
  font-size: .725rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.contact-copy {
  flex: none;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: #d4e2a6;
  font: 650 .72rem var(--sans, sans-serif);
  cursor: pointer;
}

.contact-copy:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.contact-status {
  min-height: 1.5rem;
  margin: .45rem 0 0;
  color: #d4e2a6;
  font-size: .78rem;
}

.contact-form {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: clamp(1.1rem, 3.25vw, 2.75rem);
  border: 1px solid #536657;
  background: #25392e;
}

.contact-form h3 {
  margin: 0 0 .5rem;
  font-size: clamp(1.8rem, 3.15vw, 2.85rem);
}

.contact-form fieldset {
  min-inline-size: 0;
  margin: 0 0 .45rem;
  padding: 0;
  border: 0;
}

.contact-form legend,
.contact-form > label {
  color: #e7eadf;
  font-size: .8rem;
  font-weight: 750;
}

.contact-form legend {
  margin-bottom: .3rem;
  padding: 0;
}

.contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.contact-topics label {
  position: relative;
  cursor: pointer;
}

.contact-topics input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}

.contact-topics span {
  display: flex;
  align-items: center;
  min-height: 2.625rem;
  padding: .35rem .68rem;
  border: 1px solid #647869;
  border-radius: 999px;
  color: #e7eadf;
  font-size: .77rem;
  line-height: 1.2;
  transition: background-color .2s, border-color .2s;
}

.contact-topics input:focus-visible + span,
.contact-section :is(a, button, textarea):focus-visible,
.work-feature :is(a, summary):focus-visible {
  outline: 2px solid #d4e2a6;
  outline-offset: 3px;
}

.contact-topics label:hover span {
  border-color: #d4e2a6;
}

.contact-topics input:checked + span {
  border-color: #d4e2a6;
  background: #d4e2a6;
  color: #213227;
}

.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 5.75rem;
  margin-top: -.35rem;
  padding: .7rem .8rem;
  border: 1px solid #748476;
  border-radius: 0;
  background: #1a2b22;
  color: #f7f4e9;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.contact-form textarea::placeholder {
  color: #b3c4b4;
  font-size: .88rem;
}

.contact-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem .85rem;
  margin-top: .2rem;
}

.contact-form-footer button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 2.85rem;
  padding: .5rem .78rem;
  border: 1px solid #d4e2a6;
  background: #d4e2a6;
  color: #213227;
  font: 750 .8rem var(--sans, sans-serif);
  cursor: pointer;
  transition: background-color .2s;
}

.contact-form-footer button:hover {
  background: #f0f6d8;
}

.contact-form-footer p {
  margin: 0;
  color: #c6d2c3;
  font-size: .74rem;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .contact-layout {
    gap: 2.25rem;
  }
}

@media (max-width: 700px) {
  .work-heading {
    display: block;
    margin-bottom: 1.4rem;
  }

  .work-heading p {
    margin-top: .7rem;
  }

  .work-feature {
    grid-template-columns: 1fr;
  }

  .work-feature-visual {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    aspect-ratio: 1.52;
  }

  .work-feature-content {
    grid-row: 2;
  }

  .work-practice {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .work-practice-copy {
    grid-column: 1;
  }

  .work-practice .work-project-link {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-intro h2 {
    max-width: none;
  }

  .contact-channels {
    max-width: none;
  }
}

@media (max-width: 495px) {
  .work-toolbar {
    flex-wrap: wrap;
  }

  .work-filter-status {
    padding-inline: .25rem;
  }

  .work-filters {
    gap: .22rem;
  }

  .work-filters button {
    padding-inline: .65rem;
  }

  .work-grid,
  .work-practice {
    grid-template-columns: 1fr;
  }

  .work-practice .work-project-link {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-topics span {
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-filters button,
  .work-project-link,
  .work-tile-visual img,
  .work-tile-arrow,
  .contact-topics span,
  .contact-form-footer button {
    transition: none;
  }

  .work-tile a:hover img {
    transform: none;
  }
}
