.middle-work,
.middle-formats,
.middle-partner {
  color: var(--ink);
  font-family: var(--sans);
  padding-block: clamp(4rem, 8vw, 8rem);
}
.middle-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(13rem, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
  margin-bottom: clamp(2rem, 4vw, 3.75rem);
}
.middle-head h2,
.mf-title,
.mp-main h2 {
  font: 850 clamp(2.6rem, 5.6vw, 6rem)/0.99 var(--display);
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.middle-head h2 em,
.mp-main h2 em {
  color: var(--accent);
  font-style: normal;
}
.middle-head p,
.middle-lead,
.mp-intro {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.45;
  max-width: 42ch;
}
.middle-head p,
.middle-lead {
  color: var(--muted);
}
.mw-deck {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.mw-projects {
  display: grid;
  align-content: start;
  counter-reset: project;
  border-top: 2px solid var(--ink);
}
.mw-row {
  appearance: none;
  background: transparent;
  color: var(--ink);
  position: relative;
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr) 2rem;
  grid-template-areas: "num name arrow" ". desc .";
  text-align: start;
  align-content: center;
  row-gap: 0.45rem;
  font-family: var(--sans);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: clamp(1rem, 2.15vw, 2rem) 0.2rem;
  cursor: pointer;
  counter-increment: project;
}
.mw-row::before {
  content: counter(project, decimal-leading-zero);
  grid-area: num;
  font: 500 0.64rem/1 var(--mono);
  margin-top: 0.38rem;
  color: var(--muted);
  align-self: start;
}
.mw-row[aria-selected="true"]::before {
  color: var(--ink);
}
.mw-row[aria-selected="true"] .mw-pointer {
  background: var(--ink);
  color: var(--paper);
}
.mw-row:hover .mw-name {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}
.mw-row:focus-visible {
  z-index: 1;
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.mw-name {
  grid-area: name;
  font: 750 clamp(1.55rem, 2.75vw, 3.2rem)/1 var(--display);
  letter-spacing: -0.035em;
}
.mw-descr {
  grid-area: desc;
  color: var(--muted);
  line-height: 1.35;
  font-size: clamp(0.85rem, 1.14vw, 1.08rem);
}
.mw-pointer {
  grid-area: arrow;
  align-self: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: clamp(1.4rem, 2.35vw, 2.35rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font: normal clamp(1rem, 1.5vw, 1.35rem)/1 var(--sans);
}
.mw-cover {
  position: relative;
  aspect-ratio: 1.62;
  overflow: hidden;
  isolation: isolate;
  color: #201d1a;
  container-type: inline-size;
}
.mw-panel[hidden] {
  display: none;
}
.mw-panel:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
.mw-cover .mw-art {
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.mw-cover .mw-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(#150d08 0.52px, transparent 0.8px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}
.mw-open {
  z-index: 1;
  position: absolute;
  inset: auto 0.9rem 0.9rem auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #181a15;
  color: #fffef3;
  padding: 0.55rem 0.7rem;
  font: 600 0.73rem/1.2 var(--mono);
  text-decoration: none;
}
.mw-open span {
  font: 700 1.1rem/1 var(--sans);
}
.mw-open:hover {
  background: #f7f5e9;
  color: #191b17;
}
.mw-open:focus-visible {
  outline: 3px solid #f7f5e9;
  outline-offset: 2px;
}
.mw-mewflip {
  background: #ed6948;
}
.mw-flash-stack {
  position: relative;
  width: 53%;
  transform: rotate(-8deg) translate(-1%, -1%);
}
.mw-back-card,
.mw-flash,
.mw-plate {
  border: 1.5px solid #1f1c18;
}
.mw-back-card {
  position: absolute;
  inset: 0;
  background-color: #cfdb8c;
  background-image: repeating-linear-gradient(
    110deg,
    transparent 0 4px,
    #282b21 4px 5px
  );
  transform: rotate(16deg) translate(7%, -4%);
  border-radius: 0.65cqw;
}
.mw-flash {
  position: relative;
  padding: 4% 5% 3%;
  background: #f3ecdb;
  border-radius: 0.65cqw;
  box-shadow: 0.55cqw 0.65cqw 0 #241e18;
}
.mw-card-edition {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font: 600 clamp(0.56rem, 1.55cqw, 0.9rem)/1 var(--mono);
  letter-spacing: 0.08em;
  padding: 0 0 0.6em;
}
.mw-card-edition i {
  font-style: normal;
}
.mw-flash-photo {
  overflow: hidden;
  height: 16cqw;
  background: #f3ecdb;
}
.mw-flash-photo img,
.mw-botanical img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.12);
}
.mw-flash-word {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.35em 0 0;
}
.mw-flash-word b {
  font: 850 clamp(2.4rem, 12cqw, 8rem)/0.94 var(--sans);
  letter-spacing: -0.09em;
}
.mw-flash-word i {
  font: normal 500 clamp(0.69rem, 2.5cqw, 1.3rem)/1 var(--mono);
}
.mw-elseglow {
  background: #a8c1be;
}
.mw-foldout {
  position: relative;
  width: 76%;
  height: 64%;
  transform: rotate(-6deg);
  background: #ede9d8;
  box-shadow: 0.6cqw 1cqw 0.4cqw #334d483b;
  clip-path: polygon(
    0 3%,
    25% 0,
    50% 4%,
    75% 0,
    100% 3%,
    100% 100%,
    75% 97%,
    50% 100%,
    25% 96%,
    0 100%
  );
}
.mw-map-ink {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 11px, #718e8a55 11px 12px),
    repeating-linear-gradient(90deg, transparent 0 11px, #718e8a55 11px 12px);
}
.mw-map-type {
  position: absolute;
  inset: 10% 6% auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  color: #234642;
}
.mw-map-type b {
  font: 800 4.3cqw/1 var(--display);
  letter-spacing: -0.035em;
}
.mw-map-type span {
  font: 800 4.5cqw/1 var(--sans);
}
.mw-foldout img {
  position: absolute;
  inset: auto 0 0;
  height: 73%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 82%;
  mix-blend-mode: multiply;
}
.mw-fold-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    #293e3c24 0%,
    transparent 7%,
    transparent 24.6%,
    #233d3c3b 24.9%,
    #ffffff66 25%,
    transparent 26%,
    #ffffff22 49.8%,
    #15352d33 50%
  );
}
.mw-etherway {
  background: #626b46;
}
.mw-plate {
  width: 64%;
  background: #dfdfba;
  padding: 3% 3.6% 2.3%;
  transform: rotate(6deg);
  box-shadow: -0.6cqw 0.7cqw 0 #262c23;
  color: #203221;
}
.mw-plate .mw-card-edition {
  border-bottom: 1px solid currentColor;
}
.mw-botanical {
  height: 22cqw;
  overflow: hidden;
}
.mw-botanical img {
  object-position: 100% 80%;
  transform: scale(1.1);
}
.mw-species {
  display: block;
  font:
    italic 500 clamp(1.2rem, 4.5cqw, 3.4rem)/1.15 Georgia,
    serif;
  text-align: right;
  border-top: 1px solid currentColor;
  padding-top: 0.3em;
}
.middle-formats {
  border-top: 1px solid var(--line);
}
.mf-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
}
.mf-title {
  max-width: 12ch;
}
.middle-lead {
  margin-top: 1.4rem;
  max-width: 35ch;
}
.mf-index {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: format;
}
.mf-index li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  column-gap: 0.6rem;
  counter-increment: format;
  border-top: 1px solid var(--line);
  padding-block: clamp(1rem, 1.8vw, 1.7rem);
}
.mf-index li:first-child {
  border-top: 2px solid var(--ink);
}
.mf-index li:last-child {
  border-bottom: 1px solid var(--line);
}
.mf-index li::before {
  content: counter(format, decimal-leading-zero);
  font: 500 0.67rem/1.4 var(--mono);
  padding-top: 0.4rem;
  color: var(--muted);
}
.mf-index h3,
.mp-roles h3 {
  font: 750 clamp(1.2rem, 2.15vw, 2.1rem)/1.1 var(--display);
  letter-spacing: -0.03em;
  margin: 0;
}
.mf-index p,
.mp-roles p {
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-size: max(0.94rem, 1vw);
  line-height: 1.45;
}
.middle-partner {
  background: var(--acid);
  color: #20231a;
}
.mp-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.59fr) minmax(0, 1fr);
  gap: clamp(2rem, 6.4vw, 8rem);
  align-items: center;
}
.mp-photo {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 0.97;
  background: #dce6a0;
  transform: rotate(-3deg);
  overflow: hidden;
}
.mp-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 51% 50%;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.25);
}
.mp-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(#33401f 0.7px, transparent 1px) 0 0/3px 3px;
  opacity: 0.22;
  mix-blend-mode: multiply;
}
.mp-intro {
  margin: 1.4rem 0 clamp(2rem, 3.5vw, 3.4rem);
  max-width: 46ch;
}
.mp-main h2 em {
  color: currentColor;
}
.mp-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.mp-roles > div {
  border-top: 1px solid #4a512e;
  padding-top: 0.85rem;
}
.mp-roles h3 {
  font-size: clamp(1.03rem, 1.55vw, 1.6rem);
}
.mp-roles p {
  color: #333823;
  font-size: max(0.9rem, 0.98vw);
}

