/* Portfolio additions — Camelia, Ninayay refresh, YoDog and digital showcases */
.portfolio-refresh-block {
  grid-column: 1 / -1;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: clamp(1.8rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.project-ninayay-updated .project-info {
  position: static !important;
  align-self: start;
}

.portfolio-refresh-copy {
  max-width: 760px;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.portfolio-refresh-copy .kicker,
.interactive-example-copy .kicker {
  margin: 0 0 .7rem;
  color: var(--burgundy);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portfolio-refresh-copy h4,
.interactive-example-copy h4 {
  margin: 0 0 .75rem;
  color: var(--burgundy);
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  font-weight: 400;
  line-height: .98;
}

.portfolio-refresh-copy p,
.interactive-example-copy p {
  margin: 0;
  color: var(--brown);
  line-height: 1.65;
}

.ninayay-refresh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.7rem, 1.7vw, 1.35rem);
}

.ninayay-refresh-grid figure,
.camelia-post-grid figure,
.camelia-brand-grid figure,
.yodog-gallery figure {
  margin: 0;
}

.ninayay-refresh-grid img,
.camelia-post-grid img,
.camelia-brand-grid img,
.yodog-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.7vw, 24px);
}

.project-row.project-added {
  grid-template-columns: minmax(210px, .64fr) minmax(0, 2fr);
  align-items: start;
}

.project-added .project-info {
  position: sticky;
  top: 7rem;
}

.camelia-gallery,
.yodog-gallery {
  min-width: 0;
}

.camelia-post-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.65rem, 1.4vw, 1.15rem);
}

.camelia-brand-story {
  margin-top: clamp(2.4rem, 5vw, 4.4rem);
  padding-top: clamp(1.8rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.camelia-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.8rem, 1.8vw, 1.4rem);
  max-width: 720px;
}

.yodog-gallery {
  display: flex;
  justify-content: center;
}

.yodog-gallery figure {
  width: min(100%, 720px);
}

/* Responsive website mockups */
.andy-device-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(155px, 22%);
  align-items: end;
  gap: clamp(1rem, 3vw, 2.3rem);
  width: min(100%, 1120px);
  margin: 0 auto;
}

.andy-laptop {
  position: relative;
  padding: clamp(9px, 1.2vw, 15px) clamp(9px, 1.2vw, 15px) clamp(16px, 2vw, 24px);
  border-radius: clamp(15px, 2vw, 25px);
  background: #2a1b18;
  box-shadow: 0 22px 65px #6a0a0b2d;
}

.andy-laptop::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #725f58;
}

.andy-laptop::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4%;
  right: -4%;
  bottom: -11px;
  height: 15px;
  border-radius: 2px 2px 18px 18px;
  background: linear-gradient(180deg, #bfaea6, #77635c);
}

.andy-laptop video,
.andy-laptop img {
  display: block;
  width: 100%;
  aspect-ratio: 2.06 / 1;
  object-fit: cover;
  border-radius: clamp(7px, 1vw, 12px);
  background: #170d0c;
}

.andy-phone {
  position: relative;
  width: 100%;
  max-width: 250px;
  justify-self: center;
  padding: 11px;
  border: 1px solid #ffffff26;
  border-radius: clamp(26px, 3vw, 38px);
  background: #261815;
  box-shadow: 0 20px 55px #6a0a0b2b;
}

.andy-phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  width: 34%;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #261815;
}

.andy-phone img,
.andy-phone video {
  display: block;
  width: 100%;
  aspect-ratio: 1058 / 2048;
  object-fit: cover;
  object-position: top;
  border-radius: clamp(18px, 2.4vw, 28px);
  background: #fff;
}

.landing-showcase .landing-media-grid.andy-landing-media {
  display: block;
}

.landing-example-stack {
  display: grid;
  gap: clamp(4.5rem, 8vw, 7.5rem);
}

.landing-example {
  position: relative;
  padding-top: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line);
}

.landing-example:first-child {
  padding-top: 0;
  border-top: 0;
}

