/* =========================================================
   Case study pages (Bianca Espino)
   Built from Figma "Case study- Bianca Espino" (5619:1046), 1728px frame.
   Shared pieces (fonts, footer, bottom blur) live in styles.css.
   ========================================================= */

/* html colour only shows when the page is pulled past its edges (main.js swaps it near the bottom);
   the page itself is painted by body. */
html.case-page {
  background-color: #e2e5e6;
  background-image: none;
}

html.case-page.at-bottom {
  background-color: #353a3b;
}

.case-page body {
  background-color: #e2e5e6;
}

.case-page h1,
.case-page h2 {
  margin: 0;
  font-weight: inherit;
}

.case-page img,
.case-page video {
  max-width: none;
}

/* ---------- Back button ---------- */

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 79px;
  height: 36px;
  margin: 33px 0 0 30px;
  padding: 11px 17px 11px 13px;
  border-radius: 6px;
  background: var(--tab-active);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.051;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Page rhythm ---------- */

.case {
  margin-top: 29.6px;          /* content starts at y=98.6 */
  display: flex;
  flex-direction: column;
}

.case-brand {
  margin-top: 60px;
}

.case-merch {
  margin-top: 114px;
}

.case-vinyl,
.case-mv {
  margin-top: 74px;
}

.case + .footer {
  margin-top: 135px;
}

/* full-bleed images / videos */
.full {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blend-darken {
  mix-blend-mode: darken;
}

/* generic picture frame: image(s) fill the box */
.pic {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  min-height: 0;
}

.pic > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pic--square {
  border-radius: 0;
}

.pic.crop > img {
  inset: auto;
}

/* ---------- Intro ---------- */

.case-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
}

.case-intro__head {
  width: calc(100% - 70px);    /* 1658 of 1728 */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.case-intro__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 85.21px;
  line-height: 1.15;
  letter-spacing: -2.5563px;
  color: #000;
  white-space: nowrap;
}

.case-intro__info {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.case-intro__meta {
  width: 129px;
  display: flex;
  flex-direction: column;
  gap: 37px;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.meta-block__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #000;
}

.meta-block__list {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: #4d4d4d;
  text-transform: capitalize;
  white-space: nowrap;
}

.case-intro__overview {
  width: 684px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.case-intro__body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  color: #000;
}

.case-intro__body p + p {
  margin-top: 1.5em;           /* one empty line */
}

.case-intro__hero {
  display: block;
  width: 100%;
  aspect-ratio: 1728 / 846;
  object-fit: cover;
}

/* ---------- Brand gallery ---------- */

.case-brand {
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 167px;
}

.brand-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.brand-grid__row1 {
  display: flex;
  gap: 12px;
  aspect-ratio: 1668 / 1002;
}

.brand-grid__row2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.brand-col > .pic {
  flex-basis: 0;
}

.brand-col--auto > .pic {
  flex: none;
  width: 100%;
}

/* Collage: 1366.38 × 898.48 in Figma, centred */
.collage {
  position: relative;
  width: 81.917%;              /* 1366.38 / 1668 */
  aspect-ratio: 1366.38 / 898.48;
}

.collage > img {
  position: absolute;
  object-fit: cover;
}

/* ---------- Text rows ---------- */

.text-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-sans);
  font-weight: 400;
}

.text-row--1410 { width: min(1410px, calc(100% - 60px)); }
.text-row--1405 { width: min(1405px, calc(100% - 60px)); }

.text-row__title {
  width: 455px;
  flex: none;
  font-size: 48px;
  line-height: 1.3;
  color: #000;
}

.text-row__body {
  font-size: 28px;
  line-height: 1.3;
  color: #373737;
}

.text-row__body p + p {
  margin-top: 1.3em;           /* one empty line */
}

/* Figma keeps two empty lines under "Dinos and Swirls" */
.text-row--trailing .text-row__body {
  padding-bottom: 2.6em;
}

/* ---------- Merch / mixed media ---------- */

.case-merch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 117px;
}

.merch-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.merch-row {
  display: flex;
  align-items: center;
}

.merch-row__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- Section labels (line + mono caption) ---------- */

.section-label {
  width: calc(100% - 80px);    /* 1648 of 1728 */
  align-self: center;
  border-top: 1px solid #000;
  padding-top: 10px;
}

.section-label p {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.14px;
  text-transform: uppercase;
  color: #000;
}

/* ---------- Vinyl + social ---------- */

.case-vinyl {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ---------- Music video ---------- */

.case-mv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.mv {
  width: 100%;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 134px;
}

.mv-stills {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.mv-stills__row1 {
  display: flex;
  gap: 24px;
}

.mv-stills__row1 > .pic {
  flex: 1;
}

.mv-stills__row2 {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mv-stills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  min-width: 0;
}

.mv-text {
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.mv-credits {
  width: 362px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.68;
  text-transform: uppercase;
  color: #4c4c4c;
}

.mv-credits__watch {
  font-size: 20px;
  letter-spacing: -0.2px;
  text-decoration: underline;
  text-underline-position: from-font;
}

.mv-credits__list {
  font-size: 12px;
  letter-spacing: -0.12px;
}

.bts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bts__row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bts__row--top {
  align-items: flex-start;
}

.bts__row > .pic {
  min-width: 0;
}
