/* Local edits can be added here without changing the original Elementor CSS. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .elementor-element { animation-duration: 0.01ms !important; }
}
:where(a, button, video):focus-visible {
  outline: 2px solid #c8a050;
  outline-offset: 4px;
}

/* Minimal profile: role followed by two plain-text specialization rows. */
.dl-profile-info {
  margin: 0;
  min-width: 0;
  font-family: "DM Sans", sans-serif;
  text-align: left;
}
.dl-profile-info .dl-profile-role-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.dl-profile-info .dl-profile-role {
  margin: 0;
  color: #c8a050;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
.dl-profile-info .dl-profile-specializations-label {
  margin: 24px 0 10px;
  color: #a4a4af;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dl-profile-info .dl-profile-specializations {
  margin: 0;
}
.dl-profile-info .dl-profile-specializations ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl-profile-info .dl-profile-specializations ul + ul {
  margin-top: 4px;
}
.dl-profile-info .dl-profile-specializations li {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #dedee3;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}
.dl-profile-info .dl-profile-specializations li:not(:last-child)::after {
  content: "•";
  display: inline-block;
  margin: 0 9px;
  color: #c8a050;
}

/* Closer portfolio tiles, preserving the existing responsive column counts. */
.elementor-11 .elementor-element.elementor-element-07fb904 {
  --grid-row-gap: 6px;
  --grid-column-gap: 6px;
}

/* Company-first cards, with natural height and collapsible descriptions. */
.dl-experience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  font-family: "DM Sans", sans-serif;
}
.dl-experience-entry {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #373b43;
  border-radius: 10px;
  background: #14171c;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.dl-experience-entry .dl-experience-company {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid #373b43;
  background: rgba(200, 160, 80, 0.12);
  color: #d7af59;
  font: 700 1.125rem/1.3 "DM Sans", sans-serif;
}
.dl-experience-body {
  padding: 14px 18px 12px;
}
.dl-experience-entry .dl-experience-title {
  display: block;
  margin: 0 0 4px;
  color: #e8e4dc;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}
.dl-experience-title::before {
  content: none;
}
.dl-experience-entry .dl-experience-meta {
  margin: 0 0 14px;
  color: #a4a4af;
  font-size: 0.875rem;
  line-height: 1.5;
}
.dl-experience-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  max-height: 6em;
  overflow: hidden;
  margin-left: 0;
  color: #a4a4af;
  font-size: 1rem;
  line-height: 1.5;
}
.dl-experience-description p {
  margin: 0 0 0.75em;
  font: inherit;
  color: inherit;
}
.dl-experience-description p:last-child { margin-bottom: 0; }
.dl-experience-description.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: none;
  overflow: visible;
}
.dl-experience-entry .dl-experience-toggle {
  display: inline-block;
  margin: 8px 0 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c8a050;
  font: 500 0.875rem/1.5 "DM Sans", sans-serif;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.dl-experience-entry .dl-experience-toggle:hover {
  color: #e3bf77;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Add one existing gap below the avatar, so only the photo/name gap doubles. */
.profile-header {
  --dl-avatar-row-gap: var(--row-gap, 12px);
  --dl-avatar-column-gap: var(--column-gap, 12px);
}
.elementor .elementor-element.elementor-element-1b7a7f68,
.elementor .elementor-element.elementor-element-38a5822b {
  margin-bottom: var(--dl-avatar-row-gap);
}
.elementor .elementor-element.elementor-element-4b85a3d1 {
  margin-right: var(--dl-avatar-column-gap);
}
.dl-avatar-home {
  display: inline-flex;
  border-radius: 50%;
  line-height: 0;
  transform-origin: center;
  transition: transform 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .dl-avatar-home:hover { transform: scale(1.12); }
}
.dl-avatar-home:focus-visible { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .dl-avatar-home { transition: none; }
}

/* Collapsible sidebar content retains the original typography and icons. */
.dl-sidebar-text:not(.is-expanded) .elementor-heading-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  max-height: 6.8em;
  overflow: hidden;
}
.dl-sidebar-items:not(.is-expanded) .elementor-icon-list-items > li:nth-child(n+4) {
  display: none;
}
.dl-sidebar-items:not(.is-expanded) .elementor-icon-list-items > li:nth-child(3)::after {
  display: none;
}
.elementor .dl-sidebar-toggle {
  align-self: flex-start;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c8a050;
  font: 500 0.875rem/1.5 "DM Sans", sans-serif;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.elementor .dl-sidebar-toggle:hover {
  color: #e3bf77;
  text-decoration: underline;
  text-underline-offset: 3px;
}
