:root {
  --expertise-panel-collapsed-w: 78px;
  --expertise-panel-gap: 16px;
  --expertise-panel-pad: 40px;
}

@media (max-width: 1280px) {
  :root {
    --expertise-panel-collapsed-w: 68px;
    --expertise-panel-gap: 12px;
    --expertise-panel-pad: 30px;
  }
}

@media (max-width: 1024px) {
  :root {
    --expertise-panel-collapsed-w: 58px;
    --expertise-panel-gap: 10px;
    --expertise-panel-pad: 24px;
  }
}

.expertise {
  position: relative;
  width: 100%;
  background-color: var(--color-bg-dark, #000000);
  color: var(--color-text-primary, #ffffff);
  padding: 80px 0;
  overflow: hidden;
}

@media (min-width: 992px) {
  .expertise {
    padding: 60px 0;
  }
}

.expertise_container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 992px) {
  .expertise_container {
    padding: 0 60px;
  }
}

.expertise_header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 20px);
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .expertise_header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 50px;
  }
}

.expertise_header-left {
  flex: 1;
  max-width: 654px;
}

.expertise_header-right {
  flex: 1;
  max-width: 420px;
}

.expertise_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-primary, #ffffff);
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.expertise_badge-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .expertise_badge-icon {
    width: 16px;
    height: 16px;
  }

  .expertise_badge {
    font-size: 12px;
    letter-spacing: 2.4px;
  }
}

.expertise_title {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.025em;
  color: var(--color-text-primary, #ffffff);
  margin: 0;
}

.expertise_desc {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 0;
}

.expertise_accordion {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: var(--expertise-panel-gap, 16px);
  width: 100%;
  height: 584px;
}

.expertise_panel {
  position: relative;
  border-radius: 8px;
  background-color: #0b0f17;
  cursor: pointer;
  user-select: none;
  outline: none;
  z-index: 2;
  /* Smooth flex transition without auto width jumping */
  flex: 0 0 var(--expertise-panel-collapsed-w, 78px);
  max-width: var(--expertise-panel-collapsed-w, 78px);
  min-width: var(--expertise-panel-collapsed-w, 78px);
  overflow: hidden;
  /* Critical: prevents text wrapping/breaking during collapse */
  transition: flex 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.expertise_panel:focus-visible {
  border-color: #00A8D5;
  box-shadow: 0 0 0 2px rgba(0, 168, 213, 0.5);
}

/* Active State (Expanded) */
.expertise_panel.is-active {
  flex: 1 1 0%;
  max-width: 100%;
  min-width: 0;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

/* Hover on collapsed panel */
.expertise_panel:not(.is-active):hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.expertise_panel:not(.is-active):hover .expertise_collapsed-btn {
  transform: translateX(-50%) rotate(90deg) scale(1.1);
}

.expertise_panel:not(.is-active):hover .expertise_media-img {
  transform: scale(1.08);
}

.expertise_media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  border-radius: 8px;
  overflow: hidden;
}

.expertise_media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}

.expertise_panel.is-active .expertise_media-img {
  transform: scale(1.02);
  filter: none;
}

.expertise_panel:not(.is-active) .expertise_media-img {
  transform: scale(1.05);
  filter: blur(8px) brightness(0.65);
}

/* Deep cinematic gradient overlay for text readability */
.expertise_media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 29, 40, 0.00) 0%, rgba(30, 29, 40, 0.56) 100%);
  z-index: 2;
}

/* Atmospheric frosted blur tint for collapsed state */
.expertise_media-frosted {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 29, 40, 0.00) 0%, rgba(30, 29, 40, 0.56) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.expertise_panel.is-active .expertise_media-frosted {
  opacity: 0;
  pointer-events: none;
}

.expertise_tag {
  position: absolute;
  /* Position the icon center at top-right of the panel */
  top: 30px;
  right: 25px;
  display: inline-flex;
  align-items: center;
  /* Icon is last in DOM order (row-reverse for collapsed so icon is on right) */
  flex-direction: row;
  justify-content: flex-end;
  gap: 10px;
  background: transparent;
  border: none;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
  z-index: 6;
  /*
   * Eleks technique:
   * The icon is at the far right of the flex row (last child).
   * We pin the transform-origin to the center of the icon (right edge - 20px, 20px).
   * Rotating -90deg swings the label downward (in rotated space it reads vertically).
   * On expand, rotate back to 0deg — label smoothly unfurls to the left of the icon.
   */
  transform-origin: calc(100% - 20px) 20px;
  transform: rotate(-90deg);
  transition:
    transform 0.65s cubic-bezier(0.4, 0.2, 0.4, 1),
    top 0.65s cubic-bezier(0.4, 0.2, 0.4, 1),
    right 0.65s cubic-bezier(0.4, 0.2, 0.4, 1);
  will-change: transform, top, right;
}

