html body.portfolio-page .flyer-showcase-v178 {
  position: relative;
  overflow: clip;
  padding: clamp(72px, 8vw, 124px) 0;
  color: #f7f9ff;
  background:
    radial-gradient(circle at 88% 4%, rgba(57, 107, 255, .23), transparent 28%),
    radial-gradient(circle at 4% 52%, rgba(200, 16, 46, .14), transparent 31%),
    #080d1d;
}

html body.portfolio-page .flyer-showcase-v178::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 34%);
}

html body.portfolio-page .flyer-showcase-v178 .section-inner {
  position: relative;
  z-index: 1;
}

html body.portfolio-page .flyer-showcase-v178 .eyebrow {
  color: #9fb4ef;
}

html body.portfolio-page .flyer-showcase-head-v178 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  margin-bottom: 38px;
}

html body.portfolio-page .flyer-showcase-head-v178 h2 {
  max-width: 850px;
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(44px, 6.5vw, 94px);
  line-height: .92;
  letter-spacing: -.065em;
}

html body.portfolio-page .flyer-showcase-head-v178 > p {
  margin: 0;
  color: #b9c3db;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
}

html body.portfolio-page .flyer-stats-v178 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(157, 181, 242, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(14px);
}

html body.portfolio-page .flyer-stats-v178 > span {
  display: flex;
  min-height: 112px;
  padding: 22px 24px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

html body.portfolio-page .flyer-stats-v178 > span + span {
  border-left: 1px solid rgba(157, 181, 242, .18);
}

html body.portfolio-page .flyer-stats-v178 b {
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.04em;
}

html body.portfolio-page .flyer-stats-v178 small {
  color: #aeb9d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html body.portfolio-page .flyer-filter-row-v178 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 26px;
}

html body.portfolio-page .flyer-filters-v178 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

html body.portfolio-page .flyer-filters-v178 button {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 16px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(157, 181, 242, .24);
  border-radius: 999px;
  color: #c7d1e7;
  background: rgba(255,255,255,.035);
  font: 800 11px/1.2 "Manrope", sans-serif;
  letter-spacing: .035em;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

html body.portfolio-page .flyer-filters-v178 button span {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: inherit;
  font-size: 10px;
}

html body.portfolio-page .flyer-filters-v178 button:hover {
  border-color: rgba(133, 168, 255, .68);
  color: #fff;
  transform: translateY(-1px);
}

html body.portfolio-page .flyer-filters-v178 button:focus-visible,
html body.portfolio-page .flyer-card-v178:focus-visible,
html body.portfolio-page .flyer-dialog-v178 button:focus-visible {
  outline: 3px solid #7da2ff;
  outline-offset: 3px;
}

html body.portfolio-page .flyer-filters-v178 button[aria-pressed="true"] {
  border-color: #356dff;
  color: #fff;
  background: #1f5ae3;
  box-shadow: 0 12px 28px rgba(31,90,227,.3);
}

html body.portfolio-page .flyer-filter-status-v178 {
  flex: 0 0 auto;
  margin: 0;
  color: #8997b5;
  font-size: 12px;
}

html body.portfolio-page .flyer-grid-v178 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

html body.portfolio-page .flyer-card-v178 {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(157, 181, 242, .2);
  border-radius: 20px;
  color: #fff;
  background: #11182d;
  box-shadow: 0 20px 55px rgba(0,0,0,.18);
  text-align: left;
  cursor: zoom-in;
  isolation: isolate;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

html body.portfolio-page .flyer-card-v178[hidden] {
  display: none !important;
}

html body.portfolio-page .flyer-card-v178::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(4,7,17,.22) 30%, rgba(4,7,17,.94));
}

html body.portfolio-page .flyer-card-v178 img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #121a31;
  transition: transform .36s ease, filter .36s ease;
}

html body.portfolio-page .flyer-card-v178 > span {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  padding: 36px 18px 17px;
  gap: 6px;
}

html body.portfolio-page .flyer-card-v178 small {
  color: #b7c6ed;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
}