@media (max-width: 780px) {
  .middle-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .mw-deck {
    gap: 1.1rem;
    grid-template-columns: minmax(0, 0.73fr) minmax(0, 1fr);
  }
  .mw-row {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
    grid-template-areas: "name arrow" "desc .";
  }
  .mw-row::before {
    display: none;
  }
  .mw-cover {
    aspect-ratio: 1.28;
  }
  .mf-layout {
    gap: 2rem;
  }
  .mp-layout {
    grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
    gap: 2rem;
  }
  .mp-photo {
    aspect-ratio: 0.7;
  }
}
@media (max-width: 600px) {
  .mw-deck,
  .mf-layout,
  .mp-layout {
    grid-template-columns: 1fr;
  }
  .mw-cover {
    aspect-ratio: 1.55;
  }
  .mw-row {
    grid-template-columns: 1.6rem minmax(0, 1fr) 1.6rem;
    grid-template-areas: "num name arrow" ". desc .";
    gap: 0.3rem 0.3rem;
    padding-block: 0.9rem;
  }
  .mw-row::before {
    display: block;
  }
  .mw-pointer {
    width: 1.6rem;
  }
  .mw-open {
    right: 0.55rem;
    bottom: 0.55rem;
  }
  .mf-title {
    max-width: none;
  }
  .middle-lead {
    margin-top: 0.9rem;
  }
  .mp-photo {
    max-width: 28rem;
    width: 91%;
    aspect-ratio: 1.9;
    margin: 0 auto 0.7rem;
  }
  .mp-layout {
    gap: 1.5rem;
  }
  .mp-intro {
    margin: 1rem 0 1.7rem;
  }
  .mp-roles {
    gap: 1.1rem;
  }
}
@media (max-width: 360px) {
  .mp-roles {
    grid-template-columns: 1fr;
  }
}
