.tmbsb-component {
  width: 100%;
  container-name: tmbsb;
  container-type: inline-size;
}

.tm-study-bridge,
.tm-study-bridge * {
  box-sizing: border-box;
}

.tm-study-bridge {
  --tmbsb-ink: #202a32;
  --tmbsb-navy: #31577e;
  --tmbsb-navy-dark: #263f59;
  --tmbsb-blue-soft: #b8d6e9;
  --tmbsb-paper: #f6f8f9;
  --tmbsb-paper-blue: #e5f0f6;
  --tmbsb-line: rgba(49, 87, 126, 0.2);
  --tmbsb-portrait-size: 190px;
  --tmbsb-portrait-y: 0px;
  --tmbsb-character-panel-height: 780px;
  --tmbsb-character-height: 728px;
  --tmbsb-character-x: 60px;
  --tmbsb-character-y: 0px;
  --tmbsb-ship-panel-height: 780px;
  --tmbsb-ship-width: 166%;
  --tmbsb-ship-x: -80px;
  --tmbsb-ship-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: clamp(78px, 8vw, 126px) 24px 0;
  background: var(--tmbsb-paper);
  color: var(--tmbsb-ink);
  font-family: "Barlow", Arial, sans-serif;
}

.tm-study-bridge::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(49, 87, 126, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 87, 126, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
}

.tm-study-bridge::after {
  position: absolute;
  z-index: -1;
  top: -180px;
  left: -170px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(49, 87, 126, 0.13);
  border-radius: 48% 52% 46% 54%;
  content: "";
  transform: rotate(18deg);
}

.tm-study-bridge img {
  display: block;
  max-width: 100%;
}

.tm-study-bridge .tmb-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.tm-study-bridge .tmb-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding: 0 clamp(12px, 2vw, 28px) clamp(62px, 7vw, 98px);
}

.tm-study-bridge .tmb-kicker,
.tm-study-bridge .tmb-eyebrow,
.tm-study-bridge .tmb-art-label,
.tm-study-bridge figcaption,
.tm-study-bridge .tmb-handoff {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.tm-study-bridge .tmb-kicker {
  margin: 0 0 19px;
  color: var(--tmbsb-navy);
  font-size: 13px;
}

.tm-study-bridge .tmb-kicker span {
  display: inline-block;
  padding: 7px 13px 8px;
  border: 1px solid rgba(49, 87, 126, 0.5);
  background: rgba(246, 248, 249, 0.82);
  box-shadow: 5px 5px 0 rgba(184, 214, 233, 0.32);
  transform: rotate(-0.7deg);
}

.tm-study-bridge h2,
.tm-study-bridge h3,
.tm-study-bridge p,
.tm-study-bridge figure {
  margin-top: 0;
}

.tm-study-bridge h2 {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--tmbsb-navy-dark);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(54px, 6.2vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.91;
}

.tm-study-bridge h2 strong {
  position: relative;
  display: block;
  color: var(--tmbsb-navy);
  font-weight: 700;
}

.tm-study-bridge h2 strong::after {
  position: absolute;
  right: 2%;
  bottom: -7px;
  left: 0;
  border-top: 2px solid rgba(49, 87, 126, 0.46);
  content: "";
  transform: rotate(-0.7deg);
}

.tm-study-bridge .tmb-guide {
  position: relative;
  display: grid;
  grid-template-columns: min(var(--tmbsb-portrait-size), 35%) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.tm-study-bridge .tmb-guide::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -18px;
  width: 74%;
  border-top: 1px solid rgba(49, 87, 126, 0.24);
  content: "";
  transform: rotate(2deg);
}

.tm-study-bridge .tmb-guide-without-portrait {
  grid-template-columns: 1fr;
}

.tm-study-bridge .tmb-portrait-stage {
  width: 100%;
  transform: translateY(var(--tmbsb-portrait-y));
}

.tm-study-bridge .tmb-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid rgba(49, 87, 126, 0.34);
  border-radius: 48% 52% 50% 50%;
  background: #fff;
  box-shadow: 10px 12px 0 rgba(184, 214, 233, 0.45);
  transform: rotate(-2deg);
}

.tm-study-bridge .tmb-portrait-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.tm-study-bridge .tmb-portrait-mark {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 42%;
  width: 48px;
  height: 23px;
  background: rgba(184, 214, 233, 0.86);
  transform: rotate(4deg);
}

