/* We Wrap Boston homepage */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #111113;
  color: #fff;
}

body {
  margin: 0;
  font-family: Inter,Arial,Helvetica,sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 0 max(5vw,20px);
  height: 62px;
  background: #101012;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #303033;
}

.home-header img {
  width: 112px;
  height: auto;
}

.home-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 650;
}

.home-header nav a {
  text-decoration: none;
}

.brief,.button {
  background: #cc1c22;
  padding: 14px 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  border-radius: 2px;
}

.button:hover,.brief:hover {
  background: #ac141c;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #111113;
  min-height: 530px;
  display: flex;
  align-items: flex-end;
}

.hero>img {
  position: absolute;
  right: 0;
  top: 0;
  width: 75%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  z-index: -2;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#111113 0%,rgba(17,17,19,.98) 14%,rgba(17,17,19,.7) 33%,rgba(17,17,19,0) 68%),linear-gradient(0deg,rgba(17,17,19,.82),transparent 38%);
}

.copy {
  padding: 3rem max(5vw,20px);
  max-width: 660px;
}

.place,.case-type,.photo-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.place {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.place:before {
  content: "";
  width: 24px;
  height: 3px;
  background: #e22d38;
}

.copy h1 {
  font-size: clamp(52px,5.5vw,88px);
  letter-spacing: -.06em;
  line-height: .99;
  margin: 0;
  max-width: 10em;
}

.copy>p:not(.place) {
  color: #dedee1;
  max-width: 45ch;
  line-height: 1.5;
  font-size: 17px;
  margin: 18px 0 24px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.actions a:last-child {
  text-underline-offset: 5px;
  font-weight: 650;
}

.photo-label {
  position: absolute;
  right: 4%;
  bottom: 24px;
  text-shadow: 0 1px 5px #000;
  letter-spacing: .02em;
  text-transform: none;
}

.home-work,.casework {
  padding: 38px max(5vw,20px) 40px;
}

#work {
  scroll-margin-top: 62px;
}

h2 {
  font-size: clamp(30px,3.4vw,50px);
  letter-spacing: -.055em;
  margin: 0 0 18px;
}

h3 {
  font-size: 26px;
  letter-spacing: -.04em;
  margin: 5px 0;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px,29%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #626269 #202025;
  padding-bottom: 12px;
}

.tile {
  display: block;
  scroll-snap-align: start;
  position: relative;
  text-decoration: none;
}

.tile img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.tile span {
  display: block;
  padding: 10px 0 1px;
  font-size: 17px;
  font-weight: 650;
}

.casework {
  background: #19191c;
}

.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.case {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1.32;
  overflow: hidden;
  background: #111113;
}

.case img,.case:before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.case:before {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg,#0e0e11f5 0%,#0e0e11ad 29%,transparent 72%);
}

.case>div {
  padding: 22px;
  max-width: 42ch;
}

.case p {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  color: #ededf0;
}

.case .case-type {
  font-size: 10px;
  display: inline-block;
  background: #fff;
  color: #151517;
  padding: 5px 7px;
}

a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media(max-width:650px) {
  .home-header {
    height: 52px;
    padding-inline: 18px;
  }
  .home-header img {
    width: 96px;
  }
  .home-header nav {
    gap: 17px;
    font-size: 13px;
  }
  .home-header nav .brief {
    display: none;
  }
  .hero {
    display: block;
    min-height: 0;
  }
  .hero>img {
    width: 100%;
    height: 310px;
    object-position: 50% 50%;
  }
  .hero:after {
    background: linear-gradient(to bottom,transparent 130px,rgba(17,17,19,.22) 189px,#111113 312px);
  }
  .copy {
    padding: 253px 20px 24px;
  }
  .copy h1 {
    font-size: clamp(37px,10.8vw,60px);
    max-width: 13ch;
    line-height: 1.03;
  }
  .copy>p:not(.place) {
    font-size: 16px;
    margin: 13px 0 20px;
  }
  .place {
    font-size: 11px;
    margin-bottom: 9px;
  }
  .photo-label {
    left: 20px;
    top: 218px;
    right: auto;
    bottom: auto;
    font-size: 11px;
    color: #fafafa;
  }
  .actions .button {
    padding: 13px 16px;
  }
  .home-work,.casework {
    padding: 24px 20px 28px;
  }
  .home-work {
    border-top: 1px solid #303033;
  }
  .home-work .rail {
    margin-right: -20px;
    padding-right: 20px;
    grid-auto-columns: 73%;
    gap: 10px;
  }
  .tile span {
    font-size: 15px;
  }
  h2 {
    font-size: 29px;
  }
  .cases {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .case {
    aspect-ratio: 1.15;
  }
  .case>div {
    padding: 16px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

.all-work {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  text-underline-offset: 4px;
}

.case h3 a {
  text-decoration: none;
}

.case h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media(max-width:360px) {
  .actions {
    gap: 12px;
    font-size: 14px;
  }
  .home-header nav {
    gap: 12px;
  }
  .actions .button {
    padding-inline: 12px;
  }
}

