/* Text hierarchy for the original black-and-white case collection. */
:root { --case-nav-edge: clamp(17px, 3.1vw, 48px); }
#cases { scroll-margin-top: 85px; }

.case-navbar.navbar {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  padding-inline: var(--case-nav-edge);
  min-height: 72px;
  border-bottom-color: #dfdfdc;
}
.studio-link {
  display: inline-flex;
  align-items: center;
  color: #171715;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.studio-link:hover { color: #171715; }
.studio-link:focus-visible { outline-offset: 4px; }
.studio-link img { display: block; width: var(--studio-mark-width); height: auto; flex: none; }
.studio-link-nav {
  --studio-mark-width: clamp(85px, 7.6vw, 112px);
  margin-inline-start: calc(clamp(17px, 1.55vw, 30px) - var(--case-nav-edge));
  min-height: 44px;
  align-self: center;
  justify-self: start;
}
.studio-link-footer {
  --studio-mark-width: clamp(110px, 11vw, 152px);
  align-self: center;
  justify-self: start;
}
.case-nav-controls { display: flex; align-self: stretch; gap: clamp(8px, 1.6vw, 24px); }
.case-navbar.navbar :is(a, button).case-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 clamp(11px, 1.45vw, 22px);
  border: 0;
  color: #41413e;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}
.case-navbar.navbar .case-nav-item:is(:hover, [aria-expanded="true"]) {
  background: #f7f7f5;
  color: #181817;
}
.case-navbar .case-nav-item:focus-visible { outline-offset: -4px; }
.case-navbar.navbar .case-nav-item:is([aria-current], [data-current-section]) { color: #181817; }
.case-nav-item:is([aria-current], [data-current-section])::after {
  content: "";
  position: absolute;
  inset: auto 11px -1px;
  height: 2px;
  background: currentColor;
}
.case-nav-chevron {
  display: block;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  transform: rotate(45deg);
}
.case-navbar [aria-expanded="true"] .case-nav-chevron { transform: rotate(225deg); margin-top: 2px; }

.menu.case-menu {
  right: auto;
  left: 50%;
  translate: -50% 0;
  width: min(696px, calc(100% - 2 * var(--case-nav-edge)));
  padding: 23px 26px 26px;
  border-color: #dfdfdc;
  border-radius: 9px;
  box-shadow: 0 16px 38px -18px #201f1a42;
  transform-origin: center top;
}
.case-navbar ~ .menu-overlay { backdrop-filter: none; background: #17171529; }
.case-menu a { color: inherit; text-decoration: none; }
.case-index-header { padding-bottom: 14px; border-bottom: 1px solid #e4e4e1; }
.case-index-header h2 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.3; letter-spacing: -.035em; }
.case-index-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 19px; }
.case-index-group h3 { margin-bottom: 7px; color: #4e4e4a; font-size: 13px; font-weight: 600; }
.case-index-group ul { list-style: none; padding: 0; }
.case-index-group li + li { border-top: 1px solid #ececea; }
.case-index-group a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 45px; padding: 9px 8px; font-size: 15px; line-height: 1.45; }
.case-index-group a > span:last-child { color: #666; }
.case-index-group a:hover, .case-index-group a[aria-current="page"] { background: #f3f3f0; }
.case-index-group a[aria-current="page"] { font-weight: 700; }
.case-index-group a:focus-visible { outline-offset: -2px; }

.editorial-overview .work-head {
  padding-block: clamp(24px, 3.1vw, 48px) clamp(18px, 2.1vw, 30px);
}

.editorial-overview .work-head h1 {
  margin: 0;
  font-size: clamp(30px, 3.25vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.027em;
}

.editorial-overview .work-grid .card {
  display: grid;
  grid-template-areas: "image" "labels" "caption";
  grid-template-rows: auto auto 1fr;
  align-items: start;
}

.editorial-overview .card .media { grid-area: image; }

.editorial-overview .card .tags {
  grid-area: labels;
  margin-top: 13px;
  opacity: 1;
  transform: none;
}

.editorial-overview .card .tag {
  border: 1px solid #dedede;
  border-radius: 4px;
  background: transparent;
  padding: 3px 7px;
  color: #363636;
  font-size: 12px;
}

.editorial-overview .card .caption {
  grid-area: caption;
  display: grid;
  gap: 3px;
  margin-top: 7px;
}

.editorial-overview .card .title {
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.3;
}

.editorial-overview .card .line {
  color: #4d4d4d;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
  text-wrap: pretty;
}

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr);
  align-items: end;
  column-gap: clamp(26px, 6vw, 110px);
  margin-top: clamp(26px, 4vw, 61px);
}

.case-intro .case-name {
  margin-bottom: 12px;
  color: #4d4d4d;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.case-intro .case-headline {
  margin: 0;
  color: var(--ink);
  font-size: clamp(27px, 3.35vw + 9px, 62px);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.19;
}

.case-headline > span { display: block; text-wrap: balance; }

.case-intro .case-deck {
  max-width: 32em;
  margin-top: 16px;
  color: #4d4d4d;
  font-size: clamp(16px, 1.38vw, 19px);
  line-height: 1.72;
  text-wrap: pretty;
}

.editorial-detail .case-intro > .meta {
  grid-template-columns: minmax(58px, .34fr) minmax(0, 1fr);
  align-items: start;
  gap: 13px 17px;
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid #dedede;
}

.editorial-detail .case-intro .meta dt {
  margin: 0 0 3px;
  color: #5c5c5c;
  font-size: 13px;
  font-weight: 400;
}

.editorial-detail .case-intro .meta dd {
  font-size: 14px;
  line-height: 1.55;
}

.editorial-detail .case-intro .case-services {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.editorial-detail .case-intro .case-services dt { flex-basis: 100%; }

.editorial-detail .case-intro .case-services dd {
  margin: 0;
  padding: 4px 7px;
  border: 1px solid #dedede;
  border-radius: 4px;
  font-size: 12px;
}

.editorial-detail .case-intro .meta-live {
  grid-column: 1 / -1;
  color: #333;
  font-size: 13px;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(24px, 4vw, 51px);
  border-block: 1px solid #dedede;
}

.case-facts > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: clamp(12px, 1.5vw, 22px) clamp(9px, 2vw, 32px);
  border-left: 1px solid #dedede;
}

.case-facts > div:first-child { padding-left: 0; border-left: 0; }
.case-facts dt { color: #4d4d4d; font-size: 13px; line-height: 1.45; }
.case-facts dd { order: -1; line-height: 1; }
.case-facts strong { font-size: clamp(28px, 3.65vw, 50px); font-weight: 700; letter-spacing: -.035em; }
.case-facts dd span { margin-left: .16em; font-size: clamp(14px, 1.65vw, 24px); font-weight: 650; }

.editorial-detail .chapter .chapter-label {
  font-size: clamp(17px, 1.55vw, 25px);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.36;
}

.editorial-detail .chapter .chapter-label::before,
.editorial-detail .chapter .chapter-label::after { content: none; }

.editorial-detail .chapter .statement {
  max-width: 25em;
  margin-bottom: clamp(19px, 2.2vw, 34px);
  font-size: clamp(21px, 2.15vw, 32px);
  font-weight: 700;
  letter-spacing: -.026em;
  line-height: 1.45;
  text-wrap: pretty;
}

.editorial-detail .chapter .chapter-main > p:not(.statement),
.editorial-detail .chapter .chapter-main li p,
.editorial-detail .chapter .measures li,
.editorial-detail .chapter .faq-list details p {
  max-width: 42em;
  color: #373737;
  line-height: 1.78;
}

.editorial-detail .chapter .chapter-aside .aside-label { font-weight: 650; }
.editorial-detail .chapter .chapter-aside > p:not(.aside-label) { line-height: 1.62; }
.editorial-detail .chapter .moves h3,
.editorial-detail .chapter .builds h3,
.editorial-detail .chapter .faq-list summary { font-weight: 650; line-height: 1.43; }
.editorial-detail .chapter .moves h3::before { content: none; }

.editorial-detail .more-title {
  margin-bottom: clamp(18px, 2vw, 28px);
  font-size: clamp(24px, 2.45vw, 36px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.case-footer {
  margin-top: clamp(58px, 8vw, 126px);
  border-top: 1px solid #e7e7e7;
  background: var(--cream);
  color: var(--ink);
}

.case-footer-inner {
  width: min(calc(100% - 2 * clamp(20px, 5vw, 76px)), 1420px);
  margin-inline: auto;
}

.case-footer-main {
  display: grid;
  grid-template-columns: minmax(150px, .95fr) minmax(0, 2.25fr);
  gap: clamp(26px, 5vw, 80px);
  padding-block: clamp(32px, 4.4vw, 62px);
  align-items: start;
}

.case-footer-nav {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(15px, 3vw, 50px);
}

.case-footer-group h2 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0;
}

.case-footer-group ul { list-style: none; margin: 0; padding: 0; }
.case-footer a { color: inherit; text-decoration: none; }
.case-footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #565656;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.case-footer a[aria-current="page"], .case-footer a:hover { color: var(--ink); }
.case-footer-group a[aria-current="page"], .case-footer-group a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #e7e7e7;
  padding-block: 12px;
  color: #666;
  font-size: 13px;
}

.case-footer-icp { display: inline-flex; align-items: center; min-height: 42px; white-space: nowrap; }
.case-footer-icp:hover { text-decoration: underline; text-underline-offset: 4px; }

.case-back-top {
  position: fixed;
  z-index: 45;
  right: max(var(--case-nav-edge), calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #d8d8d5;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 3px 12px #00000014;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}
.case-back-top:is(:hover, :focus-visible) { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.case-back-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (width <= 880px) {
  .case-footer-main { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (width <= 680px) {
  .case-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 13px; }
  .case-footer-group:first-child { grid-column: 1 / -1; }
  .case-footer-group:first-child ul { display: flex; flex-wrap: wrap; column-gap: 20px; }
  .case-footer-group h2 { margin-bottom: 4px; }
  .case-footer-group a { min-height: 44px; }
}

@media (width <= 355px) {
  .case-footer-nav { grid-template-columns: minmax(0, 1fr); }
}

@media (width <= 700px) {
  .case-navbar.navbar { grid-template-columns: auto 1fr; min-height: 62px; gap: 8px; }
  .case-nav-controls { justify-self: end; gap: 2px; }
  .case-navbar.navbar :is(a, button).case-nav-item { padding-inline: 8px; font-size: 14px; }
  .case-nav-item:is([aria-current], [data-current-section])::after { inset-inline: 9px; }
  .case-intro { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .case-intro .case-name { margin-bottom: 8px; }
  .case-intro .case-deck { margin-top: 12px; }
  .editorial-detail .case-intro > .meta { gap: 9px 15px; }
  .case-facts dt { font-size: 12px; }
  .editorial-overview .card .tags { margin-top: 9px; }
}

@media (width <= 510px) {
  .menu.case-menu { padding: 16px 15px 19px; }
  .case-index-columns { grid-template-columns: minmax(0, 1fr); gap: 17px; margin-top: 16px; }
  .case-index-group a { min-height: 44px; }
}