.tm-study-bridge .tmb-guide-copy {
  position: relative;
  padding: 21px 19px 17px;
  background: rgba(246, 248, 249, 0.88);
}

.tm-study-bridge .tmb-quote {
  margin-bottom: 13px;
  color: var(--tmbsb-navy-dark);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(27px, 2.5vw, 37px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.96;
}

.tm-study-bridge .tmb-guide-copy > p:last-child {
  margin-bottom: 0;
  color: #526779;
  font-size: 16px;
  line-height: 1.55;
}

.tm-study-bridge .tmb-studio {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.18fr) minmax(0, 1.08fr);
  min-height: max(var(--tmbsb-character-panel-height), var(--tmbsb-ship-panel-height));
  border-top: 2px solid var(--tmbsb-navy);
  border-bottom: 1px solid var(--tmbsb-line);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 22px 60px rgba(38, 63, 89, 0.08);
}

.tm-study-bridge .tmb-art {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 24px 22px 18px;
  overflow: hidden;
}

.tm-study-bridge .tmb-art-character {
  min-height: var(--tmbsb-character-panel-height);
  background: var(--tmbsb-navy-dark);
  color: #fff;
}

.tm-study-bridge .tmb-art-character figcaption {
  color: #fff;
  opacity: 0.92;
}

.tm-study-bridge .tmb-art-character::after,
.tm-study-bridge .tmb-art-ship::after {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

.tm-study-bridge .tmb-art-character::after {
  right: -170px;
  bottom: -145px;
  width: 420px;
  height: 340px;
}

.tm-study-bridge .tmb-art-ship::after {
  top: 90px;
  left: -160px;
  width: 390px;
  height: 310px;
  color: var(--tmbsb-navy);
}

.tm-study-bridge .tmb-art-label {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}

.tm-study-bridge .tmb-art-label i {
  width: 42px;
  border-top: 1px solid currentColor;
  opacity: 0.38;
  transform: rotate(-2deg);
}

.tm-study-bridge .tmb-art-label strong {
  font-weight: 600;
  opacity: 0.68;
}

.tm-study-bridge .tmb-art-media {
  z-index: 4;
  pointer-events: none;
  will-change: transform;
}

.tm-study-bridge .tmb-art-media img {
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

.tm-study-bridge .tmb-art-media-character {
  position: absolute;
  right: 0;
  bottom: 52px;
  height: var(--tmbsb-character-height);
  transform: translate(var(--tmbsb-character-x), var(--tmbsb-character-y));
}

.tm-study-bridge .tmb-art-media-character img {
  width: auto;
  height: 100%;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.18));
}

.tm-study-bridge .tmb-art-ship {
  min-height: var(--tmbsb-ship-panel-height);
  background: var(--tmbsb-paper-blue);
  color: var(--tmbsb-navy);
}

.tm-study-bridge .tmb-art-media-ship {
  position: absolute;
  bottom: 74px;
  left: 0;
  width: var(--tmbsb-ship-width);
  transform: translate(var(--tmbsb-ship-x), var(--tmbsb-ship-y));
}

.tm-study-bridge .tmb-art-media-ship img {
  filter: drop-shadow(0 18px 15px rgba(38, 63, 89, 0.13));
}

.tm-study-bridge figcaption {
  position: relative;
  z-index: 6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid currentColor;
  font-size: 11px;
  opacity: 0.72;
}

.tm-study-bridge .tmb-copy-stack {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr 1fr;
  background: var(--tmbsb-paper);
}

.tm-study-bridge .tmb-copy-stack article {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4vw, 54px);
}

.tm-study-bridge .tmb-copy-stack article + article {
  border-top: 1px solid var(--tmbsb-line);
}

.tm-study-bridge .tmb-copy-stack article::after {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 54px;
  border-top: 1px solid rgba(49, 87, 126, 0.35);
  content: "";
  transform: rotate(-2deg);
}

