.departments {
  padding: clamp(120px, 15vw, 100px) 0;
  background: var(--ivory);
}
.dept-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 0.8fr;
  align-items: start;
  gap: 36px;
  margin-bottom: 86px;
}
.dept-heading .eyebrow {
  padding-top: 15px;
}
.dept-heading .section-heading {
  margin: 0;
  max-width: 670px;
}
.dept-heading .section-intro {
  margin: 12px 0 0 auto;
}
.dept-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 55px 36px;
}
.department {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  min-width: 0;
}
.department:nth-child(even) {
  grid-template-columns: none;
}
.department:nth-child(even) .dept-visual {
  order: 0;
}
.dept-visual {
  position: relative;
  margin: 0;
}
.dept-visual .signature-frame {
  position: relative;
  z-index: 1;
}
.dept-visual img {
  width: 100%;
  height: clamp(260px, 27vw, 355px);
  object-fit: cover;
}
.dept-number {
  position: absolute;
  z-index: 3;
  left: 18px;
  top: 18px;
  background: var(--paper);
  padding: 9px 12px;
  font: 10px var(--mono);
  color: var(--forest);
}
.dept-copy {
  padding: 27px 30px 34px;
  max-width: 530px;
}
.dept-copy .eyebrow {
  margin-bottom: 12px;
}
.dept-copy h3 {
  font: 400 clamp(34px, 3.6vw, 47px)/1 var(--serif);
  letter-spacing: -0.04em;
  margin: 0 0 15px;
}
.dept-copy p {
  color: #5b5a54;
  font-size: 13px;
  margin: 0 0 20px;
  max-width: 410px;
}
.department:nth-child(even) .dept-copy {
  margin-left: 0;
}

/* Quiet editorial hover: a sage hairline draws in while the image subtly clarifies. */
.department {
  position: relative;
  transition: background-color 0.45s ease;
}
.department::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 72px;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0.48);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dept-visual img {
  filter: saturate(0.92);
  transition: filter 0.65s ease;
}
.dept-copy .arrow-link {
  transition:
    color 0.3s ease,
    letter-spacing 0.35s ease;
}
.department:hover::before,
.department:focus-within::before {
  transform: scaleX(1);
}
.department:hover .dept-visual img,
.department:focus-within .dept-visual img {
  filter: saturate(1.04);
}
.department:hover .arrow-link,
.department:focus-within .arrow-link {
  color: var(--forest);
  letter-spacing: 0.025em;
}
@media (prefers-reduced-motion: reduce) {
  .department,
  .department::before,
  .dept-visual img,
  .dept-copy .arrow-link {
    transition: none;
  }
}

.dept-visual .image-window {
  height: clamp(260px, 27vw, 355px);
}
.dept-visual .image-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.7s ease;
  filter: saturate(0.94);
}
.dept-visual .image-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-16%);
  background: linear-gradient(
    112deg,
    transparent 28%,
    rgba(255, 255, 255, 0.25) 48%,
    transparent 68%
  );
  transition:
    opacity 0.45s ease,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.department:hover .image-window img,
.department:focus-within .image-window img {
  transform: translate3d(1.2%, -1.4%, 0) scale(1.055);
  filter: saturate(1.04);
}
.department:hover .image-window::after,
.department:focus-within .image-window::after {
  opacity: 1;
  transform: translateX(16%);
}
@media (max-width: 1000px) {
  .dept-visual .image-window {
    height: 420px;
  }
}
@media (max-width: 740px) {
  .dept-visual .image-window {
    height: 290px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dept-visual .image-window img,
  .dept-visual .image-window::after {
    transition: none;
  }
}

/* Botanical linework is kept in the open margins and behind section content. */
.departments {
  position: relative;
  isolation: isolate;
}
.departments > .wrap {
  position: relative;
  z-index: 1;
}
.departments-flower {
  position: absolute;
  z-index: 0;
  left: 8px;
  top: 48%;
  width: 150px;
  height: auto;
  opacity: 0.23;
}
@media (max-width: 740px) {
  .departments-flower {
    left: 5px;
    top: 43%;
    width: 84px;
    opacity: 0.12;
  }
}