html body.portfolio-page .flyer-card-v178 strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.portfolio-page .flyer-card-v178 em {
  margin-top: 2px;
  color: #a9c2ff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
}

/* The shared light-theme layer intentionally forces headings and small text
   to navy. These labels sit on a dark image overlay, so lock their contrast
   locally and keep the supplied artwork itself untouched. */
html body.agenz-unified-v96.portfolio-page .flyer-card-v178 > span small,
html body.portfolio-page .flyer-card-v178 > span small {
  color: #dce7ff !important;
  -webkit-text-fill-color: #dce7ff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}

html body.agenz-unified-v96.portfolio-page .flyer-card-v178 > span strong,
html body.portfolio-page .flyer-card-v178 > span strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .96);
}

html body.agenz-unified-v96.portfolio-page .flyer-card-v178 > span em,
html body.portfolio-page .flyer-card-v178 > span em {
  color: #c9dbff !important;
  -webkit-text-fill-color: #c9dbff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}

html body.agenz-unified-v96.portfolio-page .flyer-filters-v178 button[aria-pressed="true"],
html body.agenz-unified-v96.portfolio-page .flyer-filters-v178 button[aria-pressed="true"] span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* High-contrast light-mode treatment for the gallery controls and metrics. */
html body.agenz-unified-v96.portfolio-page .flyer-stats-v178 {
  border-color: #d7e1f1 !important;
  background: #ffffff !important;
  box-shadow: 0 18px 48px rgba(35, 64, 112, .08) !important;
}

html body.agenz-unified-v96.portfolio-page .flyer-stats-v178 > span {
  border-color: #dfe7f3 !important;
}

html body.agenz-unified-v96.portfolio-page .flyer-stats-v178 b {
  color: #155ec8 !important;
  -webkit-text-fill-color: #155ec8 !important;
}

html body.agenz-unified-v96.portfolio-page .flyer-stats-v178 small {
  color: #344563 !important;
  -webkit-text-fill-color: #344563 !important;
}

html body.agenz-unified-v96.portfolio-page .flyer-filters-v178 button:not([aria-pressed="true"]) {
  border-color: #cbd8eb !important;
  color: #344563 !important;
  -webkit-text-fill-color: #344563 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(35, 64, 112, .055) !important;
}

html body.agenz-unified-v96.portfolio-page .flyer-filters-v178 button:not([aria-pressed="true"]) span {
  color: #213756 !important;
  -webkit-text-fill-color: #213756 !important;
  background: #edf3fb !important;
}

html body.agenz-unified-v96.portfolio-page .flyer-filter-status-v178 {
  color: #52617a !important;
  -webkit-text-fill-color: #52617a !important;
}

html body.portfolio-page .flyer-card-v178:hover {
  border-color: rgba(126, 162, 255, .7);
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
  transform: translateY(-5px);
}

html body.portfolio-page .flyer-card-v178:hover img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}

html body.portfolio-page .flyer-disclosure-v178 {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(157, 181, 242, .18);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}

html body.portfolio-page .flyer-disclosure-v178 strong {
  color: #91a8e4;
  font-size: 10px;
  letter-spacing: .11em;
}

html body.portfolio-page .flyer-disclosure-v178 p {
  margin: 0;
  color: #a8b3ca;
  font-size: 12px;
  line-height: 1.65;
}

html body.portfolio-page .flyer-cta-v178 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: clamp(25px, 4vw, 42px);
  border-radius: 24px;
  background: #f5f7fd;
  color: #101a35;
}

html body.portfolio-page .flyer-cta-v178 strong {
  display: block;
  font-size: clamp(23px, 2.7vw, 38px);
  letter-spacing: -.045em;
}

html body.portfolio-page .flyer-cta-v178 p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #5a6780;
  font-size: 14px;
  line-height: 1.65;
}

html body.portfolio-page .flyer-cta-v178 .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

html body.portfolio-page .flyer-dialog-v178 {
  overflow: visible;
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(172, 193, 255, .35);
  border-radius: 22px;
  color: #fff;
  background: #080d1d;
  box-shadow: 0 30px 120px rgba(0,0,0,.75);
}