.tm-study-bridge .tmb-index {
  position: absolute;
  top: 22px;
  right: 25px;
  color: rgba(49, 87, 126, 0.38);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tm-study-bridge .tmb-eyebrow {
  margin-bottom: 8px;
  color: var(--tmbsb-navy);
  font-size: 12px;
}

.tm-study-bridge h3 {
  margin-bottom: 16px;
  color: var(--tmbsb-navy-dark);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tm-study-bridge .tmb-copy-stack article > p:not(.tmb-eyebrow) {
  margin-bottom: 10px;
  color: #526779;
  font-size: 16px;
  line-height: 1.52;
}

.tm-study-bridge .tmb-copy-stack article > p:last-of-type {
  margin-bottom: 0;
}

.tm-study-bridge .tmb-handoff {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #637889;
  font-size: 13px;
}

.tm-study-bridge .tmb-handoff::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: min(33vw, 560px);
  background: #e7f0f5;
  clip-path: polygon(0 0, 59% 0, 82% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.tm-study-bridge .tmb-handoff i {
  width: 78px;
  border-top: 1px solid rgba(49, 87, 126, 0.36);
  transform: rotate(-1deg);
}

.tm-study-bridge .tmb-handoff strong {
  color: var(--tmbsb-navy);
  font-weight: 700;
}

@media (min-width: 1025px) {
  .tm-study-bridge .tmb-art {
    overflow: visible;
  }

  .tm-study-bridge .tmb-copy-stack article {
    padding-right: clamp(88px, 7vw, 104px);
    padding-left: clamp(88px, 7vw, 104px);
  }

  .tm-study-bridge .tmb-copy-stack article > * {
    position: relative;
    z-index: 5;
  }
}

@media (max-width: 1024px) {
  /*
   * Elementor can stretch a widget to the minimum height of its parent while
   * switching responsive previews. Keep this widget fitted to its content so
   * no empty white area remains after the handoff block.
   */
  .elementor-widget-tmbsb-study-bridge {
    align-self: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }

  .elementor-widget-tmbsb-study-bridge > .elementor-widget-container,
  .elementor-widget-tmbsb-study-bridge .tmbsb-component,
  .elementor-widget-tmbsb-study-bridge .tm-study-bridge {
    height: auto !important;
    min-height: 0 !important;
  }

  .e-con:has(> .elementor-widget-tmbsb-study-bridge),
  .e-con-inner:has(> .elementor-widget-tmbsb-study-bridge) {
    --min-height: 0px !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .tm-study-bridge {
    --tmbsb-portrait-size: 160px;
    --tmbsb-character-panel-height: 670px;
    --tmbsb-character-height: 535px;
    --tmbsb-character-x: 0px;
    --tmbsb-character-y: 0px;
    --tmbsb-ship-panel-height: 480px;
    --tmbsb-ship-width: 100%;
    --tmbsb-ship-x: 0px;
    --tmbsb-ship-y: 0px;
  }

  .tm-study-bridge .tmb-header {
    grid-template-columns: 1fr;
  }

  .tm-study-bridge .tmb-guide {
    width: min(100%, 680px);
  }

  .tm-study-bridge .tmb-studio {
    width: 100%;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    min-height: 0;
  }

  .tm-study-bridge .tmb-art-character {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
  }

  .tm-study-bridge .tmb-copy-stack {
    display: contents;
  }

  .tm-study-bridge .tmb-copy-stack article {
    grid-column: 2;
    min-width: 0;
    background: var(--tmbsb-paper);
  }

  .tm-study-bridge .tmb-copy-stack article:first-child {
    grid-row: 1;
  }

  .tm-study-bridge .tmb-copy-stack article:last-child {
    grid-row: 2;
  }

  .tm-study-bridge .tmb-art-media-character,
  .tm-study-bridge .tmb-art-media-ship {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: auto auto 0;
  }

  .tm-study-bridge .tmb-art-media-character {
    height: var(--tmbsb-character-height);
  }

  .tm-study-bridge .tmb-art-media-ship {
    width: var(--tmbsb-ship-width);
  }

  .tm-study-bridge .tmb-art-ship {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .tm-study-bridge {
    --tmbsb-portrait-size: 124px;
    --tmbsb-character-panel-height: 520px;
    --tmbsb-character-height: 480px;
    --tmbsb-ship-panel-height: 520px;
    --tmbsb-ship-width: 110%;
    padding: 64px 18px 0;
  }

  .tm-study-bridge .tmb-header {
    gap: 42px;
    padding: 0 0 54px;
  }

  .tm-study-bridge h2 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .tm-study-bridge .tmb-guide {
    grid-template-columns: min(var(--tmbsb-portrait-size), 35%) minmax(0, 1fr);
    gap: 17px;
  }

  .tm-study-bridge .tmb-guide.tmb-guide-without-portrait {
    grid-template-columns: 1fr;
  }

  .tm-study-bridge .tmb-guide-copy {
    padding: 16px 8px 15px 16px;
  }

  .tm-study-bridge .tmb-guide-copy > p:last-child {
    font-size: 15px;
  }

  .tm-study-bridge .tmb-studio {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-study-bridge .tmb-art-character {
    grid-row: 1;
    grid-column: 1;
  }

  .tm-study-bridge .tmb-copy-stack {
    display: grid;
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  .tm-study-bridge .tmb-copy-stack article {
    grid-row: auto;
    grid-column: auto;
    padding: 52px 28px 38px;
  }

  .tm-study-bridge .tmb-art-ship {
    grid-row: 3;
    grid-column: 1;
    width: 100%;
  }

  .tm-study-bridge .tmb-handoff {
    min-height: 124px;
    flex-wrap: wrap;
    gap: 9px 14px;
    padding: 28px 16px;
    text-align: center;
  }

  .tm-study-bridge .tmb-handoff i {
    width: 42px;
  }
}

/*
 * Container queries keep the composition usable when the widget is placed
 * inside a narrow Elementor column on an otherwise wide screen. The viewport
 * media queries above remain as a fallback for older browsers.
 */
@container tmbsb (max-width: 1024px) {
  .tm-study-bridge .tmb-header {
    grid-template-columns: 1fr;
  }

  .tm-study-bridge .tmb-guide {
    width: min(100%, 680px);
  }

  .tm-study-bridge .tmb-studio {
    width: 100%;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    min-height: 0;
  }

  .tm-study-bridge .tmb-art-character {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
  }

  .tm-study-bridge .tmb-copy-stack {
    display: contents;
  }

  .tm-study-bridge .tmb-copy-stack article {
    grid-column: 2;
    min-width: 0;
    background: var(--tmbsb-paper);
  }

  .tm-study-bridge .tmb-copy-stack article:first-child {
    grid-row: 1;
  }

  .tm-study-bridge .tmb-copy-stack article:last-child {
    grid-row: 2;
  }

  .tm-study-bridge .tmb-art {
    overflow: hidden;
  }

  .tm-study-bridge .tmb-art-media-character,
  .tm-study-bridge .tmb-art-media-ship {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: auto auto 0;
  }

  .tm-study-bridge .tmb-art-media-character {
    height: var(--tmbsb-character-height);
  }

  .tm-study-bridge .tmb-art-media-ship {
    width: var(--tmbsb-ship-width);
  }

  .tm-study-bridge .tmb-art-ship {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
  }
}

@container tmbsb (max-width: 767px) {
  .tm-study-bridge {
    padding: 64px 18px 0;
  }

  .tm-study-bridge .tmb-header {
    gap: 42px;
    padding: 0 0 54px;
  }

  .tm-study-bridge h2 {
    font-size: clamp(48px, 15cqw, 66px);
  }

  .tm-study-bridge .tmb-guide {
    grid-template-columns: min(var(--tmbsb-portrait-size), 35%) minmax(0, 1fr);
    gap: 17px;
  }

  .tm-study-bridge .tmb-guide.tmb-guide-without-portrait {
    grid-template-columns: 1fr;
  }

  .tm-study-bridge .tmb-guide-copy {
    padding: 16px 8px 15px 16px;
  }

  .tm-study-bridge .tmb-guide-copy > p:last-child {
    font-size: 15px;
  }

  .tm-study-bridge .tmb-studio {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-study-bridge .tmb-art-character {
    grid-row: 1;
    grid-column: 1;
  }

  .tm-study-bridge .tmb-copy-stack {
    display: grid;
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  .tm-study-bridge .tmb-copy-stack article {
    grid-row: auto;
    grid-column: auto;
    padding: 52px 28px 38px;
  }

  .tm-study-bridge .tmb-art-ship {
    grid-row: 3;
    grid-column: 1;
    width: 100%;
  }

  .tm-study-bridge .tmb-handoff {
    min-height: 124px;
    flex-wrap: wrap;
    gap: 9px 14px;
    padding: 28px 16px;
    text-align: center;
  }

  .tm-study-bridge .tmb-handoff i {
    width: 42px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tm-study-bridge .tmb-art-media img {
    animation: tmbsb-art-arrive 800ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
  }

  .tm-study-bridge .tmb-art-media-ship img {
    animation-delay: 120ms;
  }
}

@keyframes tmbsb-art-arrive {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
