/* Homepage showreel, Figma 2205:7574 / 2205:7884. */
.showreel {
  --showreel-gutter: max(0px, calc((100vw - 1280px) / 2));
  --showreel-card-width: min(1080px, calc(100vw - 2 * var(--showreel-gutter) - 200px));
  --showreel-muted: #526078;
  --showreel-surface: #f5f6f9;
  --showreel-border: #dfe5ee;
  --showreel-image-radius: 4px;
  padding: 54px 0 26px;
  color: var(--content-heading);
  background: var(--_website---white);
}
.showreel p, .showreel h2, .showreel h3 { margin: 0; }
.showreel .showreel__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 0 32px; }
.showreel .showreel__title { color: var(--content-heading); font-size: 40px; font-weight: 700; line-height: 52px; }
.showreel__all, .showreel .read-case { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; padding: 10px 0; color: var(--content-heading); font-size: 14px; font-weight: 500; line-height: 18px; text-decoration: none; }
.showreel__viewport { display: flex; gap: 24px; margin-left: var(--showreel-gutter); padding-right: var(--showreel-gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.showreel__viewport::-webkit-scrollbar { display: none; }
.showreel__card { display: flex; flex: 0 0 var(--showreel-card-width); flex-direction: column; min-width: 0; height: 650px; padding: 22px 32px 27px; border-radius: 6px; background: var(--showreel-surface); scroll-snap-align: start; scroll-snap-stop: always; }
.showreel .case-body { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.showreel .case-copy { flex: none; min-width: 0; }
.showreel .case-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--showreel-muted); font-size: 12px; line-height: 16px; }
.showreel .case-context { color: inherit; font-size: inherit; line-height: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showreel .case-index { flex: none; font-weight: 500; }
.showreel .case-title { display: -webkit-box; overflow: hidden; margin-top: 6px; min-height: 42px; color: var(--content-heading); font-size: 32px; font-weight: 700; line-height: 42px; letter-spacing: -.64px; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.showreel .case-summary { display: -webkit-box; overflow: hidden; margin-top: 4px; min-height: 21px; color: var(--website-text-color); font-size: 16px; line-height: 21px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.showreel .case-services { display: flex; flex: none; gap: 8px; min-width: 0; margin-top: 15px; }
.showreel .case-service { flex: 0 1 auto; min-width: 0; overflow: hidden; padding: 6px 12px; border-radius: 6px; background: white; color: var(--content-heading); font-size: 14px; font-weight: 500; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.showreel [hidden] { display: none !important; }
.showreel .case-visual { display: flex; flex: 1; min-height: 0; margin-top: 26px; }
.showreel .case-media { background: transparent; position: relative; flex: 1; min-width: 0; min-height: 0; }
/* Round actual media bounds, including video posters and playback. Outer cards stay at 6px. */
.showreel .case-media__poster, .showreel .case-media__video { position: absolute; inset: 50% auto auto 50%; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transform: translate(-50%, -50%); border-radius: var(--showreel-image-radius); }
.showreel .case-media__video { visibility: hidden; pointer-events: none; }
.showreel .case-media.is-playing .case-media__video { visibility: visible; }
.showreel .case-media.is-playing .case-media__poster { visibility: hidden; }
.showreel .case-evidence { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 20px; background: white; }
.showreel .evidence-title { color: var(--content-heading); font-size: 26px; font-weight: 500; line-height: 34px; }
.showreel .integration-flow { display: flex; align-items: center; gap: 24px; margin: 0; padding: 40px 0; list-style: none; }
.showreel .integration-step { display: flex; flex: 1; align-items: center; gap: 24px; min-width: 0; }
.showreel .integration-step__copy { flex: 1; min-width: 0; }
.showreel .integration-arrow { flex: none; }
.showreel .integration-system { color: var(--content-heading); font-size: 23px; font-weight: 500; line-height: 30px; }
.showreel .integration-data { margin-top: 13px; color: var(--showreel-muted); font-size: 16px; line-height: 21px; white-space: pre-line; }
.showreel .evidence-caption { color: var(--showreel-muted); font-size: 14px; line-height: 18px; }
.showreel .evidence-units, .showreel .chart-legend { color: var(--showreel-muted); font-size: 12px; line-height: 16px; }
.showreel .chart-series { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.showreel .series-name { color: var(--content-heading); margin-bottom: 4px; font-size: 16px; font-weight: 500; line-height: 21px; }
.showreel .chart-plot { display: flex; align-items: center; gap: 8px; height: 16px; margin-right: 60px; }
.showreel .chart-plot + .chart-plot { margin-top: 8px; }
.showreel .data-bar { flex: 0 0 var(--bar-width); height: 16px; background: var(--showreel-border); }
.showreel .chart-plot--after .data-bar { background: var(--content-heading); }
.showreel .data-value { flex: none; font-size: 12px; line-height: 16px; }
.showreel .chart-legend { margin-top: 8px; }
.showreel .case-results { display: grid; grid-template-columns: minmax(0, 502px) 1fr; gap: 15px 24px; flex: none; margin-top: 16px; }
.showreel .case-metrics { display: flex; gap: 12px; grid-column: 1; grid-row: 1; }
.showreel .achievement-chip { flex: 1; min-width: 0; min-height: 72px; padding: 7px 12px 10px; border-radius: 6px; background: white; }
.showreel .achievement-value { overflow: hidden; color: var(--content-heading); font-size: 30px; font-weight: 700; line-height: 39px; text-overflow: ellipsis; white-space: nowrap; }
.showreel .achievement-label { display: -webkit-box; overflow: hidden; color: var(--website-text-color); font-size: 13px; line-height: 17px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.showreel .case-source { grid-column: 1 / -1; grid-row: 2; color: var(--showreel-muted); font-size: 12px; line-height: 16px; }
.showreel .read-case { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; gap: 12px; padding-inline: 12px; }
.showreel .showreel__navigation { padding-block: 24px 0; }
.showreel__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 0 6px; border-top: 1px solid var(--showreel-border); }
.showreel__current { display: flex; align-items: center; gap: 25px; font-size: 14px; line-height: 18px; }
.showreel__current-label { color: var(--showreel-muted); }
.showreel__buttons { display: flex; gap: 8px; }
.showreel__buttons button { display: flex; align-items: center; justify-content: center; flex: none; min-width: 48px; min-height: 48px; padding: 12px; border: 0; border-radius: 6px; background: var(--showreel-surface); cursor: pointer; }
.showreel__viewport:focus-visible, .showreel__buttons button:focus-visible { outline: 2px solid var(--content-heading); outline-offset: -2px; }
.showreel__buttons button:hover { background: var(--showreel-border); }
.showreel img { max-width: 100%; }
.showreel .showreel__mobile { display: none; }
@media (max-width: 1279px) { .showreel { --showreel-gutter: 5vw; } }
@media (min-width: 768px) and (max-width: 1100px) {
  .showreel { --showreel-card-width: calc(100vw - 2 * var(--showreel-gutter) - 60px); }
  .showreel .integration-flow, .showreel .integration-step { gap: 12px; }
  .showreel .integration-system { color: var(--content-heading); font-size: 18px; }
  .showreel .case-results { grid-template-columns: minmax(0, 1fr) auto; }
}
/* Compact desktop: two equal columns leave room for the fixed site header. */
@media (min-width: 1200px) and (max-width: 1440px), (min-width: 1200px) and (max-height: 800px) {
  .showreel { --showreel-image-radius: 3px; padding-block: 12px; scroll-margin-top: 112px; }
  .showreel .showreel__header { padding-bottom: 12px; }
  .showreel__card { height: 400px; padding: 20px 28px; }
  .showreel .case-body { flex-direction: row; gap: 24px; }
  .showreel .case-copy { display: flex; flex: 1; flex-direction: column; justify-content: center; }
  .showreel .case-title { min-height: 34px; margin-top: 8px; font-size: 28px; line-height: 34px; letter-spacing: -.56px; }
  .showreel .case-summary { min-height: 60px; margin-top: 8px; font-size: 15px; line-height: 20px; -webkit-line-clamp: 3; }
  .showreel .case-services { margin-top: 16px; }
  .showreel .case-visual { flex: 1; min-width: 0; margin-top: 0; }
  .showreel .case-evidence { justify-content: center; padding: 16px; }
  .showreel .evidence-title { display: -webkit-box; overflow: hidden; font-size: 18px; line-height: 24px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .showreel .integration-flow { gap: 12px; padding: 20px 0 16px; }
  .showreel .integration-step { gap: 12px; }
  .showreel .integration-system { overflow: hidden; font-size: 15px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
  .showreel .integration-system .showreel__desktop { display: none; }
  .showreel .integration-system .showreel__mobile { display: inline; }
  .showreel .integration-data { display: -webkit-box; overflow: hidden; margin-top: 8px; font-size: 12px; line-height: 16px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .showreel .evidence-caption { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 16px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .showreel .case-visual--chart .case-evidence { padding-block: 12px; }
  .showreel .evidence-units { overflow: hidden; margin-top: 5px; text-overflow: ellipsis; white-space: nowrap; }
  .showreel .evidence-units, .showreel .chart-legend { font-size: 11px; line-height: 14px; }
  .showreel .chart-series { gap: 8px; margin-top: 10px; }
  .showreel .series-name { overflow: hidden; font-size: 13px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .showreel .chart-plot { height: 14px; margin-right: 44px; gap: 4px; }
  .showreel .chart-plot + .chart-plot { margin-top: 2px; }
  .showreel .data-bar { height: 10px; }
  .showreel .data-value { font-size: 11px; line-height: 14px; white-space: nowrap; }
  .showreel .chart-legend { display: -webkit-box; overflow: hidden; margin-top: 6px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .showreel .case-results { row-gap: 8px; }
  .showreel .case-source { overflow: hidden; min-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .showreel .showreel__navigation { padding-top: 12px; }
  .showreel__controls { min-height: 0; padding: 8px 0 0; }
}
@media (min-width: 1200px) and (max-height: 680px) {
  .showreel__card { height: 360px; }
}
@media (max-width: 767px) {
  .showreel { --showreel-card-width: calc(100vw - 2 * var(--showreel-gutter)); --showreel-image-radius: 2px; padding: 8px 0; }
  .showreel .showreel__header { padding-block: 0 8px; }
  .showreel .showreel__title { font-size: 28px; line-height: 36px; }
  .showreel__all { gap: 20px; }
  .showreel__all.ui-arrow-link, .showreel .is-active .read-case { --ui-arrow-rest-angle: -45deg; }
  .showreel__viewport { gap: 8px; }
  .showreel__card { height: 420px; padding: 12px 16px; }
  .showreel .case-meta { font-size: 11px; line-height: 14px; }
  .showreel .case-title { min-height: 52px; margin-top: 4px; font-size: 22px; line-height: 26px; letter-spacing: 0; -webkit-line-clamp: 2; }
  .showreel .case-summary, .showreel .showreel__desktop, .showreel .evidence-caption, .showreel__current-label { display: none; }
  .showreel .showreel__mobile { display: inline; }
  .showreel .case-services { gap: 6px; margin-top: 8px; }
  .showreel .case-service { max-width: 164px; padding: 4px 8px; font-size: 12px; line-height: 16px; }
  .showreel .case-service:first-child:nth-last-child(2) { max-width: 100%; }
  .showreel .case-visual { margin-top: 8px; }
  .showreel .case-evidence { justify-content: center; padding: 8px; }
  .showreel .evidence-title { overflow: hidden; font-size: 14px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
  .showreel .integration-flow { gap: 4px; padding: 12px 0 0; }
  .showreel .integration-step { gap: 4px; text-align: center; }
  .showreel .integration-system { overflow: hidden; font-size: 13px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .showreel .integration-data { display: -webkit-box; overflow: hidden; min-height: 28px; margin-top: 4px; font-size: 11px; line-height: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .showreel .evidence-units { overflow: hidden; font-size: 11px; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .showreel .chart-series { gap: 6px; margin-top: 8px; }
  .showreel .series-name { color: var(--content-heading); margin-bottom: 2px; font-size: 11px; line-height: 14px; }
  .showreel .chart-plot { gap: 8px; height: 8px; margin-right: 46px; }
  .showreel .chart-plot + .chart-plot { margin-top: 6px; }
  .showreel .data-bar { height: 8px; }
  .showreel .data-value { font-size: 10px; line-height: 12px; }
  .showreel .case-results { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
  .showreel .case-metrics { gap: 6px; height: 70px; }
  .showreel .achievement-chip { min-height: 0; padding: 6px 8px; }
  .showreel .achievement-value { font-size: 24px; line-height: 28px; }
  .showreel .achievement-label { min-height: 28px; margin-top: 2px; font-size: 12px; line-height: 14px; }
  .showreel .case-source { display: -webkit-box; overflow: hidden; min-height: 28px; max-height: 28px; font-size: 11px; line-height: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .showreel .read-case { justify-content: space-between; align-self: stretch; padding: 10px 0; }
  .showreel .showreel__navigation { padding-block: 8px 0; }
  .showreel__controls { min-height: 44px; padding: 8px 0 0; }
  .showreel__buttons button { min-width: 44px; min-height: 44px; padding: 10px; }
}
@media (max-width: 767px) and (max-height: 639px) {
  .showreel__card { height: auto; min-height: 420px; }
  .showreel .case-visual { min-height: 140px; }
}