html body.portfolio-page .flyer-dialog-v178::backdrop {
  background: rgba(1, 4, 13, .87);
  backdrop-filter: blur(12px);
}

html body.portfolio-page .flyer-dialog-shell-v178 {
  display: flex;
  max-height: calc(100dvh - 32px);
  flex-direction: column;
}

html body.portfolio-page .flyer-dialog-v178 header {
  display: flex;
  padding: 15px 16px 14px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(172, 193, 255, .18);
}

html body.portfolio-page .flyer-dialog-v178 header div {
  display: grid;
  gap: 3px;
}

html body.portfolio-page .flyer-dialog-v178 header small {
  color: #8fa9eb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html body.portfolio-page .flyer-dialog-v178 header strong {
  color: #fff;
  font-size: 15px;
}

html body.portfolio-page .flyer-dialog-v178 header button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(172, 193, 255, .25);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.05);
  font: 400 27px/1 sans-serif;
  cursor: pointer;
}

html body.portfolio-page .flyer-dialog-v178 figure {
  display: grid;
  min-height: 0;
  margin: 0;
  padding: 16px;
  place-items: center;
}

html body.portfolio-page .flyer-dialog-v178 figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 154px);
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 10px;
  background: #11182d;
}

html body.portfolio-page .flyer-dialog-v178 figcaption {
  margin-top: 10px;
  color: #8d9ab8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.flyer-dialog-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  html body.portfolio-page .flyer-grid-v178 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  html body.portfolio-page .flyer-showcase-head-v178 { grid-template-columns: 1fr; gap: 20px; }
  html body.portfolio-page .flyer-stats-v178 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.portfolio-page .flyer-stats-v178 > span:nth-child(odd) { border-left: 0; }
  html body.portfolio-page .flyer-stats-v178 > span:nth-child(n+3) { border-top: 1px solid rgba(157, 181, 242, .18); }
  html body.portfolio-page .flyer-grid-v178 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.portfolio-page .flyer-filter-row-v178 { align-items: flex-start; flex-direction: column; }
  html body.portfolio-page .flyer-cta-v178 { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  html body.portfolio-page .flyer-showcase-v178 { padding: 68px 0; }
  html body.portfolio-page .flyer-showcase-head-v178 h2 { font-size: clamp(40px, 13.5vw, 61px); }
  html body.portfolio-page .flyer-stats-v178 > span { min-height: 90px; padding: 18px; }
  html body.portfolio-page .flyer-filters-v178 { display: grid; width: 100%; grid-template-columns: 1fr; }
  html body.portfolio-page .flyer-filters-v178 button { width: 100%; justify-content: space-between; }
  html body.portfolio-page .flyer-grid-v178 { grid-template-columns: 1fr; gap: 18px; }
  html body.portfolio-page .flyer-card-v178 { border-radius: 16px; }
  html body.portfolio-page .flyer-card-v178 > span { padding: 56px 20px 20px; }
  html body.portfolio-page .flyer-card-v178 strong { font-size: 18px; }
  html body.portfolio-page .flyer-disclosure-v178 { grid-template-columns: 1fr; gap: 8px; }
  html body.portfolio-page .flyer-cta-v178 .button { width: 100%; white-space: normal; text-align: center; }
  html body.portfolio-page .flyer-dialog-v178 { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  html body.portfolio-page .flyer-dialog-shell-v178 { max-height: calc(100dvh - 20px); }
  html body.portfolio-page .flyer-dialog-v178 figure { padding: 10px; }
  html body.portfolio-page .flyer-dialog-v178 figure img { max-height: calc(100dvh - 145px); }
}

@media (prefers-reduced-motion: reduce) {
  html body.portfolio-page .flyer-card-v178,
  html body.portfolio-page .flyer-card-v178 img,
  html body.portfolio-page .flyer-filters-v178 button { transition: none !important; }
  html body.portfolio-page .flyer-card-v178:hover,
  html body.portfolio-page .flyer-card-v178:hover img { transform: none !important; }
}
