/* Portfolio galleries share the site's blue, purple and light surfaces. */
.portfolio-category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.portfolio-category-nav a { padding: 10px 16px; border: 1px solid var(--border-soft); border-radius: 999px; background: #ffffffc9; color: var(--navy); font-size: .75rem; font-weight: 650; transition: border-color .2s, color .2s, background .2s; }
.portfolio-category-nav a:hover, .portfolio-category-nav a:focus-visible { color: var(--purple-dark); background: #f4efff; border-color: #c9b9ee; }
.portfolio-category-nav a:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.portfolio-gallery { padding: clamp(40px, 6vw, 80px) 0; background: #f8faff; }
.portfolio-gallery-intro { max-width: 670px; margin-bottom: 42px; }
.portfolio-gallery-intro h2 { margin: 10px 0 16px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -.045em; }
.portfolio-gallery-intro h2 > span:not(.word-token),
.portfolio-gallery-intro h2 > span:not(.word-token) .word-ink { color: var(--purple); }
.portfolio-gallery-intro p { margin: 0; color: var(--muted); line-height: 1.8; font-size: .95rem; }
.portfolio-category { padding: 32px 0 44px; border-top: 1px solid #dce4ef; scroll-margin-top: 110px; }
.portfolio-category:last-child { padding-bottom: 0; }
.portfolio-category-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.portfolio-category-index { display: block; color: var(--purple-dark); font-size: .6rem; font-weight: 800; letter-spacing: .15em; }
.portfolio-category-heading h2 { margin: 8px 0 0; color: var(--navy); font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; letter-spacing: -.04em; }
.portfolio-category-heading p { margin: 0 0 2px; max-width: 300px; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.portfolio-project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.portfolio-project { --preview-height: 400px; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dce4ef; border-radius: 9px; box-shadow: 0 5px 18px #35466305; transition: border-color .25s, box-shadow .25s; }
.portfolio-project:hover, .portfolio-project:focus-within { border-color: #b7a0e8; box-shadow: 0 12px 26px #56408512; }
.portfolio-preview { display: block; position: relative; width: 100%; height: var(--preview-height); padding: 0; border: 0; border-bottom: 1px solid #e5eaf3; border-radius: 0; background: #edf2fa; color: var(--navy); text-align: left; font-family: var(--primaryfont); cursor: pointer; overflow: hidden; isolation: isolate; }
.portfolio-preview::after { content: ''; position: absolute; inset: auto 0 0; height: 55px; background: linear-gradient(transparent, #eaf0f9a6); pointer-events: none; }
.portfolio-preview:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; z-index: 1; }
.portfolio-scroll { display: block; width: 100%; height: auto; min-height: calc(var(--preview-height) + 120px); transition: transform 5s cubic-bezier(.2, .5, .25, 1); transform: translateY(0); }
.portfolio-preview > img.portfolio-scroll { min-height: 0; }
.portfolio-project.is-scrolled .portfolio-scroll,
.portfolio-project.is-hovered .portfolio-scroll { transform: translateY(calc(var(--preview-height) - 100%)); }
@media (hover: hover) and (pointer: fine) {
  .portfolio-project:hover .portfolio-scroll { transform: translateY(calc(var(--preview-height) - 100%)); }
}
.portfolio-preview-hint { position: absolute; z-index: 2; right: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #ddd8ef; border-radius: 999px; color: var(--purple-dark); background: #fffffff2; box-shadow: 0 2px 8px #202b4610; font-size: .53rem; font-weight: 700; pointer-events: none; }
.portfolio-preview-hint i { font-size: .6rem; }
.portfolio-project-caption { position: relative; min-height: 78px; padding: 15px 32px 15px 13px; }
.portfolio-project-caption > span { display: block; color: var(--purple-dark); font-size: .54rem; font-weight: 700; line-height: 1.4; }
.portfolio-project-caption h3 { margin: 7px 0 0; color: var(--navy); font-size: .8rem; line-height: 1.4; letter-spacing: -.02em; }
.portfolio-project-caption > i { position: absolute; right: 13px; bottom: 19px; color: var(--blue); font-size: .65rem; }
/* Illustrative campaign reports are built in HTML so their labels stay readable. */
.report-preview { padding-bottom: 14px; background: #f6f8fc; font-size: 9px; line-height: 1.5; }
.report-preview span, .social-preview span, .creative-preview span { display: block; }
.report-toolbar { display: flex !important; align-items: center; gap: 7px; padding: 9px 10px; background: #fff; border-bottom: 1px solid #e0e7f0; font-size: 10px; }
.report-toolbar > i { color: var(--blue); font-size: 12px; }
.report-toolbar > strong { font-weight: 750; }
.report-avatar { display: grid !important; place-items: center; width: 19px; height: 19px; margin-left: auto; border-radius: 50%; color: #fff; background: var(--primary-gradient); font-size: 9px; }
.report-intro { padding: 12px 12px 10px; }
.report-label { color: #7a6f9f; letter-spacing: .12em; font-size: 7px; font-weight: 700; }
.report-intro > strong { display: block; margin: 8px 0 10px; font-size: 16px; font-weight: 750; letter-spacing: -.04em; }
.report-intro > span:last-child { display: inline-flex; gap: 20px; background: #fff; border: 1px solid #dfe5f0; border-radius: 5px; padding: 5px 8px; font-size: 8px; }
.report-metrics { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 11px; overflow: hidden; border: 1px solid #e1e6f0; border-radius: 7px; background: #e7e9f4; }
.report-metrics > span { padding: 10px 9px; background: #fff; }
.report-metrics > span:nth-child(1) { background: #078ac8; color: white; }
.report-metrics > span:nth-child(2) { background: #7451d9; color: white; }
.report-metrics > span > span { font-size: 8px; }
.report-metrics strong { display: block; font-size: 22px; line-height: 1.3; font-weight: 750; letter-spacing: -.04em; }
.report-metrics small { font-size: 6px; opacity: .75; }
.report-block { margin: 11px 11px 0; padding: 12px 10px; border: 1px solid #e1e6f0; border-radius: 7px; background: #fff; }
.report-block > strong { display: block; margin-bottom: 8px; font-size: 10px; }
.report-chart { display: block; width: 100%; height: 100px; color: #3871cf; }
.report-chart .chart-grid { fill: none; stroke: #e7ebf3; stroke-dasharray: 3; }
.report-chart text { font-family: var(--primaryfont); font-size: 7px; fill: #778599; }
.report-legend { display: flex !important; align-items: center; gap: 5px; white-space: nowrap; font-size: 6px; color: #7c879b; }
.report-legend i { width: 5px; height: 5px; border-radius: 50%; background: #3871cf; }
.report-legend i:nth-child(2) { background: #a98bea; margin-left: 6px; }
.report-rows > span { display: flex !important; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef1f6; font-size: 8px; }
.report-rows > span:last-child { border-bottom: none; }
.report-rows strong { color: #4264b1; font-weight: 700; }
.report-bars > span { margin-top: 10px; font-size: 8px; }
.report-bars i { display: block; width: var(--bar); height: 6px; border-radius: 3px; margin-top: 4px; background: var(--primary-gradient); }
.report-footnote { padding: 15px 10px 0; color: #778398; text-align: center; font-size: 7px; }
.report-meta .report-toolbar > i { color: #3866db; }
.profile-map { display: grid !important; place-content: center; gap: 3px; height: 140px; margin: 11px; border: 1px solid #dce7e5; border-radius: 6px; text-align: center; background: repeating-linear-gradient(35deg, transparent 0 24px, #fff 25px 32px, transparent 33px 60px), repeating-linear-gradient(110deg, #e9f1e9 0 32px, #fff 33px 40px, #ecf1e8 41px 70px); color: #466779; }
.profile-map > i { font-size: 30px; color: var(--purple); text-shadow: 0 2px 0 white; }
.profile-map > span { padding: 3px 6px; border-radius: 4px; background: #ffffffd9; font-size: 8px; }
/* Social profile concepts follow the same light presentation as the galleries. */
.social-preview { padding: 0 11px 17px; color: #303b52; background: #fff; font-size: 8px; line-height: 1.55; }
.social-top { display: flex !important; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #e6ebf3; font-size: 11px; }
.social-profile { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 0 12px; }
.social-avatar { display: grid !important; place-items: center; width: 46px; height: 46px; border: 3px solid #e3d4f3; border-radius: 50%; color: #fff; background: var(--primary-gradient); font-size: 13px; font-weight: 800; }
.social-profile > span:not(.social-avatar) { font-size: 7px; text-align: center; }
.social-profile strong { display: block; font-size: 11px; }
.social-bio strong { display: block; font-size: 11px; }
.social-bio > span { margin-top: 4px; }
.social-bio > span:nth-child(2), .social-bio small { color: #7c889d; }
.social-link { color: var(--purple-dark); font-weight: 650; }
.social-bio small { display: block; margin-top: 8px; font-size: 7px; }
.social-actions { display: flex !important; gap: 6px; margin: 12px 0; }
.social-actions span { flex: 1; padding: 6px; border-radius: 4px; text-align: center; background: #eef1f8; font-weight: 700; }
.social-actions span:first-child { color: #fff; background: var(--primary-gradient); }
.social-highlights { display: flex !important; justify-content: space-around; gap: 6px; padding: 2px 0 15px; font-size: 6px; text-align: center; }
.social-highlights i { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 4px; border: 1px solid #cfc3e8; border-radius: 50%; background: #f0eafa; color: #7a58a1; font-family: var(--headingfont); font-size: 10px; font-style: normal; }
.social-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.social-tile { position: relative; min-height: 115px; overflow: hidden; padding: 9px 6px; background: #eee7f7; color: #5e4383; }
.social-tile strong { display: block; margin-top: 12px; font-family: var(--headingfont); font-size: 10px; line-height: 1.3; letter-spacing: -.04em; }
.social-tile > span { position: absolute; left: 6px; bottom: 7px; font-size: 4px; letter-spacing: .08em; }
.social-tile-2 { background: #e5f2f5; color: #32677e; }
.social-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.social-preview-1 .social-tile-1 { background: #f5ede2; color: #806449; }
.social-preview-2 .social-tile-1 { background: #e6edf3; color: #476479; }
.social-preview-3 .social-tile-1 { background: #f4e7ed; color: #8a5369; }
/* Long creative boards provide room to explore the visual direction. */
.creative-preview { font-size: 10px; }
.creative-cover { position: relative; min-height: 390px; overflow: hidden; padding: 20px 17px 0; background: #eae4f7; color: #53416f; }
.creative-kicker { font-size: 6px; letter-spacing: .14em; font-weight: 800; }
.creative-cover > strong { display: block; margin: 20px 0 10px; font-family: var(--headingfont); font-size: 28px; line-height: 1.08; font-weight: 800; letter-spacing: -.055em; }
.creative-cover > span:nth-of-type(2) { font-size: 9px; }
.creative-cover > img { display: block; width: calc(100% + 34px); height: 210px; margin: 20px -17px 0; object-fit: cover; }
.creative-stamp { position: absolute; bottom: 15px; left: 14px; padding: 7px 9px; border-radius: 4px; color: #fff; background: #3c3563dd; font-size: 7px; line-height: 1.5; }
.creative-preview-1 .creative-cover { background: #e2eef6; color: #315a73; }
.creative-preview-2 .creative-cover { background: #f5e6ef; color: #7a4463; }
.creative-preview-3 .creative-cover { background: #e7eafb; color: #4e5c91; }
.creative-details { padding: 24px 18px 18px; background: #fff; }
.creative-details > small { color: var(--purple-dark); font-size: 6px; letter-spacing: .12em; }
.creative-details > strong { display: block; margin: 12px 0; font-size: 22px; line-height: 1.15; font-family: var(--headingfont); letter-spacing: -.04em; }
.creative-details > span:not(.creative-swatches, .creative-type, .creative-bottom) { color: #7b8496; font-size: 9px; line-height: 1.7; }
.creative-swatches { display: flex !important; gap: 6px; margin: 22px 0; }
.creative-swatches i { flex: 1; height: 50px; border-radius: 5px; background: #654b95; }
.creative-swatches i:nth-child(2) { background: #bda2df; }
.creative-swatches i:nth-child(3) { background: #ece7f8; }
.creative-type { padding: 20px 12px; border: 1px solid #e5deef; border-radius: 5px; font-size: 21px; font-weight: 750; line-height: 1.4; letter-spacing: -.04em; }
.creative-bottom { margin-top: 20px; color: #7b8496; font-size: 7px; }
@media (max-width: 1199.98px) { .portfolio-project-grid { gap: 14px; } .portfolio-project { --preview-height: 350px; } .portfolio-project-caption h3 { font-size: .75rem; } .report-metrics strong { font-size: 19px; } }
@media (max-width: 991.98px) { .portfolio-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .portfolio-project { --preview-height: 365px; } .portfolio-category-heading p { max-width: 245px; } }
@media (max-width: 575.98px) {
  .portfolio-gallery { padding-block: 36px; }
  .portfolio-gallery-intro { margin-bottom: 30px; }
  .portfolio-category-nav { gap: 7px; margin-top: 1.5rem; }
  .portfolio-category-nav a { padding: 8px 11px; font-size: .65rem; }
  .portfolio-category { padding: 25px 0 30px; scroll-margin-top: 85px; }
  .portfolio-category-heading { display: block; margin-bottom: 17px; }
  .portfolio-category-heading p { max-width: none; margin-top: 10px; font-size: .77rem; }
  .portfolio-project-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .portfolio-project { --preview-height: 400px; }
  .portfolio-project-caption { min-height: 82px; padding: 16px 38px 16px 17px; }
  .portfolio-project-caption h3 { font-size: .95rem; }
  .portfolio-project-caption > span { font-size: .63rem; }
  .portfolio-preview-hint { font-size: .6rem; padding: 7px 11px; }
  .report-preview { font-size: 11px; }
  .report-toolbar { padding: 14px; font-size: 13px; }
  .report-intro { padding: 20px 15px 16px; }
  .report-intro > strong { font-size: 20px; }
  .report-metrics { margin-inline: 14px; }
  .report-metrics > span { padding: 13px; }
  .report-metrics > span > span { font-size: 10px; }
  .report-metrics strong { font-size: 27px; }
  .report-block { margin: 14px 14px 0; padding: 15px; }
  .report-block > strong { font-size: 12px; }
  .report-rows > span, .report-bars > span { font-size: 10px; }
  .social-preview { padding-inline: 17px; }
  .social-top { font-size: 14px; }
  .social-profile { padding-block: 20px 14px; }
  .social-avatar { width: 60px; height: 60px; font-size: 18px; }
  .social-profile > span:not(.social-avatar) { font-size: 9px; }
  .social-profile strong { font-size: 15px; }
  .social-bio { font-size: 10px; }
  .social-bio strong { font-size: 14px; }
  .social-actions { font-size: 10px; }
  .social-highlights i { width: 40px; height: 40px; }
  .social-tile { min-height: 145px; padding: 13px 9px; }
  .social-tile strong { font-size: 15px; }
  .creative-cover > strong { font-size: 36px; }
  .creative-cover > img { height: 270px; }
  .creative-details > strong { font-size: 28px; }
}
/* Keep the supplied 4:5 social collages tall enough to scroll at every width. */
#work-social .portfolio-project { --preview-height: 300px; }
@media (max-width: 1199.98px) { #work-social .portfolio-project { --preview-height: 230px; } }
@media (max-width: 991.98px) { #work-social .portfolio-project { --preview-height: 280px; } }
@media (max-width: 575.98px) { #work-social .portfolio-project { --preview-height: 320px; } }
/* The supplied Business Profile screenshots are all 900 × 700. */
#work-gbp .portfolio-preview { height: auto; aspect-ratio: 8 / 5; }
#work-gbp .portfolio-project.is-scrolled .portfolio-scroll,
#work-gbp .portfolio-project.is-hovered .portfolio-scroll { transform: translateY(-19.642857%); }
@media (hover: hover) and (pointer: fine) {
  #work-gbp .portfolio-project:hover .portfolio-scroll { transform: translateY(-19.642857%); }
}
@media (prefers-reduced-motion: reduce) { .portfolio-scroll, .portfolio-project, .portfolio-category-nav a { transition: none; } }
