/* Start custom CSS *//* ===== Bronn - About "Our journey": sticky scroll timeline ===== */
/* texts: each one sits under its own year (desktop), stacked in one cell on tablet/mobile */
.elementor .b-journey .b-journey-texts { max-width: none !important; }
.elementor .b-journey .b-journey-texts > * { grid-row: 1; grid-column: 1 / -1; max-width: 425px; }
@media (min-width: 1025px) {
  .elementor .b-journey .b-journey-texts { grid-template-columns: repeat(4, minmax(0, 1fr)) 134px !important; }
  /* fluid timeline: columns follow the container so nothing overflows between 1025 and 1350px */
  .elementor .b-journey .b-journey-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) 134px !important; }
  .elementor .b-journey [data-id="4d1756ae"] { width: auto !important; left: 67px !important; right: 67px !important; }
  .elementor .b-journey [data-id="717663dc"] { width: auto !important; left: 67px !important; right: 67px !important; }
  /* texts a bit narrower and centred under their own dot (each dot sits 67px into its column),
     the first starts at the left end of the line, the last ends at the right end */
  .elementor .b-journey .b-journey-texts > * { width: 290px; max-width: 290px; }
  .elementor .b-journey .b-journey-texts > *:nth-child(1) { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .elementor .b-journey .b-journey-texts > *:nth-child(2) { grid-column: 2 / -1; justify-self: start; margin-inline-start: calc(67px - 145px); text-align: center; }
  .elementor .b-journey .b-journey-texts > *:nth-child(3) { grid-column: 3 / -1; justify-self: start; margin-inline-start: calc(67px - 145px); text-align: center; }
  .elementor .b-journey .b-journey-texts > *:nth-child(4) { grid-column: 4 / -1; justify-self: start; margin-inline-start: calc(67px - 145px); text-align: center; }
  .elementor .b-journey .b-journey-texts > *:nth-child(5) { grid-column: 1 / -1; justify-self: end; text-align: right; }
}