.expertise_tag-label {
  display: inline-block;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
  /*
   * Compensate for the rotation so the label text reads correctly
   * in collapsed state (bottom-to-top, like Eleks). The label is to
   * the LEFT of the icon in the flex row; after -90deg rotation the
   * flex row becomes vertical and the label reads bottom-to-top.
   */
}

.expertise_tag-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expertise_tag-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Hover state on collapsed card — lift upward (in rotated context, this moves the tag visually up) */
.expertise_panel:not(.is-active):hover .expertise_tag {
  top: 22px;
}

/* Expanded Active State: Unrotate — label sweeps to the left of the icon */
.expertise_panel.is-active .expertise_tag {
  top: 36px;
  right: var(--expertise-panel-pad, 40px);
  transform: rotate(0deg);
}

.expertise_collapsed-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 5;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.4s cubic-bezier(0.4, 0.2, 0.4, 1);
}

.expertise_collapsed-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

.expertise_panel.is-active .expertise_collapsed-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.expertise_expanded {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px var(--expertise-panel-pad, 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.2s ease 0s, visibility 0.2s ease 0s;
}

.expertise_panel.is-active .expertise_expanded {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease 0.15s, visibility 0.35s ease 0.15s;
}

.expertise_content {
  width: 480px;
  max-width: 100%;
  min-width: 380px;
  flex-shrink: 0;
  z-index: 5;
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.expertise_panel.is-active .expertise_content {
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.4, 0.2, 0.4, 1) 0.18s;
}

.expertise_headline {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: clamp(2rem, 2.7vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
}

.expertise_paragraph {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 24px 0;
  font-weight: 400;
}

.expertise_cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise_cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.expertise_cta-label {
  display: inline-flex;
  flex-direction: column;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  position: relative;
  pointer-events: none;
}

.expertise_cta-label .main-btn_text,
.expertise_cta-text {
  display: block;
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  transition: transform 0.38s ease-in-out;
  will-change: transform;
}

.expertise_cta:hover .main-btn_text,
.expertise_cta:hover .expertise_cta-text {
  transform: translateY(-100%);
}

.expertise_cta-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0088FF;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  flex-shrink: 0;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

.expertise_cta:hover .expertise_cta-icon {
  background: #0099ff;
}

.expertise_cta-icon img,
.expertise_cta-icon svg {
  display: block;
  position: absolute;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

.expertise_cta-icon img:not(.main-btn_icon-copy),
.expertise_cta-icon svg:not(.main-btn_icon-copy) {
  transform: translate(0, 0);
  opacity: 1;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.expertise_cta-icon .main-btn_icon-copy {
  transform: translate(-200%, 200%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.expertise_cta:hover .expertise_cta-icon img:not(.main-btn_icon-copy),
.expertise_cta:hover .expertise_cta-icon svg:not(.main-btn_icon-copy) {
  transform: translate(200%, -200%);
  opacity: 0;
}

.expertise_cta:hover .expertise_cta-icon .main-btn_icon-copy {
  transform: translate(0, 0);
  opacity: 1;
  transition-delay: 0.1s;
}

.expertise_case-study.is-sticky {
  position: absolute;
  bottom: 300px;
  right: 416px;
  width: 352px;
  height: 136px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  z-index: 25;
  text-decoration: none;
  cursor: pointer;
  transition: right 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.expertise_case-study.is-sticky:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.55);
}

.expertise_case-study-media {
  width: 152px;
  height: 116px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #0b0f17;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise_case-study-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise_case-study.is-sticky:hover .expertise_case-study-img {
  transform: scale(1.06);
}

.expertise_case-study-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 116px;
  padding: 6px 6px 6px 0;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise_case-study-title {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.35;
  margin: 0;
}

.expertise_case-study-title strong {
  font-weight: 700;
  color: #000000;
}

.expertise_case-study-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  transition: color 0.2s ease;
}

.expertise_case-study-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #000000;
  flex-shrink: 0;
  transition: transform 350ms ease-out;
  will-change: transform;
}

.expertise_case-study-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.expertise_case-study.is-sticky:hover .expertise_case-study-arrow {
  transform: translateX(8px);
}

/* Crossfade animation states when updating case study content */
.expertise_case-study.is-changing .expertise_case-study-media,
.expertise_case-study.is-changing .expertise_case-study-info {
  opacity: 0;
  transform: translateY(6px);
}

.expertise_progress {
  position: absolute;
  bottom: 38px;
  right: 416px;
  width: 70px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
  z-index: 25;
  pointer-events: none;
  transition: right 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise_progress-fill {
  width: 0%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  will-change: width;
}


/* Mid screens: 1024px - 1280px */
@media (max-width: 1280px) {
  .expertise_accordion {
    height: 540px;
    gap: 12px;
  }

  .expertise_tag {
    top: 26px;
    right: 20px;
  }

  .expertise_panel.is-active .expertise_tag {
    top: 30px;
    right: 30px;
  }

  .expertise_content {
    width: 420px;
    min-width: 320px;
  }

  .expertise_case-study.is-sticky {
    bottom: 60px;
    width: 310px;
    height: 126px;
    gap: 12px;
  }

  .expertise_case-study-media {
    width: 130px;
    height: 106px;
  }

  .expertise_case-study-info {
    height: 106px;
  }

  .expertise_case-study-title {
    font-size: 13px;
  }

  .expertise_progress {
    bottom: 34px;
  }
}

/* Small Laptops & Tablets (Landscape): 861px - 1024px */
@media (max-width: 1024px) {
  .expertise_accordion {
    height: 520px;
    gap: 10px;
  }

  .expertise_tag {
    top: 22px;
    right: 15px;
    font-size: 14px;
  }

  .expertise_tag-label {
    font-size: 14px;
  }

  .expertise_panel.is-active .expertise_tag {
    top: 26px;
    right: 24px;
  }

  .expertise_collapsed-btn {
    bottom: 24px;
  }

  .expertise_content {
    width: 360px;
    min-width: 280px;
  }

  .expertise_headline {
    font-size: 1.85rem;
  }

  .expertise_paragraph {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .expertise_case-study.is-sticky {
    width: 270px;
    height: 110px;
    bottom: 56px;
    padding: 8px;
  }

  .expertise_case-study-media {
    width: 100px;
    height: 94px;
  }

  .expertise_case-study-info {
    height: 94px;
  }

  .expertise_case-study-title {
    font-size: 12px;
    line-height: 1.3;
  }

  .expertise_progress {
    bottom: 30px;
  }
}

/* Desktop Hide Mobile Footer Controls */
.expertise_mobile-footer {
  display: none;
}

@media (max-width: 860px) {
  .expertise {
    padding: 36px 0 80 0;
    overflow-x: clip;
    overflow-y: visible;
  }

  .expertise_container {
    padding: 0 0 0 24px;
  }

  .expertise_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding-right: 24px;
  }

  .expertise_header-right {
    max-width: 100%;
  }

  .expertise_title {
    font-size: clamp(1.75rem, 5.2vw, 2.2rem);
    line-height: 1.2;
  }

  .expertise_desc {
    font-size: 0.925rem;
    line-height: 1.5;
  }


  /* Carousel viewport — clips overflow, no scroll
     Left aligned with container padding (16px), right bleeds to edge */
  .expertise_accordion {
    display: block;
    height: auto;
    overflow: hidden;
    position: relative;
    margin-left: 0;
    margin-right: -16px;
    padding: 4px 0 20px 0;
  }

  /* JS injects this track div containing all panels */
  .expertise_mobile-track {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding-left: 0;
    padding-right: 36px;
    will-change: transform;
    transition: transform 0.44s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
    -webkit-user-select: none;
  }

  /* Individual Card — width leaves exact 36px peek of next card on right */
  .expertise_panel {
    flex: 0 0 calc(100vw - 64px);
    width: calc(100vw - 64px);
    max-width: 420px;
    min-width: 260px;
    height: min(480px, 74svh);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #0b0f17;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .expertise_panel.is-active {
    flex: 0 0 calc(100vw - 64px);
    width: calc(100vw - 64px);
    max-width: 420px;
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  }

  /* Hide Desktop-only collapsed button & persistent desktop floating elements */
  .expertise_collapsed,
  .expertise_collapsed-btn {
    display: none !important;
  }

  .expertise_case-study.is-sticky {
    display: none !important;
  }

  .expertise_progress {
    display: none !important;
  }

  .expertise_media {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .expertise_media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
  }

  .expertise_panel:not(.is-active) .expertise_media-img {
    filter: none !important;
    transform: none !important;
    opacity: 0.65 !important;
  }

  .expertise_media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 23, 0.88) 0%, rgba(11, 15, 23, 0.35) 45%, rgba(11, 15, 23, 0.9) 100%);
  }

  .expertise_media-frosted {
    display: none !important;
  }

  /* Expanded Card Layout (Always visible and expanded on mobile) */
  .expertise_expanded {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    /*
     * Top padding must be tall enough to clear the absolute tag badge:
     * tag top(22px) + tag icon height(40px) + gap(14px) = 76px
     * Side padding 18px. Bottom padding 16px.
     */
    padding: 76px 18px 16px 18px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    z-index: 4;
  }

  /* Top Section: Tag Badge (Icon on left, Label on right) */
  .expertise_tag {
    position: absolute !important;
    top: 22px !important;
    left: 18px !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    /* On mobile the tag is horizontal: icon first, then label */
    flex-direction: row !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    pointer-events: none !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 5 !important;
  }

  .expertise_tag-label {
    font-family: var(--font-heading, 'Manrope', sans-serif);
    font-size: 16px !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #ffffff;
    transform: none !important;
    opacity: 1 !important;
  }

  .expertise_tag-icon-wrap {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .expertise_tag-icon {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
    transform: none !important;
    opacity: 1 !important;
  }

  /* Content Block — sits below the tag badge */
  .expertise_content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0;
    margin-bottom: auto;
    z-index: 5;
  }

  /*
   * Hide the headline on mobile: the .expertise_tag at the top of the card
   * already shows the industry name (e.g. "Healthcare"). Showing it again
   * inside .expertise_content creates the duplicate text issue.
   */
  .expertise_headline {
    display: none;
  }

  .expertise_paragraph {
    font-size: 14px;
    line-height: 21px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 14px 0;
    white-space: normal;
  }

  .expertise_cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
  }

  .expertise_cta-label {
    color: #ffffff;
  }

  .expertise_cta-icon {
    width: 24px;
    height: 24px;
    background: transparent;
    color: #ffffff;
  }

  /* Bottom Controls: Progress Line + Nav Buttons */
  .expertise_mobile-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
    gap: 14px;
    z-index: 10;
  }

  .expertise_mobile-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
  }

  .expertise_mobile-progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 2px;
    transition: width 0.08s linear;
  }

  .expertise_mobile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Mobile Navigation Buttons: Default state (translucent outline with white arrow) */
  .expertise_mobile-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    /* Default: transparent background, subtle border */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    /* Prevent browser from keeping :active state on touch devices */
    -webkit-appearance: none;
    appearance: none;
  }

  /* Hover only on pointer devices (mouse) — NOT touch */
  @media (hover: hover) and (pointer: fine) {
    .expertise_mobile-btn:hover {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.55);
      color: #ffffff;
    }
  }

  /*
   * Click / Active state: Solid white bg only when JS adds .is-pressed.
   * We do NOT use CSS :active alone because on touch, :active persists after
   * the finger lifts. JS adds .is-pressed on click and removes it after 200ms.
   */
  .expertise_mobile-btn.is-pressed {
    transform: scale(0.92);
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #0b0f17 !important;
  }
}

/* Extra small devices (<= 380px) */
@media (max-width: 380px) {

  .expertise_panel,
  .expertise_panel.is-active {
    flex: 0 0 calc(100vw - 56px);
    width: calc(100vw - 56px);
    height: min(470px, 74svh);
  }

  /* Keep top padding tall enough to clear the absolute tag badge on small screens */
  .expertise_expanded {
    padding: 60px 16px 14px 16px !important;
  }

  .expertise_paragraph {
    margin: 0 0 10px 0;
  }
}