/* Project periods, verified client references and the company journey. */
.sptg-themed .sptg-case-intro.has-metadata { margin-bottom: 20px; }
.sptg-themed .inner-page ul.sptg-project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0 0 30px; padding: 0; }
.sptg-themed .inner-page .sptg-project-meta > li { display: flex; align-items: center; gap: 8px; min-height: 34px; max-width: 100%; margin: 0; padding: 6px 12px; border: 1px solid #cbdbe3; border-radius: 4px; background: #fff; color: #254b60; font-family: "Open Sans Regular",sans-serif; font-size: 13px; font-weight: 400; line-height: 1.3; box-sizing: border-box; }
.sptg-themed .inner-page .sptg-project-meta > li::before { display: none; }
.sptg-themed .sptg-project-meta > li > span { min-width: 0; overflow-wrap: anywhere; }
.sptg-themed .sptg-project-meta .sptg-case-tech-icon { display: block; flex: none; width: 16px; height: 16px; }
.sptg-themed .sptg-project-meta .sptg-case-tech-icon:has(use) { fill: currentColor; }
.sptg-themed .inner-page .sptg-project-meta > li.is-period { font-weight: 600; }
.sptg-themed .inner-page ul.sptg-project-meta.is-compact { flex-wrap: nowrap; gap: 6px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.sptg-themed .inner-page .sptg-project-meta.is-compact > li { flex: none; white-space: nowrap; min-height: 28px; padding: 4px 9px; font-size: 11px; }
.sptg-themed .sptg-project-meta.is-compact .sptg-case-tech-icon { width: 14px; height: 14px; }
.sptg-themed.sptg-dark .inner-page .sptg-project-meta > li { border-color: #304957; background: #172b38; color: #e1edf4; }
@media (max-width:767px) { .sptg-themed .inner-page .sptg-project-meta > li { min-height: 32px; padding: 6px 10px; font-size: 12px; } }

.sptg-themed .sptg-client-project .sptg-client-period { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #405b6b; }
.sptg-themed .sptg-case-period { margin: 18px 0 24px; color: #637782; font-size: 14px; line-height: 1.6; }
.sptg-themed.sptg-dark .sptg-client-project .sptg-client-period, .sptg-themed.sptg-dark .sptg-case-period { color: #a5b8c6; }
.sptg-themed .sptg-case-intro.has-multiple { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
/* Reference cards use one portrait frame and alignment, including paired cards. */
.sptg-themed .sptg-case-intro { --sptg-case-photo-size: 96px; }
.sptg-themed .sptg-case-intro .sptg-case-contact { align-items: flex-start; padding: 24px; gap: 22px; }
.sptg-themed .sptg-case-intro.has-metadata :is(.sptg-case-contact-photo,.sptg-testimonial-media.is-portrait) { flex-basis: var(--sptg-case-photo-size); width: var(--sptg-case-photo-size); height: var(--sptg-case-photo-size); border-radius: 0; }
.sptg-themed .sptg-case-intro .sptg-case-contact-photo img { border-radius: 0; }
.sptg-themed .sptg-case-intro .sptg-case-contact-details { overflow-wrap: anywhere; }
.sptg-themed .sptg-case-contact-photo-abrouk img { object-position: left center; transform: scale(1.55); transform-origin: 35% 55%; }
.sptg-themed .sptg-case-contact-photo-nayar img { object-position: center 20%; }
.sptg-themed .sptg-case-contact .sptg-case-contact-photo-gerardi img { object-fit: cover; transform: scale(1.45); transform-origin: center; }
.sptg-themed .sptg-case-contact-photo-rasmusson img { object-position: right center; }
.sptg-themed .sptg-journey-intro { max-width: 880px; margin: 24px 0 30px; font-size: 18px; line-height: 1.7; }
.sptg-themed .sptg-journey-timeline { margin: 0 0 44px; }
.sptg-themed .sptg-journey-timeline ol { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 0; list-style: none; padding: 0; margin: 0; }
.sptg-themed .sptg-journey-timeline li { min-width: 0; margin: 0; }
.sptg-themed .sptg-journey-timeline a { display: grid; grid-template-rows: auto 28px 1fr; height: 100%; padding: 0 8px 8px; color: inherit; text-decoration: none; text-align: left; }
.sptg-themed .sptg-journey-date { font-size: 15px; font-weight: 600; color: #2b6f91; white-space: nowrap; }
.sptg-themed .sptg-journey-node { position: relative; display: block; align-self: center; height: 2px; background: #bacbd5; margin-right: -16px; }
.sptg-themed .sptg-journey-node::before { content: ""; display: block; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #287da7; }
.sptg-themed .sptg-journey-timeline li:last-child .sptg-journey-node { background: none; margin-right: 0; }
.sptg-themed .sptg-journey-label { font-size: 13px; line-height: 1.5; }
.sptg-themed .sptg-journey-timeline a:hover .sptg-journey-label { text-decoration: underline; }
.sptg-themed .sptg-journey-timeline a:focus-visible { outline: 2px solid var(--sptg-blue,#1688b4); outline-offset: 2px; }
.sptg-themed .sptg-journey-section { scroll-margin-top: 140px; }
.sptg-themed .sptg-journey-section h2 { margin: 34px 0 18px; font: 500 26px/1.35 "Open Sans Light"; }
.sptg-themed .sptg-journey-section:first-child h2 { margin-top: 0; }
.sptg-themed.sptg-dark .sptg-journey-date { color: #74b7d9; }
.sptg-themed.sptg-dark .sptg-journey-node { background: #415e70; }
.sptg-themed.sptg-dark .sptg-journey-node::before { background: #74b7d9; }
@media (max-width:1199px) { .sptg-themed .sptg-case-intro.has-multiple { grid-template-columns: minmax(0,1fr); } }
@media (max-width:991px) {
 .sptg-themed .sptg-journey-timeline { overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px 28px; scroll-snap-type: x proximity; }
 .sptg-themed .sptg-journey-timeline ol { display: flex; width: max-content; }
 .sptg-themed .sptg-journey-timeline li { flex: 0 0 126px; width: 126px; scroll-snap-align: start; }
 .sptg-themed .sptg-journey-timeline a { padding-left: 4px; padding-right: 16px; }
 .sptg-themed .sptg-journey-node { margin-right: -20px; }
}
@media (max-width:767px) {
 .sptg-themed .sptg-case-intro { --sptg-case-photo-size: 72px; }
 .sptg-themed .sptg-case-intro .sptg-case-contact { padding: 20px 16px; gap: 16px; }
 .sptg-themed .sptg-case-period { margin-top: 16px; font-size: 13px; }
 .sptg-themed .sptg-journey-intro { font-size: 16px; margin: 20px 0 26px; }
 .sptg-themed .sptg-journey-section { scroll-margin-top: 110px; }
 .sptg-themed .sptg-journey-section h2 { font-size: 24px; }
}

/* Original portrait assets are retained; only the reference-thumbnail framing changes. */
.sptg-themed .sptg-case-contact-photo-schildt img { object-position: center 25%; transform: scale(1.3); transform-origin: 45% 40%; }
.sptg-themed .sptg-case-contact-photo-austin img { transform: scale(1.4); transform-origin: 52% 64%; }

/* Closer face framing for the owner-requested Nerio client portrait. */
.sptg-themed .sptg-case-contact-photo-parks img { transform: scale(2); transform-origin: 67% 10%; }

/* Full-chip source links use the same geometry as the plain date and purpose labels. */
.sptg-themed .inner-page .sptg-project-meta > li.has-source { padding:0; }
.sptg-themed .sptg-project-meta a.sptg-project-meta-link { display:flex; align-items:center; gap:8px; width:100%; min-width:0; min-height:32px; padding:6px 12px; box-sizing:border-box; border-radius:3px; color:inherit; font:inherit; text-decoration:none; scroll-margin-block:140px 24px; }
.sptg-themed .sptg-project-meta-link > span { min-width:0; overflow-wrap:anywhere; }
.sptg-themed .inner-page .sptg-project-meta > li.has-source:has(a:is(:hover,:focus-visible)) { border-color:#1688b4; }
.sptg-themed .sptg-project-meta a.sptg-project-meta-link:is(:hover,:focus-visible) > span { text-decoration:underline; text-underline-offset:2px; }
.sptg-themed .sptg-project-meta a.sptg-project-meta-link:hover { background:#f2f8fb; }
.sptg-themed .sptg-project-meta a.sptg-project-meta-link:focus-visible { outline:2px solid #1688b4 !important; outline-offset:-3px !important; }
.sptg-themed .sptg-project-meta.is-compact a.sptg-project-meta-link { min-height:26px; padding:4px 9px; }
.sptg-themed.sptg-dark .inner-page .sptg-project-meta > li.has-source:has(a:is(:hover,:focus-visible)) { border-color:#79d5ef; }
.sptg-themed.sptg-dark .sptg-project-meta a.sptg-project-meta-link:hover { background:#203c4e; }
.sptg-themed.sptg-dark .sptg-project-meta a.sptg-project-meta-link:focus-visible { outline-color:#79d5ef !important; }
@media(max-width:767px) { .sptg-themed .sptg-project-meta a.sptg-project-meta-link { min-height:30px; padding:6px 10px; } }

/* Match the face scale of the paired Glopinion reference portraits. */
.sptg-themed .sptg-case-contact-photo-buckup img { transform: scale(1.22); transform-origin: 50% 30%; }