@supports (animation-timeline: view()) {
  /* block pins near the middle of the screen while you scroll the spacer */
  .elementor .b-journey {
    view-timeline-name: --journey;
    view-timeline-axis: block;
  }
  /* invisible spacer = scroll distance while the block is pinned */
  .elementor .b-journey::after {
    content: "";
    display: block;
    height: 260vh;
  }
  .elementor .b-journey .b-journey-sticky {
    position: sticky;
    top: max(80px, calc(50vh - 240px));
  }

  @keyframes bjYearOn { from, to { color: #EB5B03; font-weight: 600; } }
  @keyframes bjDotOn  { from, to { background-color: #EB5B03; } }
  @keyframes bjLine   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes bjText {
    0%   { opacity: 0; transform: translateY(16px); }
    22%  { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-8px); }
  }
  @keyframes bjTextFirst {
    0%, 80% { opacity: 1; transform: translateY(0); }
    100%    { opacity: 0; transform: translateY(-8px); }
  }
  @keyframes bjTextLast {
    0%        { opacity: 0; transform: translateY(16px); }
    22%, 100% { opacity: 1; transform: translateY(0); }
  }

  .elementor .b-journey .b-journey-texts > * { opacity: 0; }

  /* dark line grows from dot to dot, reaching each dot as that year activates */
  .elementor .b-journey .b-journey-progress {
    animation: bjLine 1ms linear both;
    animation-timeline: --journey;
    animation-range: contain 0% contain 80%;
  }

  /* 5 equal steps: year k is active from (20k)% to (20k+20)% of the sticky scroll */
  .elementor .b-journey .b-journey-grid > *:nth-child(1) .b-journey-year { animation: bjYearOn 1ms linear backwards; animation-timeline: --journey; animation-range: contain 0% contain 20%; }
  .elementor .b-journey .b-journey-grid > *:nth-child(2) .b-journey-year { animation: bjYearOn 1ms linear none;      animation-timeline: --journey; animation-range: contain 20% contain 40%; }
  .elementor .b-journey .b-journey-grid > *:nth-child(3) .b-journey-year { animation: bjYearOn 1ms linear none;      animation-timeline: --journey; animation-range: contain 40% contain 60%; }
  .elementor .b-journey .b-journey-grid > *:nth-child(4) .b-journey-year { animation: bjYearOn 1ms linear none;      animation-timeline: --journey; animation-range: contain 60% contain 80%; }
  .elementor .b-journey .b-journey-grid > *:nth-child(5) .b-journey-year { animation: bjYearOn 1ms linear forwards;  animation-timeline: --journey; animation-range: contain 80% contain 100%; }

  .elementor .b-journey .b-journey-grid > *:nth-child(1) .b-journey-dot { animation: bjDotOn 1ms linear backwards; animation-timeline: --journey; animation-range: contain 0% contain 20%; }
  .elementor .b-journey .b-journey-grid > *:nth-child(2) .b-journey-dot { animation: bjDotOn 1ms linear none;      animation-timeline: --journey; animation-range: contain 20% contain 40%; }
  .elementor .b-journey .b-journey-grid > *:nth-child(3) .b-journey-dot { animation: bjDotOn 1ms linear none;      animation-timeline: --journey; animation-range: contain 40% contain 60%; }
  .elementor .b-journey .b-journey-grid > *:nth-child(4) .b-journey-dot { animation: bjDotOn 1ms linear none;      animation-timeline: --journey; animation-range: contain 60% contain 80%; }
  .elementor .b-journey .b-journey-grid > *:nth-child(5) .b-journey-dot { animation: bjDotOn 1ms linear forwards;  animation-timeline: --journey; animation-range: contain 80% contain 100%; }

  .elementor .b-journey .b-journey-texts > *:nth-child(1) { animation: bjTextFirst 1ms linear backwards; animation-timeline: --journey; animation-range: contain 0% contain 20%; }
  .elementor .b-journey .b-journey-texts > *:nth-child(2) { animation: bjText 1ms linear none;            animation-timeline: --journey; animation-range: contain 20% contain 40%; }
  .elementor .b-journey .b-journey-texts > *:nth-child(3) { animation: bjText 1ms linear none;            animation-timeline: --journey; animation-range: contain 40% contain 60%; }
  .elementor .b-journey .b-journey-texts > *:nth-child(4) { animation: bjText 1ms linear none;            animation-timeline: --journey; animation-range: contain 60% contain 80%; }
  .elementor .b-journey .b-journey-texts > *:nth-child(5) { animation: bjTextLast 1ms linear forwards;    animation-timeline: --journey; animation-range: contain 80% contain 100%; }
}

/* Firefox / no scroll-timeline: static timeline exactly like the Figma (2023 active) */
@supports not (animation-timeline: view()) {
  .elementor .b-journey .b-journey-grid > *:nth-child(2) .b-journey-year { color: #EB5B03; font-weight: 600; }
  .elementor .b-journey .b-journey-grid > *:nth-child(2) .b-journey-dot { background-color: #EB5B03; }
  .elementor .b-journey .b-journey-texts > *:not(:nth-child(2)) { display: none; }
}


/* ===== Bronn - team cards: hover reveal =====
   On hover the photo slowly zooms, darkens from the bottom, and a glass panel rises
   with a short bio + email / LinkedIn buttons. The arrow turns to point up-right.
   Touch screens (no hover): the two buttons stay visible on the photo, the bio is hidden. */
.elementor .b-photo-team { position: relative; overflow: hidden; isolation: isolate; }
/* zooming copy of the photo (the element's own background stays underneath) */
.elementor .b-photo-team::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: no-repeat;
  transition: scale 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* bottom shade */
.elementor .b-photo-team::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(20, 19, 18, 0.7) 0%, rgba(20, 19, 18, 0.25) 45%, rgba(20, 19, 18, 0) 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.elementor .b-team-reveal {
  z-index: 1;
  background-color: rgba(33, 32, 30, 0.42);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45), inset 1px 1px 0 0 rgba(255, 255, 255, 0.16), inset -1px -1px 0 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.45s ease, translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.elementor .b-team-reveal > * {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.45s ease, translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.elementor .b-team-reveal .bx-i { transform: none !important; }   /* not part of the scroll entrance */
.elementor .b-team-bio { margin: 0; }

/* round icon buttons */
.elementor .b-team-icon {
  position: relative;
  display: block;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background-color 0.3s ease, border-color 0.3s ease, scale 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.elementor .b-team-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background-color: var(--bronn-white);
  -webkit-mask: var(--b-icon) center / contain no-repeat;
  mask: var(--b-icon) center / contain no-repeat;
}
.elementor .b-team-mail { --b-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Crect x=%273%27 y=%275%27 width=%2718%27 height=%2714%27 rx=%272.5%27/%3E%3Cpath d=%27m3.5 7 8.5 6 8.5-6%27/%3E%3C/svg%3E"); }
.elementor .b-team-linkedin { --b-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9.75h4v11H3zM9.5 9.75h3.8v1.6h.05c.53-1 1.83-2.05 3.77-2.05 4.03 0 4.78 2.65 4.78 6.1v5.35h-4v-4.75c0-1.13-.02-2.6-1.58-2.6-1.59 0-1.83 1.24-1.83 2.52v4.83h-4z%27/%3E%3C/svg%3E"); }
.elementor .b-team-linkedin::before { width: 17px; height: 17px; }
.elementor .b-team-icon:focus-visible { outline: 2px solid var(--bronn-white); outline-offset: 2px; }
.elementor .b-sr-only { clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* the arrow on the card */
.elementor .e-con:has(> .b-photo-team) > .e-con > a.e-con { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

@media (hover: hover) and (pointer: fine) {
  .elementor .e-con:has(> .b-photo-team):hover .b-photo-team::before { scale: 1.06; }
  .elementor .e-con:has(> .b-photo-team):hover .b-photo-team::after { opacity: 1; }
  .elementor .e-con:has(> .b-photo-team):hover .b-team-reveal { opacity: 1; translate: 0 0; transition-delay: 0.05s; }
  .elementor .e-con:has(> .b-photo-team):hover .b-team-reveal > * { opacity: 1; translate: 0 0; }
  .elementor .e-con:has(> .b-photo-team):hover .b-team-reveal > :nth-child(1) { transition-delay: 0.15s; }
  .elementor .e-con:has(> .b-photo-team):hover .b-team-reveal > :nth-child(2) { transition-delay: 0.24s; }
  .elementor .e-con:has(> .b-photo-team):hover > .e-con > a.e-con { transform: rotateZ(-135deg) !important; }
  .elementor .b-team-icon:hover { background-color: var(--bronn-signal-orange); border-color: var(--bronn-signal-orange); scale: 1.06; }
}
/* keyboard: tabbing to an icon opens the panel too */
.elementor .b-photo-team:focus-within .b-team-reveal,
.elementor .b-photo-team:focus-within .b-team-reveal > * { opacity: 1; translate: 0 0; }

@media (hover: none) {
  .elementor .b-team-reveal { opacity: 1; translate: 0 0; right: auto; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .elementor .b-team-reveal > * { opacity: 1; translate: 0 0; }
  .elementor .b-team-bio { display: none; }
  .elementor .b-team-icon { background-color: rgba(33, 32, 30, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .elementor .b-photo-team::before { transition: none; }
  .elementor .b-team-reveal, .elementor .b-team-reveal > * { translate: 0 0 !important; }
}
/* Bronn V2 - while pinned, the timeline block (about 230px tall) sits in the vertical middle of the screen.
   No extra height, so there is no empty space above it before it pins. Tablet + desktop only. */
@supports (animation-timeline: view()) {
  @media (min-width: 768px) {
    .elementor .b-journey .b-journey-sticky { top: max(100px, calc(50vh - 115px)) !important; }
  }
  @media (min-width: 768px) and (max-width: 1024px) {
    .elementor .b-journey .b-journey-sticky { top: max(100px, calc(50vh - 150px)) !important; }
  }
}

/* Bronn V2 - team cards with 4 in a row: on screens up to 1600px the photos are smaller,
   so the hover panel gets tighter spacing, smaller text and a line limit, and always fits in the photo. */
@media (min-width: 1025px) and (max-width: 1600px) {
  .elementor .b-team-reveal {
    inset-inline-start: 10px !important;
    inset-inline-end: 10px !important;
    inset-block-end: 10px !important;
    inset-block-start: auto !important;
    height: auto !important;
    max-height: calc(100% - 20px);
    overflow: hidden;
    padding: 14px !important;
    gap: 10px !important;
  }
  .elementor .b-team-bio {
    font-size: clamp(13px, 1.05vw, 15px) !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
  }
  .elementor .b-team-icon { width: 36px !important; height: 36px !important; min-width: 36px !important; }
  .elementor .b-team-icon::before { width: 16px; height: 16px; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .elementor .b-team-bio { -webkit-line-clamp: 6; }
}/* End custom CSS */