/* Only the projects carousel is styled. The surrounding Qiolo section is kept. */
.phspc {
  --phspc-orange: #ff7900;
  --phspc-ink: #171717;
  --phspc-gap: 24px;
  width: 100%;
  min-width: 0;
  color: var(--phspc-ink);
  font-family: Heebo, Arial, sans-serif;
}
.phspc, .phspc * { box-sizing: border-box; }
.phspc .phspc__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--phspc-gap)) / 2);
  gap: var(--phspc-gap);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--phspc-orange) #e4e4e0;
  -webkit-overflow-scrolling: touch;
}
.phspc[data-phspc-ready] .phspc__track { scrollbar-width: none; padding-bottom: 0; }
.phspc[data-phspc-ready] .phspc__track::-webkit-scrollbar { display: none; }
.phspc .phspc__track:focus-visible { outline: 3px solid var(--phspc-orange); outline-offset: 5px; }
.phspc .phspc__card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 350px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #303030;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  isolation: isolate;
}
.phspc .phspc__image,
.phspc .phspc__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.phspc .phspc__placeholder { background: #303030; }
.phspc .phspc__card--portrait .phspc__image { object-fit: cover; object-position: center 65%; background: #303030; }
.phspc .phspc__link,
.phspc .phspc__link:visited {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 350px;
  padding: 24px;
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  border-radius: 0;
  background: none;
}
.phspc .phspc__link::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.24) 45%, rgba(0,0,0,.88) 100%);
  pointer-events: none;
}
.phspc .phspc__link:focus-visible { outline: 3px solid var(--phspc-orange); outline-offset: -4px; }
.phspc .phspc__place {
  position: relative;
  margin: 0 0 8px;
  padding: 0;
  color: #ff9a39 !important;
  font-family: Heebo, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.phspc .phspc__title {
  position: relative;
  width: 100%;
  margin: 0 0 17px;
  padding: 0;
  color: #fff !important;
  font-family: Heebo, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.45px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.phspc .phspc__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 42px;
  padding: 8px 0 11px;
  border-bottom: 1px solid currentColor;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  transition: color .18s ease;
}
.phspc .phspc__arrow { display: block; flex: 0 0 28px; width: 28px; height: 20px; fill: none; }
.phspc .phspc__link:hover .phspc__cta { color: #ff9a39 !important; }
.phspc .phspc__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 20px 0 0;
}
.phspc .phspc__controls[hidden] { display: none !important; }
.phspc .phspc__hint { margin: 0 auto 0 0; color: #575757; font-size: 12px; line-height: 1.6; }
.phspc [data-phspc-status] { min-width: 100px; color: var(--phspc-ink); font-size: 12px; font-weight: 500; line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
.phspc [data-phspc-prev], .phspc [data-phspc-next] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--phspc-ink);
  border-radius: 0;
  background: var(--phspc-ink);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.phspc [data-phspc-prev]::before, .phspc [data-phspc-prev]::after,
.phspc [data-phspc-next]::before, .phspc [data-phspc-next]::after { content: none; }
.phspc [data-phspc-prev] svg, .phspc [data-phspc-next] svg { display: block; width: 25px; height: 20px; fill: none; }
.phspc [data-phspc-prev]:hover:not(:disabled), .phspc [data-phspc-next]:hover:not(:disabled) { background: var(--phspc-orange); border-color: var(--phspc-orange); color: var(--phspc-ink); }
.phspc [data-phspc-prev]:disabled, .phspc [data-phspc-next]:disabled { color: #858580; background: transparent; border-color: #cfceca; cursor: default; opacity: 1; }
.phspc [data-phspc-prev]:focus-visible, .phspc [data-phspc-next]:focus-visible { outline: 3px solid var(--phspc-orange); outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .phspc .phspc__card:hover .phspc__image { transform: scale(1.025); }
  .phspc .phspc__card--portrait:hover .phspc__image { transform: none; }
}
@media (max-width: 767px) {
  .phspc { --phspc-gap: 16px; }
  .phspc .phspc__track { grid-auto-columns: 100%; }
  .phspc .phspc__card, .phspc .phspc__link { min-height: 350px; }
  .phspc .phspc__link { padding: 23px; }
  .phspc .phspc__title { font-size: 21px; }
  .phspc .phspc__controls { gap: 10px; padding-top: 17px; }
  .phspc .phspc__hint { flex-basis: 100%; margin-bottom: 0; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .phspc .phspc__track { scroll-behavior: auto; }
  .phspc .phspc__image, .phspc .phspc__cta, .phspc [data-phspc-prev], .phspc [data-phspc-next] { transition: none; }
}
