/* Understone Agency — /projects component styles */
:root {
  --primary: #9047ff;
  --primary-rgb: 144, 71, 255;
  --primary-active: #7114ff;
  --primary-active-rgb: 113, 20, 255;
  --status-danger: #ff3b30;
  --status-danger-rgb: 255, 59, 48;
  --status-danger-active: #c91b11;
  --status-danger-active-rgb: 201, 27, 17;
  --status-success: #319f43;
  --status-success-rgb: 49, 159, 67;
  --background: #f5efff;
  --background-rgb: 245, 239, 255;
  --foreground: #2a1647;
  --foreground-rgb: 42, 22, 71;
  --foreground-muted: #64698b;
  --foreground-muted-rgb: 100, 105, 139;
  --border: #e2e4f0;
  --border-rgb: 226, 228, 240;
  --card: #fff;
  --card-rgb: 255, 255, 255;
  --muted: #f1f2f9;
  --muted-rgb: 241, 242, 249;
  --contrast: #000;
  --contrast-rgb: 0, 0, 0;
  --glass: #fff;
  --glass-rgb: 255, 255, 255;
  --backdrop: rgba(0, 0, 0, 0.8);
  --backdrop-rgb: 0, 0, 0;
  --btn-color: var(--color-purple-900);
}
:root[data-theme='dark'] {
  --primary: #9047ff;
  --primary-rgb: 144, 71, 255;
  --primary-active: #7114ff;
  --primary-active-rgb: 113, 20, 255;
  --status-danger: #ff3b30;
  --status-danger-rgb: 255, 59, 48;
  --status-danger-active: #c91b11;
  --status-danger-active-rgb: 201, 27, 17;
  --status-success: #319f43;
  --status-success-rgb: 49, 159, 67;
  --background: #121212;
  --background-rgb: 18, 18, 18;
  --foreground: #fff;
  --foreground-rgb: 255, 255, 255;
  --foreground-muted: #a3a6c1;
  --foreground-muted-rgb: 163, 166, 193;
  --border: #30343f;
  --border-rgb: 48, 52, 63;
  --card: #181818;
  --card-rgb: 24, 24, 24;
  --muted: #25282e;
  --muted-rgb: 37, 40, 46;
  --contrast: #fff;
  --contrast-rgb: 255, 255, 255;
  --glass: #000;
  --glass-rgb: 0, 0, 0;
  --backdrop: rgba(0, 0, 0, 0.9);
  --backdrop-rgb: 0, 0, 0;
  --btn-color: #e5e5e5;
  --btn-color-rgb: 229, 229, 229;
}