.landing-example-number {
  display: block;
  margin: 0 0 clamp(1.1rem, 2vw, 1.8rem);
  color: var(--pink);
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.digital-showcase {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
  background: var(--blush);
}

.digital-showcase-intro {
  width: min(100%, 1120px);
  margin: 0 auto;
  text-align: center;
}

.digital-showcase-intro .kicker {
  margin: 0 0 .9rem;
  color: var(--burgundy);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.digital-showcase-intro h2 {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(2.15rem, 3.8vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  scroll-margin-top: 7rem;
}

.digital-showcase-intro h2 em {
  display: inline;
  color: var(--pink);
  font-weight: 400;
}

.digital-showcase-intro > p:last-child {
  max-width: 650px;
  margin: .9rem auto 0;
  color: var(--brown);
  line-height: 1.7;
}

.digital-showcase .interactive-examples {
  width: min(100%, 1198px);
  margin-right: auto;
  margin-left: auto;
}

/* New interactive catalog examples */
.interactive-examples {
  display: grid;
  gap: clamp(4.5rem, 9vw, 8rem);
  margin: clamp(2rem, 4vw, 3.2rem) 0 clamp(4rem, 8vw, 6rem);
}

/* Mired rebranding and packaging — independent from catalogs */
.mired-showcase {
  margin-top: clamp(6rem, 11vw, 10rem);
  margin-bottom: clamp(5rem, 9vw, 8rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: clamp(30px, 4vw, 54px);
  background: var(--cream);
}

.mired-showcase + .catalogs-showcase {
  margin-top: clamp(4rem, 7vw, 6.5rem);
}

.mired-brand-copy {
  max-width: 760px;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.mired-brand-copy .kicker {
  margin: 0 0 .7rem;
  color: var(--pink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mired-brand-copy h4 {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.mired-brand-copy > p:last-child {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--brown);
  line-height: 1.7;
}

.mired-packaging-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.65rem, 1.4vw, 1rem);
  width: min(100%, 820px);
  margin: 0 auto;
}

.mired-packaging-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f2e9e8;
  min-height: 1px;
}

.mired-packaging-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: 1;
  visibility: visible;
}

.interactive-example {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(1.8rem, 3vw, 2.8rem);
  border-top: 1px solid var(--line);
}

.interactive-example-copy .example-number {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--pink);
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
}

.single-phone-stage {
  display: flex;
  justify-content: center;
}

.single-phone-stage .andy-phone {
  width: min(100%, 285px);
  max-width: 285px;
}

.catalog-device-stage {
  grid-template-columns: minmax(0, 1fr) minmax(145px, 21%);
}

@media (max-width: 980px) {
  .camelia-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ninayay-refresh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-row.project-added { grid-template-columns: 1fr; }
  .project-added .project-info { position: static; }
  .interactive-example { grid-template-columns: 1fr; }
  .interactive-example-copy { max-width: 720px; }
}

@media (max-width: 700px) {
  .portfolio-refresh-block { margin-top: 2rem; }
  .camelia-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camelia-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .andy-device-stage,
  .catalog-device-stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .andy-laptop { width: 100%; }
  .andy-phone { width: min(58vw, 230px); }
  .landing-showcase .andy-phone { margin-top: 1.3rem; }
  .landing-example-stack { gap: 3.4rem; }
  .digital-showcase-intro { text-align: left; }
  .digital-showcase-intro h2 {
    font-size: clamp(2.05rem, 10vw, 3.2rem);
    white-space: normal;
  }
  .digital-showcase-intro > p:last-child { margin-left: 0; }
  .interactive-example { gap: 1.8rem; }
  .single-phone-stage .andy-phone { width: min(68vw, 270px); }
  .mired-packaging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 560px);
  }
  .mired-showcase {
    margin-top: 4.5rem;
    margin-bottom: 4rem;
    padding: 1.2rem;
    border-radius: 28px;
  }
}

@media (max-width: 430px) {
  .ninayay-refresh-grid { gap: .6rem; }
  .camelia-post-grid { gap: .55rem; }
  .camelia-brand-grid { gap: .7rem; }
}
