/* Expanded portfolio content — cache-busted for the August 31 release. */

.portfolio-directory__links { grid-template-columns: repeat(4, 1fr); }

/* The social mockup no longer needs extra height for a portfolio button. */
.service-visual--social.service-visual--portfolio {
  min-height: 590px;
  padding-bottom: 34px;
}

.project-mosaic--ella .gallery-item--large img { object-position: center 25%; }
.project-video--native video {
  display: block;
  width: 100%;
  max-height: 620px;
  aspect-ratio: 9 / 16;
  justify-self: center;
  border-radius: 16px;
  background: #111;
  object-fit: contain;
}
.project-video--native { grid-template-columns: minmax(250px, .62fr) 1.38fr; }

/* Newsletter envelopes */
.newsletter-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.newsletter-card { min-width: 0; text-align: center; }
.newsletter-card h3 {
  margin: .15rem 0 .65rem;
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
}
.newsletter-card .eyebrow { margin-top: 1.35rem; }
.newsletter-card .text-link {
  margin-inline: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.newsletter-envelope {
  position: relative;
  width: 100%;
  height: clamp(350px, 35vw, 455px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(201,162,83,.26);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.95), rgba(244,237,225,.64) 60%, rgba(230,216,190,.72)),
    var(--cream);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  isolation: isolate;
}
.newsletter-paper {
  position: absolute;
  z-index: 2;
  left: 15%;
  top: 22px;
  width: 70%;
  height: 76%;
  overflow: hidden;
  border: 7px solid white;
  border-radius: 4px 4px 2px 2px;
  background: white;
  box-shadow: 0 12px 34px rgba(70,54,31,.2);
  transition: transform .42s cubic-bezier(.2,.8,.2,1), box-shadow .42s ease;
}
.newsletter-paper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.envelope-back {
  position: absolute;
  z-index: 1;
  left: 5%;
  right: 5%;
  bottom: 20px;
  height: 36%;
  border: 1px solid rgba(139,111,66,.18);
  border-radius: 4px 4px 17px 17px;
  background: linear-gradient(145deg, #eadcc2, #f7efdf);
  box-shadow: 0 18px 34px rgba(82,62,30,.14);
}
.envelope-front {
  position: absolute;
  z-index: 3;
  left: 5%;
  right: 5%;
  bottom: 20px;
  height: 31%;
  overflow: hidden;
  border: 1px solid rgba(139,111,66,.18);
  border-radius: 0 0 17px 17px;
  background: linear-gradient(160deg, #f5ead5 0 50%, #e8d7b8 50% 100%);
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
}
.newsletter-envelope::after {
  content: "Open full design";
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  color: #6b5634;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.newsletter-envelope:hover .newsletter-paper,
.newsletter-envelope:focus-visible .newsletter-paper {
  transform: translateY(-20px);
  box-shadow: 0 22px 42px rgba(70,54,31,.26);
}

/* Google Business Profile transformations */
.google-transformation {
  margin-top: clamp(34px, 5vw, 64px);
  padding: clamp(26px, 4.5vw, 56px);
  border: 1px solid rgba(201,162,83,.26);
  border-radius: 30px;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow-soft);
}
.google-transformation + .google-transformation { margin-top: clamp(30px, 4vw, 48px); }
.google-transformation__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 42px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.google-transformation__header h3 {
  margin: .25rem 0 0;
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
}
.google-transformation__header > p {
  margin: 0;
  color: #6b6258;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.google-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}
.google-state { min-width: 0; }
.google-state__label {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .75rem;
  color: #685e52;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.google-state__label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b6aaa0;
}
.google-state--after .google-state__label::before { background: var(--gold); }
.google-state button {
  width: 100%;
  min-height: 440px;
  padding: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(44,41,37,.1);
  border-radius: 20px;
  background: #f7f7f7;
  cursor: zoom-in;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.google-state button:hover {
  transform: translateY(-3px);
  border-color: rgba(201,162,83,.46);
  box-shadow: 0 18px 38px rgba(69,53,30,.13);
}
.google-state img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}
.google-difference-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.google-difference-lists > div {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 20px;
  background: rgba(243,238,228,.65);
}
.google-difference-lists > div:last-child { background: rgba(230,224,197,.52); }
.google-difference-lists h4 {
  margin-bottom: 1rem;
  color: #4c4338;
  font-size: 2rem;
}
.google-difference-lists ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .72rem;
  list-style: none;
}
.google-difference-lists li {
  position: relative;
  padding-left: 1.35rem;
  color: #645b51;
  font-size: .77rem;
  line-height: 1.55;
}
.google-difference-lists li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaa097;
}
.google-difference-lists > div:last-child li::before { background: var(--gold); }

@media (max-width: 1050px) {
  .portfolio-directory__links { grid-template-columns: repeat(2, 1fr); }
  .newsletter-showcase { gap: 20px; }
  .project-video--native { grid-template-columns: minmax(220px, .72fr) 1.28fr; }
}

@media (max-width: 820px) {
  .newsletter-showcase { grid-template-columns: 1fr; gap: 52px; }
  .newsletter-envelope { width: min(520px, 100%); height: 480px; margin-inline: auto; }
  .google-transformation__header { grid-template-columns: 1fr; align-items: start; }
  .google-comparison, .google-difference-lists { grid-template-columns: 1fr; }
  .google-state button { min-height: 0; }
  .project-video--native { grid-template-columns: 1fr; }
  .project-video--native video { width: min(390px, 100%); max-height: 680px; }
}

@media (max-width: 560px) {
  .portfolio-directory__links { grid-template-columns: 1fr; }
  .service-visual--social.service-visual--portfolio { min-height: 540px; padding-bottom: 24px; }
  .newsletter-envelope { height: 390px; border-radius: 22px; }
  .newsletter-paper { left: 13%; width: 74%; }
  .google-transformation { padding: 22px 16px; border-radius: 22px; }
  .google-state button { padding: 8px; border-radius: 14px; }
  .google-difference-lists > div { padding: 20px 17px; }
}