.ui,
.ui[data-v-018a63a1] {
  color: var(--color-base-white);
  opacity: 1 !important;
  position: relative;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.projects {
  min-height: 100dvh;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.projects__input {
  inset: 0;
  pointer-events: auto;
  position: fixed;
  touch-action: none;
  z-index: 0;
}

/* Projects Info HUD Card */
.p-info {
  aspect-ratio: 0.65;
  box-sizing: border-box;
  color: var(--color-base-white);
  display: flex;
  flex-direction: column;
  font-family: IBM Plex Mono, "IBM Plex Mono Fallback: Courier New", "IBM Plex Mono Fallback: Roboto Mono", monospace;
  font-size: 24px;
  gap: 6px;
  justify-content: center;
  left: 0;
  line-height: 1.15;
  opacity: 1;
  padding: 44px 60px;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 560px;
  z-index: 2;
  transition: opacity 0.3s ease;
}
@media (max-width: 1024px) {
  .p-info { display: none; }
}
.p-info__item {
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}
.p-info__item:first-child .p-info__title { grid-column: 1 / span 2; }
.p-info__item:first-child .p-info__value { grid-column: span 2 / -1; }
.p-info__item:nth-child(2) .p-info__title { grid-column: 2 / span 5; }
.p-info__item:nth-child(2) .p-info__value { grid-column: 8 / span 4; }
.p-info__item:nth-child(3) .p-info__title { grid-column: 3 / span 3; }
.p-info__item:nth-child(3) .p-info__value { grid-column: 6 / span 6; }
.p-info__item:nth-child(4) .p-info__title { grid-column: 5 / span 2; }
.p-info__item:nth-child(4) .p-info__value { grid-column: span 4 / -1; justify-self: end; }
.p-info__item:nth-child(5) .p-info__title { grid-column: 4 / span 3; }
.p-info__item:nth-child(5) .p-info__value {
  display: flex;
  flex-direction: column;
  grid-column: 7 / span 4;
  justify-self: end;
  white-space: nowrap;
}
.p-info__item:nth-child(6) .p-info__title { grid-column: 1 / span 3; }
.p-info__item:nth-child(6) .p-info__value {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  grid-column: span 4 / -1;
  justify-self: end;
  white-space: nowrap;
}

/* Projects Headline */
.p-headline {
  bottom: 1.25rem;
  color: var(--color-base-white);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  left: 3rem;
  pointer-events: none;
  position: fixed;
  z-index: 5;
}
@media (max-width: 1024px) {
  .p-headline {
    bottom: auto;
    gap: 1rem;
    left: 2rem;
    top: 2rem;
  }
}
@media (max-width: 460px) {
  .p-headline { left: 1rem; }
}
.p-headline__title {
  font-family: "Understone Serif", serif;
  font-size: 2.25rem;
  font-variation-settings: "wdth" 75, "HGHT" 100;
  font-weight: 300;
  line-height: 0.8;
  margin: 0;
  text-transform: none;
}
@media not (max-width: 640px) {
  .p-headline__title { font-size: 3.125rem; }
}
@media not (max-width: 1024px) {
  .p-headline__title { font-size: 4.5rem; }
}
.p-headline__mask {
  display: block;
  height: 1.4em;
  height: calc(1lh + 0.4em);
  margin: -0.2em 0;
  overflow: visible clip;
  padding: 0.2em 0;
  position: relative;
}
.p-headline__line {
  display: block;
  white-space: nowrap;
  will-change: transform;
}
.p-headline__arrow {
  margin-right: 0.18em;
  transform-origin: 50% 50%;
  display: inline-block;
}
.p-headline__text {
  display: inline-block;
}
.p-headline__desc {
  font-family: IBM Plex Mono, "IBM Plex Mono Fallback: Courier New", "IBM Plex Mono Fallback: Roboto Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.15;
  text-transform: uppercase;
  width: 16.25rem;
  min-height: 2.3em;
}

/* Pagination */
.pagination {
  align-items: center;
  bottom: 1.25rem;
  display: flex;
  gap: 1rem;
  left: 50%;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%);
  z-index: 10;
}
@media (max-width: 1024px) {
  .pagination { bottom: 7.25rem; }
}
.pagination__counter {
  width: 2ch;
  font-family: IBM Plex Mono, monospace;
  font-size: 0.75rem;
  font-feature-settings: "tnum";
}
.pagination__items {
  align-items: center;
  cursor: grab;
  display: flex;
  pointer-events: auto;
  position: relative;
  touch-action: none;
  user-select: none;
}
.pagination__items.is-dragging,
.pagination__items.is-dragging .pagination__tick {
  cursor: grabbing;
}
html.is-paginating *,
html.is-paginating {
  cursor: grabbing !important;
}
.pagination__frame {
  background: #ffffff0f;
  border: 1px solid var(--color-base-white);
  border-radius: 0.375rem;
  height: 1.5rem;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}
.pagination__items.is-dragging .pagination__frame {
  opacity: 1;
}
.pagination__tick {
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  padding: 0 0.25rem;
  transition: padding 0.25s ease;
}
.pagination__tick:focus-visible {
  border-radius: 0.125rem;
  outline: 1px solid var(--color-base-white);
  outline-offset: 0.1875rem;
}
.pagination__items.is-dragging .pagination__tick {
  padding: 0 0.23125rem;
}
.pagination__tickBar {
  background: var(--color-base-white);
  border: 1px solid transparent;
  border-radius: 3px;
  box-sizing: border-box;
  height: 1rem;
  opacity: 0.35;
  transition: width 0.35s ease, height 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
  width: 1px;
}
.pagination__tick--active .pagination__tickBar {
  background: transparent;
  border-color: var(--color-base-white);
  height: 1rem;
  opacity: 1;
  width: 0.75rem;
}
.pagination__tick--accent .pagination__tickBar {
  background: transparent;
  border-color: var(--tick-accent);
  opacity: 1;
  width: 0.75rem;
}
.pagination__tick:hover .pagination__tickBar {
  opacity: 1;
}

/* Filter Dropdown */
.filter {
  bottom: 4rem;
  left: 50%;
  position: fixed;
  transform: translate(-50%);
  transition: opacity 0.13s ease 0.2s;
  z-index: 10;
}
@media (max-width: 1024px) {
  .filter { bottom: 9.5rem; }
}
.filter--open {
  opacity: 0;
  transition: opacity 0.15s ease 0s;
}
.filter--locked {
  pointer-events: none;
}
.filter__trigger {
  align-items: center;
  border-radius: var(--rounded-full);
  color: var(--color-base-white);
  cursor: pointer;
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.875rem 1.75rem;
  --gradient-opacity: 0.4;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: linear-gradient(90deg, rgba(45,37,125,var(--gradient-opacity)) 0, rgba(142,45,226,var(--gradient-opacity)) 49% 100%);
  font-family: PP Neue Montreal, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  position: relative;
  border: none;
  outline: none;
}
.filter__trigger:before {
  background: var(--btn-stroke);
  border-radius: inherit;
  content: "";
  inset: 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  position: absolute;
}
@media (max-width: 1024px) {
  .filter__trigger { padding: 0.75rem 1.5rem; }
}
.filter__trigger--active {
  --gradient-opacity: 0.7;
}
.filter__dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}
