.portfolio-page .site {
  background:
    linear-gradient(180deg, rgba(248, 246, 242, 0.64) 0, rgba(255, 255, 255, 0) 420px),
    #fff;
}

.portfolio-index-hero,
.portfolio-index-block,
.work-detail {
  width: min(var(--container), calc(100% - var(--side) * 2));
  margin-inline: auto;
}

.portfolio-index-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.portfolio-index-hero .kicker,
.portfolio-label,
.work-section-head span,
.work-cta span {
  display: block;
  color: #76716a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portfolio-index-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.portfolio-index-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 2;
}

.portfolio-index-hero .portfolio-note {
  max-width: 720px;
  margin-top: 14px;
  padding: 15px 18px;
  border: 1px solid #ddd8cf;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.portfolio-index-block {
  padding: 34px 0 72px;
}

.portfolio-index-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.portfolio-index-head h2 {
  margin-top: 8px;
  font-size: 22px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.portfolio-filters button {
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid #cfc9bf;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #282828;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.portfolio-filters button.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.portfolio-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  position: relative;
  display: grid;
  min-height: 100%;
  padding: 18px;
  border: 1px solid #ddd8cf;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
}

.portfolio-card[hidden] {
  display: none;
}

.portfolio-media {
  position: relative;
  overflow: hidden;
  background: #efede8;
}

.portfolio-card-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border-radius: 5px;
}

.portfolio-media img,
.portfolio-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-media.is-missing img,
.portfolio-video.is-missing video {
  display: none;
}

.portfolio-placeholder {
  display: none;
  min-height: 100%;
  place-content: center;
  padding: 28px;
  border: 1px dashed #bcb5aa;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(238, 233, 225, 0.72)),
    #f5f2ec;
  text-align: center;
}

.portfolio-media.is-missing .portfolio-placeholder,
.portfolio-video.is-missing .portfolio-placeholder,
.portfolio-video-placeholder .portfolio-placeholder {
  display: grid;
}

.portfolio-placeholder span {
  color: #222;
  font-size: 13px;
  font-weight: 900;
}

.portfolio-placeholder small {
  display: block;
  margin-top: 8px;
  color: #766f65;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

.portfolio-category {
  margin: 8px 0 0;
  color: #343434;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.portfolio-card strong {
  display: block;
  margin-top: 8px;
  padding-right: 30px;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1.35;
}

.portfolio-card p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #3d3a36;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
}

.portfolio-card em,
.work-plan {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  margin-top: 14px;
  padding: 0 11px;
  border: 1px solid #cfc9bf;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.portfolio-tags span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ddd8cf;
  border-radius: 999px;
  background: #fbfaf7;
  color: #34302b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.portfolio-card-arrow {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 28px;
  line-height: 1;
}

.work-detail {
  padding: 38px 0 84px;
}

.work-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: 28px 0 56px;
  border-bottom: 1px solid var(--line);
}

.work-hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(38px, 5.7vw, 74px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.work-subcopy {
  margin: 18px 0 0;
  color: #282828;
  font-size: 15px;
  font-weight: 700;
  line-height: 2;
}

.work-hero-copy .work-plan {
  margin-top: 16px;
}

.work-hero-media {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  box-shadow: 0 16px 38px rgba(31, 28, 23, 0.12);
}

.work-hero-media.is-portrait {
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
  justify-self: center;
}

.work-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--soft-line);
}

.work-section-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  margin-bottom: 24px;
}

.work-section-head h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
}

.work-lead,
.concept-section p,
.movie-copy p {
  max-width: 880px;
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 2.05;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: #ded8cf;
  border: 1px solid #ded8cf;
}

.overview-grid article {
  min-height: 176px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.overview-grid span {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.overview-grid p {
  margin: 12px 0 0;
  color: #403c37;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.95;
}

.movie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.portfolio-video,
.portfolio-video-placeholder {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #ddd8cf;
  border-radius: 6px;
  background: #111;
}

.portfolio-video-placeholder {
  background: #f5f2ec;
}

.portfolio-video-placeholder > div {
  height: 100%;
}

.movie-layout .portfolio-video.is-portrait {
  width: min(100%, 430px);
  aspect-ratio: 9 / 16;
  justify-self: start;
}

.work-visual {
  margin: 0;
}

.work-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #ddd8cf;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(31, 28, 23, 0.1);
}

.work-visual figcaption {
  margin-top: 10px;
  color: #6c665d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.movie-copy {
  padding: 24px;
  border: 1px solid #ddd8cf;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}

.movie-copy ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.movie-copy li {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.deliverable-grid article {
  min-height: 76px;
  padding: 18px;
  border: 1px solid #ddd8cf;
  border-radius: 5px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.concept-section {
  background: linear-gradient(90deg, rgba(247, 244, 238, 0.72), rgba(255, 255, 255, 0));
  padding-inline: 28px;
  border: 1px solid #eee8df;
  border-radius: 6px;
}

.work-cta {
  margin-top: 58px;
  padding: 42px;
  border-radius: 6px;
  background: #111;
  color: #fff;
}

.work-cta h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.3;
}

.work-cta p {
  max-width: 760px;
  margin: 16px 0 24px;
  color: #f6f2ec;
  font-size: 14px;
  font-weight: 700;
  line-height: 2;
}

.work-cta .button {
  background: #fff;
  color: #111;
}

@media (max-width: 980px) {
  .portfolio-index-head,
  .work-hero,
  .work-section-head,
  .movie-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    justify-content: flex-start;
  }

  .work-hero {
    padding-top: 10px;
  }

  .overview-grid,
  .deliverable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-section-head {
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .portfolio-index-hero {
    padding: 50px 0 36px;
  }

  .portfolio-index-hero h1 {
    font-size: 40px;
  }

  .portfolio-card-grid,
  .overview-grid,
  .deliverable-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    padding: 14px;
  }

  .portfolio-card strong {
    font-size: 25px;
  }

  .work-detail {
    padding-top: 22px;
  }

  .work-hero {
    gap: 24px;
    padding-bottom: 38px;
  }

  .work-hero-copy h1 {
    font-size: 38px;
  }

  .work-section {
    padding: 42px 0;
  }

  .concept-section {
    padding: 24px;
  }

  .work-cta {
    padding: 30px 22px;
  }
}

@media (max-width: 420px) {
  .portfolio-index-hero h1,
  .work-hero-copy h1 {
    font-size: 33px;
  }

  .portfolio-tags span {
    font-size: 10px;
  }

}
