/* /work/ portfolio + shared case-study parts. Loaded after shakas-case-study.css. */

.work-hero .case-hero__title {
  max-width: 900px;
}

/* Case study cards */
.work-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.work-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(35, 39, 46, 0.11);
  border-radius: 20px;
  background: #fff;
  color: var(--ink, #23272e);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.work-card__link:hover,
.work-card__link:focus-visible {
  box-shadow: 0 14px 40px rgba(35, 39, 46, 0.12);
  transform: translateY(-2px);
}

.work-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ink, #23272e);
}

.work-card__kind {
  margin: 24px 28px 0;
  color: #8f6410;
  font-family: var(--display, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.work-card__title {
  margin: 8px 28px 0;
  font-family: var(--display, sans-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.work-card__body {
  margin: 10px 28px 0;
  color: #5a5e66;
  font-size: 17px;
  line-height: 1.6;
}

.work-card__cta {
  margin: auto 28px 26px;
  padding-top: 18px;
  font-family: var(--display, sans-serif);
  font-weight: 700;
}

/* Collateral gallery */
.collateral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 22px;
  margin-top: 48px;
}

.collateral-grid figure,
.banner-grid figure,
.process-grid figure {
  margin: 0;
}

.collateral-grid img,
.banner-grid img,
.process-grid figure img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
}

.collateral--tall img {
  max-height: 620px;
  object-fit: cover;
  object-position: top;
}

.collateral--wide {
  grid-column: 1 / -1;
}

.gallery-card figcaption {
  padding: 14px 18px 16px;
  color: #5a5e66;
  font-size: 15px;
  line-height: 1.45;
}

/* Tory's banners: two tall, one wide */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 22px;
  margin-top: 48px;
}

.banner-card--wide {
  grid-column: 1 / -1;
  max-width: 1000px;
  justify-self: center;
}

.gallery-card--span {
  grid-column: 1 / -1;
}

.case-hero--torys .case-hero__visual,
.case-hero--shot .case-hero__visual {
  overflow: hidden;
  background: #23272e;
}

.case-hero--torys .case-hero__visual {
  min-height: 0;
  aspect-ratio: 3 / 2;
}

.case-hero--shot .case-hero__visual {
  min-height: 0;
  align-self: center;
}

.case-hero--shot .case-hero__visual img {
  position: static;
  display: block;
  height: auto;
}

.case-hero--torys .case-hero__visual img,
.case-hero--shot .case-hero__visual img {
  padding: 0;
  object-fit: cover;
}

/* Screenshot pairs on case studies */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.shot-grid figure {
  margin: 0;
}

.shot-grid img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
}

/* Portrait hero image (fliers) */
.case-hero--portrait .case-hero__visual {
  max-width: 420px;
  justify-self: center;
}

/* Lifeline: flier beside two social posts */
.lifeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
  align-items: start;
}

.lifeline-stack {
  display: grid;
  gap: 22px;
}

.lifeline-grid figure {
  margin: 0;
}

.lifeline-grid img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
}

/* Video */
.video-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.video-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.15s ease;
}

.video-card:hover img,
.video-card:focus-visible img {
  opacity: 0.85;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(35, 39, 46, 0.78);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.video-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -12px 0 0 -7px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #fff;
}

.video-card__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}

.video-feature__copy .video-feature__stat {
  color: #8f6410;
  font-family: var(--display, sans-serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
}

.video-feature__copy h3 {
  margin: 12px 0 10px;
  font-family: var(--display, sans-serif);
  font-size: 26px;
}

.video-feature__copy p {
  color: #5a5e66;
  font-size: 18px;
  line-height: 1.6;
}

.video-feature__copy p + p {
  margin-top: 12px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.video-card-wrap {
  margin: 0;
}

.video-card-wrap figcaption {
  margin-top: 10px;
  color: #5a5e66;
  font-size: 15px;
}

.video-card-wrap figcaption strong {
  color: var(--ink, #23272e);
}

/* Websites gallery */
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.site-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(35, 39, 46, 0.11);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #23272e);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-card:hover,
.site-card:focus-visible {
  box-shadow: 0 12px 32px rgba(35, 39, 46, 0.12);
  transform: translateY(-2px);
}

.site-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid rgba(35, 39, 46, 0.08);
}

.site-card__name {
  margin: 14px 16px 0;
  font-family: var(--display, sans-serif);
  font-size: 18px;
  font-weight: 700;
}

.site-card__desc {
  margin: 4px 16px 0;
  color: #5a5e66;
  font-size: 15px;
  line-height: 1.45;
}

.site-card__dom {
  margin: auto 16px 14px;
  padding-top: 10px;
  color: #8f6410;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}

/* Websites */
.site-feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}

.site-feature__shot {
  display: block;
}

.site-feature__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.site-feature__title {
  margin-bottom: 12px;
  font-family: var(--display, sans-serif);
  font-size: 28px;
}

.site-feature p {
  color: #5a5e66;
  font-size: 18px;
  line-height: 1.65;
}

.site-feature p + p {
  margin-top: 14px;
}

.site-more {
  margin-top: 36px;
  color: #5a5e66;
  font-size: 17px;
}

.site-more a,
.site-feature .work__link {
  color: #8f6410;
  font-weight: 700;
}

.case-note {
  margin-top: 28px;
  color: inherit;
  font-size: 14px;
  opacity: 0.8;
}

.case-section--dark .case-note {
  color: #c6c9cf;
  opacity: 1;
}

/* Services in this project + random button */
.case-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.case-services a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid rgba(35, 39, 46, 0.18);
  border-radius: 999px;
  color: var(--ink, #23272e);
  font-weight: 600;
  text-decoration: none;
}

.case-services a:hover,
.case-services a:focus-visible {
  border-color: var(--ink, #23272e);
  background: var(--ink, #23272e);
  color: var(--paper, #f4f1ec);
}

.case-related__more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .video-grid,
  .site-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-cards,
  .shot-grid,
  .site-feature {
    grid-template-columns: 1fr;
  }

  .collateral-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .video-feature,
  .video-grid,
  .lifeline-grid,
  .site-grid,
  .collateral-grid,
  .banner-grid {
    grid-template-columns: 1fr;
  }

  .banner-grid .banner-card:not(.banner-card--wide) {
    max-width: 340px;
    justify-self: center;
  }

  .work-card__title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card__link,
  .site-card {
    transition: none;
  }

  .work-card__link:hover,
  .work-card__link:focus-visible,
  .site-card:hover,
  .site-card:focus-visible {
    transform: none;
  }
}
