/* The project-directory grid is adapted from Leo's Illustrator cover. */
.ciie-project-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 25% 32% 16% 15% 12%;
  align-items: start;
  padding: 26px 28px;
  color: #fff;
  background: transparent;
  text-shadow: none;
  box-shadow: none;
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  pointer-events: none;
}
.ciie-project-header a, .ciie-project-header button { pointer-events: auto; }
.ciie-project-back {
  display: inline-flex;
  align-items: center;
  gap: calc(10px * 2 / 3);
  width: fit-content;
  position: relative;
  color: inherit;
  font-size: calc(clamp(22px, 1.65vw, 32px) * 2 / 3);
  line-height: 1.2;
  text-decoration: none;
}
/* Extend the hit area below the text without vertically centering the label. */
.ciie-project-back::after { content: ""; position: absolute; inset: 0; min-height: 44px; }
.ciie-project-back:hover .ciie-outline-circle { background: currentColor; }
.ciie-project-header :is(a,button):focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
.ciie-outline-circle,.ciie-cross-circle {
  display: inline-block;
  flex: none;
  width: .96em;
  height: .96em;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.ciie-project-name { font-size: calc(clamp(22px, 1.8vw, 34px) * 2 / 3); line-height: 1.2; letter-spacing: -.04em;  }
.ciie-project-name > span { display: flex; align-items: center; white-space: nowrap; }
.ciie-cross-circle { position: relative; margin-right: .12em; }
.ciie-cross-circle::before,.ciie-cross-circle::after { content: ""; position: absolute; background: currentColor; }
.ciie-cross-circle::before { height: 1px; width: 100%; left: 0; top: calc(50% - .5px); }
.ciie-cross-circle::after { width: 1px; height: 100%; top: 0; left: calc(50% - .5px); }
.ciie-project-info { display: flex; flex-direction: column; font-size: 11px; line-height: 1.18;  }
.ciie-project-info button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: fit-content; min-width: 84px; border: 0; padding: 2px 0; background: none; color: inherit; font: inherit; line-height: 1.3; text-align: left; cursor: pointer; }
.ciie-project-info button > span { opacity: .6; font-size: 9px; font-variant-numeric: tabular-nums; }
.ciie-project-info button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ciie-project-info .ciie-meta-heading { margin-bottom: 3px; }
.ciie-project-year { display: flex; justify-content: flex-end; align-items: flex-start; gap: 4px;  white-space: nowrap; }
.ciie-project-year > span { font-size: 10px; line-height: 1.25; }
.ciie-project-year strong { font-family: "Helvetica Neue", Arial, sans-serif; font-size: clamp(25px, 2.05vw, 40px); font-weight: 400; line-height: 1; letter-spacing: -.05em; }
.ciie-project-toggle { display: none; }
.ciie-project-back, .ciie-project-name > span:first-child,
.ciie-project-info > :first-child, .ciie-project-year > span { line-height: 1; }
.ciie-project-info > button:first-child { padding-top: 0; }
.ciie-project-year strong { position: relative; top: -.09em; }
/* Retire the reference site's travel utility only at the top of this page. */
body:has(.ciie-project-header) .airplane_middle,
body:has(.ciie-project-header) .fixed_calculator { display: none !important; }
@media (max-width: 991px) {
  .ciie-project-header { grid-template-columns: 70px minmax(0,1fr) auto; gap: 8px 14px; padding: 18px 20px; }
  .ciie-project-back { font-size: calc(18px * 2 / 3);  gap: calc(7px * 2 / 3); }
  .ciie-project-name { font-size: calc(22px * 2 / 3); padding-top: 0; }
  .ciie-project-year { grid-column: 3; grid-row: 1; flex-direction: column; gap: 3px; }
  .ciie-project-year strong { font-size: 26px; }
  .ciie-project-toggle { grid-column: 2 / -1; display: flex; justify-self: end; gap: 12px; align-items: center; border: 0; background: transparent; color: inherit; padding: 2px 0; font: inherit; font-size: 11px; line-height: 20px; cursor: pointer; }
  .ciie-project-info { display: none; font-size: 13px; line-height: 1.5; }
  .ciie-project-header.is-expanded { background: #071127; }
  .ciie-project-header.is-expanded .ciie-project-info { display: flex; padding: 12px 0 6px; }
  .ciie-project-header.is-expanded { grid-template-rows: auto auto auto auto; }
  .ciie-project-header.is-expanded .ciie-project-info button { min-height: 36px; min-width: 106px; }
  .ciie-project-role { grid-row: 3; grid-column: 1 / 2; }
  .ciie-project-contents { grid-row: 3; grid-column: 2 / -1; justify-self: end; min-width: 130px; }
}
@media (max-width: 479px) {
  .ciie-project-header { grid-template-columns: 48px minmax(0,1fr) auto; column-gap: 9px; padding: 14px 16px 10px; }
  .ciie-project-name { font-size: calc(16px * 2 / 3); line-height: 1.3; }
  .ciie-project-back { font-size: calc(14px * 2 / 3); gap: calc(5px * 2 / 3);  }
  .ciie-project-year > span { font-size: 8px; }
  .ciie-project-year strong { font-size: 21px; }
  .ciie-project-toggle { font-size: 10px; line-height: 16px; }
}

#case-content .ciie-project-header { position:sticky; top:0; color:#151515; text-shadow:none; }
#case-content .ciie-project-header button { font-family:inherit; color:inherit; background:none; cursor:pointer; }
#case-content .ciie-project-info button:hover, #case-content .ciie-project-info button[aria-current=step] { text-decoration:underline; text-underline-offset:3px; }
#case-content .ciie-project-header.is-expanded { background:#fff; }
#case-content .ciie-project-header .ciie-project-back { color:inherit; }
@media(max-width:991px) { #case-content .ciie-project-role { grid-column:1/3; } }
