/* A product's introduction ends at the floating bridge; its story starts below. */
.product-case-study {
  --case-accent: #21639b;
  --case-light: #a8d8ff;
  --case-tint: #edf5fc;
  --case-glow: #245d91;
  --case-border: #c6ddef;
}
.product-case-cargo { --case-accent: #97501e; --case-light: #f4c394; --case-tint: #fff5e9; --case-glow: #704529; --case-border: #ecd8bf; }
.product-case-medihilfe { --case-accent: #096e9b; --case-light: #8cddf7; --case-tint: #edf9fe; --case-glow: #196b89; --case-border: #c4e7f4; }
.product-case-university { --case-accent: #6b42ae; --case-light: #d4b7ff; --case-tint: #f5f0fd; --case-glow: #5b4084; --case-border: #dfd2f0; }
.product-case-clinic { --case-accent: #117970; --case-light: #91e1d4; --case-tint: #edf9f6; --case-glow: #1d665f; --case-border: #c4e6df; }
.product-case-topup { --case-accent: #267843; --case-light: #ade5b8; --case-tint: #eff9f0; --case-glow: #305f42; --case-border: #cae5d0; }
.product-case-tailor { --case-accent: #92572c; --case-light: #f0cca4; --case-tint: #fcf5ec; --case-glow: #715135; --case-border: #e8d7c3; }

.product-page-heading.project-heading {
  padding-block: 32px 102px;
  border-radius: 26px;
  background: radial-gradient(ellipse at 95% 110%, var(--case-glow), transparent 60%), #0d1e38;
}
.product-page-heading .project-hero-grid { position: relative; z-index: 1; }
.product-page-heading .page-motif { stroke: var(--case-light); opacity: .1; }
.product-page-heading .page-motif-accent { stroke: var(--case-light); }
.product-page-heading .project-hero-copy .eyebrow { color: var(--case-light); }
.product-page-heading .project-category-icon { color: var(--case-light); }
.product-page-heading .project-hero-copy .button-primary { background: var(--case-light); border-color: var(--case-light); color: #11233d; }
.product-page-heading .project-hero-copy .button-primary:hover { background: #fff; border-color: #fff; }
.product-header-contours { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 180px; stroke: var(--case-light); stroke-width: 1; opacity: .12; pointer-events: none; }
.product-header-contours path:nth-child(2) { opacity: .6; }
.product-header-contours path:nth-child(3) { opacity: .3; }

.product-transition { position: relative; z-index: 2; width: min(calc(100% - 144px), 1184px); margin: -42px auto 0; padding-bottom: 30px; }
.product-transition-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 104px; padding: 20px 28px; border: 1px solid var(--case-border); border-radius: 20px; background: #fff; box-shadow: 0 20px 54px #142c4d0c, 0 4px 12px #142c4d04; }
.product-transition-card::before { content: ''; position: absolute; inset: -1px 24px auto; height: 2px; background: linear-gradient(90deg, transparent, var(--case-accent), transparent); border-radius: 100%; }
.product-transition-emblem { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; border: 1px solid var(--case-border); border-radius: 18px; background: linear-gradient(145deg, #fff, var(--case-tint)); color: var(--case-accent); font-size: 1.75rem; box-shadow: 0 3px 0 var(--case-tint); }
.product-transition-emblem::after { content: ''; position: absolute; inset-inline-end: -4px; inset-block-end: -4px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--case-accent); }
.product-transition-identity { display: grid; gap: 4px; min-width: 0; }
.product-transition-identity > span { color: var(--case-accent); font-size: .75rem; font-weight: 500; }
.product-transition-identity strong { display: block; color: #182f4c; font-size: 1rem; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.product-section-links { display: flex; align-items: stretch; gap: 4px; padding-inline-start: 22px; border-inline-start: 1px solid #e7ecf3; }
.product-section-links a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; max-width: 180px; padding: 10px 13px; border: 1px solid transparent; border-radius: 10px; color: #53657e; font-size: .8125rem; font-weight: 500; line-height: 1.65; text-align: center; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.product-section-links a:first-child { background: var(--case-tint); color: var(--case-accent); }
.product-section-links a:hover { transform: translateY(-2px); border-color: var(--case-border); background: var(--case-tint); color: var(--case-accent); }
.product-section-links a:focus-visible { outline: 3px solid var(--case-accent); outline-offset: 3px; }
.product-section-links i { flex-shrink: 0; font-size: 1rem; color: var(--case-accent); }
.product-transition-trail { position: absolute; inset-block-end: 0; inset-inline-start: 50%; height: 30px; width: 1px; background: linear-gradient(var(--case-border), var(--case-accent)); }
.product-transition-trail::after { content: ''; position: absolute; inset-block-end: -3px; inset-inline-start: -3px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--case-accent); box-shadow: 0 0 0 3px var(--case-tint); }

.product-preview-section { padding-block: 34px 0; background: #fff; }
.product-preview-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.product-preview-heading .eyebrow { margin: 0; color: var(--case-accent); font-size: .8125rem; }
.product-preview-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--case-border), transparent); }
.product-preview-heading > i { color: var(--case-accent); font-size: 1.25rem; }
.product-preview-section .project-preview-frame { margin-top: 0; border-color: var(--case-border); border-radius: 18px; box-shadow: 0 18px 48px #142c4d09; }
.product-preview-section .project-preview-toolbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); background: #fff; border-color: var(--case-border); }
.product-preview-section .project-preview-toolbar > span:nth-child(2) { min-width: 0; }
.product-preview-section .project-preview-toolbar > span:nth-child(2) > i { color: var(--case-accent); }
.product-preview-section .project-main-image { position: relative; display: flex; align-items: center; justify-content: center; max-height: none; aspect-ratio: auto; padding: clamp(20px, 4vw, 48px); border-radius: 0; background: radial-gradient(ellipse at 50% 0, #fff, transparent 70%), var(--case-tint); }
.product-preview-section .project-main-image img { display: block; width: 100%; max-width: 1000px; height: auto; margin-inline: auto; border: 1px solid #ffffffa6; border-radius: 8px; box-shadow: 0 12px 32px #123a6414; }
.product-preview-section .project-main-image.work-tailor img { max-width: 560px; }
.product-preview-section .project-main-image.work-realestate img { max-width: 1000px; }
.product-case-study .product-story { padding-top: 70px; }
.product-case-study .product-story-grid > article:last-child { background: var(--case-tint); border-color: var(--case-border); }
.product-case-study .product-story-grid article > i { color: var(--case-accent); }
.product-case-study .product-flow li > span { background: var(--case-tint); border-color: var(--case-border); color: var(--case-accent); }
.product-case-study .module-icon { color: var(--case-accent); background: var(--case-tint); }
.product-services-heading { max-width: 760px; }
.product-services-heading h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.45; }
.product-case-study .product-rollout .related-services { margin-bottom: 48px; }
.product-case-study :is(#product-overview, #product-story, #product-workflow, .project-modules) { scroll-margin-top: 16px; }

@media (max-width: 1199.98px) {
  .product-transition { width: calc(100% - 128px); }
  .product-transition-card { gap: 16px; padding: 20px; }
  .product-section-links { padding-inline-start: 16px; }
  .product-section-links a { padding-inline: 10px; gap: 7px; }
}
@media (max-width: 991.98px) {
  .product-transition { width: calc(100% - 96px); }
  .product-transition-card { grid-template-columns: auto minmax(0, 1fr); }
  .product-section-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 0 0; border-inline-start: 0; border-top: 1px solid #e7ecf3; }
  .product-section-links a { max-width: none; }
}
@media (max-width: 767.98px) {
  .product-page-heading.project-heading { padding-block: 24px 82px; border-radius: 20px; }
  .product-header-contours { height: 110px; }
  .product-transition { width: calc(100% - 64px); margin-top: -34px; padding-bottom: 26px; }
  .product-transition-card { gap: 14px; padding: 18px; border-radius: 16px; }
  .product-transition-emblem { width: 52px; height: 52px; border-radius: 15px; font-size: 1.5rem; }
  .product-transition-identity strong { font-size: .9375rem; }
  .product-transition-identity > span { font-size: .6875rem; }
  .product-section-links { gap: 6px; }
  .product-section-links a { flex-direction: column; gap: 5px; min-width: 0; padding: 10px 5px; font-size: .75rem; }
  .product-transition-trail { height: 26px; }
  .product-preview-section { padding-top: 28px; }
  .product-preview-section .project-preview-frame { border-radius: 14px; }
  .product-preview-section .project-preview-toolbar { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .product-preview-section .project-preview-caption { display: none; }
  .product-preview-section .project-preview-toolbar > span:nth-child(2) { justify-content: end; font-size: .75rem; text-align: end; }
  .product-preview-section .project-main-image { padding: 16px; }
  .product-case-study .product-story { padding-top: 48px; }
}
@media (max-width: 359.98px) {
  .product-transition { width: calc(100% - 48px); }
  .product-transition-card { padding: 14px; gap: 12px; }
  .product-section-links a { font-size: .6875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .product-section-links a { transition: none; }
  .product-section-links a:hover { transform: none; }
}
