.portfolio-shell {
  --portfolio-card-width: 580px;
  --portfolio-stage-height: 465px;
  --portfolio-card-top: 48px;
  --portfolio-perspective: 1600px;
  color: #211b16;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  position: relative;
}
.portfolio-shell,
.portfolio-shell :where(article, div, a, button, span, p, h3, img) {
  box-sizing: border-box;
}
.portfolio-viewport {
  height: var(--portfolio-stage-height);
  perspective: none;
  position: relative;
}
.portfolio-stage {
  transform-style: flat;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  position: absolute;
  inset: 0;
}
.portfolio-shell[data-dragging="true"] .portfolio-stage {
  cursor: grabbing;
}
.portfolio-orbit-line {
  pointer-events: none;
  border: 1px solid #ec814c2e;
  border-radius: 50%;
  width: 84%;
  height: 50%;
  position: absolute;
  top: 37%;
  left: 8%;
  transform: translateZ(-420px) rotateX(62deg);
  box-shadow: 0 0 24px 8px #ffa36817;
}
.portfolio-card {
  top: var(--portfolio-card-top);
  left: calc(50% - var(--portfolio-card-width) / 2);
  width: var(--portfolio-card-width);
  transform-style: flat;
  will-change: transform;
  margin: 0;
  position: absolute;
}
.portfolio-card-frame {
  -webkit-backdrop-filter: blur(12px);
  color: inherit;
  background: linear-gradient(140deg, #fff5dac2, #ffbc8166 48%, #ffe6dfe0);
  border: 1px solid #ffffffdb;
  border-radius: 14px;
  padding: 0 14px;
  text-decoration: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s,
    border-color 0.45s;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 1px #ffffffe6,
    inset 0 -1px #8858271f,
    0 16px 46px #603f1c1f,
    0 2px 6px #77491e14;
}
.portfolio-card-glass {
  z-index: 2;
  border-radius: inherit;
  opacity: var(--portfolio-depth, 0);
  pointer-events: none;
  background: linear-gradient(125deg, #ffffff61, #0000 30% 69%, #ffe1a829);
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px #ffffff52;
}
.portfolio-card-eyebrow {
  color: #695b49;
  letter-spacing: 0.13em;
  height: 31px;
  opacity: var(--portfolio-caption, 1);
  justify-content: flex-start;
  align-items: center;
  padding: 0 1px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: flex;
}
.portfolio-card[data-selected="true"] .portfolio-card-frame {
  background: linear-gradient(140deg, #fff9e9fa, #ffeddef0);
}
.portfolio-card[data-selected="true"] .portfolio-project-link:focus-visible {
  transform: translateY(-4px) scale(1.012);
  box-shadow:
    inset 0 1px 1px #fffffff2,
    0 24px 62px #823c2730;
}
@media (hover: hover) {
  .portfolio-card[data-selected="true"] .portfolio-project-link:hover {
    border-color: #fffbe5;
    transform: translateY(-4px) scale(1.012);
    box-shadow:
      inset 0 1px 1px #fffffff2,
      0 24px 62px #823c2730;
  }
}
.portfolio-image-wrap {
  aspect-ratio: 2;
  clip-path: inset(0 round 5px);
  background: #f6f3ed;
  border-radius: 5px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px #1f180d14;
}
.portfolio-image-wrap:after {
  opacity: var(--portfolio-veil, 0);
  pointer-events: none;
  content: "";
  background: #faf7f0;
  position: absolute;
  inset: 0;
}
.portfolio-image {
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
}
.portfolio-image[hidden],
.portfolio-image-unavailable[hidden],
.portfolio-controls[hidden],
.portfolio-help[hidden] {
  display: none;
}
.portfolio-image-unavailable {
  color: #4a3524;
  text-align: center;
  overflow-wrap: anywhere;
  place-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  font-size: clamp(18px, 3vw, 30px);
  display: grid;
}
.portfolio-card-footer {
  min-height: 78px;
  opacity: var(--portfolio-caption, 1);
  align-items: center;
  gap: 14px;
  padding: 15px 2px 17px;
  display: flex;
}
.portfolio-card-copy {
  flex: 1 1 0;
  min-width: 0;
}
.portfolio-category {
  color: #6d5e4e;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.portfolio-title {
  color: #261e17;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  margin: 0;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.3;
}
.portfolio-project-link {
  cursor: pointer;
  text-decoration: none;
}
.portfolio-project-link:hover,
.portfolio-project-link:focus,
.portfolio-project-link:visited {
  color: inherit;
  text-decoration: none;
}
.portfolio-link-label {
  color: #613b2c;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: none;
  padding: 12px 3px 12px 12px;
  font-size: 12px;
  font-weight: 500;
}
.portfolio-controls {
  z-index: 3;
  justify-content: center;
  align-items: center;
  gap: 26px;
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  position: relative;
}
.portfolio-bracket {
  color: #392d23;
  min-width: 44px;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  background: 0 0;
  border: 0;
  flex: none;
  place-content: center;
  margin: 0;
  padding: 0;
  display: inline-grid;
}
.portfolio-bracket {
  border-radius: 12px;
  width: 58px;
  height: 64px;
  position: relative;
}
.portfolio-bracket:before {
  opacity: 0.4;
  filter: blur(5px);
  pointer-events: none;
  content: "";
  background: radial-gradient(#ff9b4a59, #ffe1691f 40%, #0000 70%);
  border-radius: 50%;
  transition:
    opacity 0.35s,
    transform 0.35s;
  position: absolute;
  inset: 13px 3px 6px;
}
.portfolio-bracket-mark {
  filter: drop-shadow(1px 5px 4px #7e301826);
  width: 42px;
  height: 54px;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s;
  display: block;
}
.portfolio-bracket-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.portfolio-bracket[data-direction="previous"] svg {
  transform: scaleX(-1);
}
.portfolio-bracket:focus-visible .portfolio-bracket-mark {
  transform: translateY(-3px) scale(1.05);
}
.portfolio-bracket:active .portfolio-bracket-mark {
  transform: translateY(1px) scale(0.96);
}
@media (hover: hover) {
  .portfolio-bracket:hover .portfolio-bracket-mark {
    filter: drop-shadow(1px 7px 7px #7e30183d);
    transform: translateY(-3px) scale(1.05);
  }
  .portfolio-bracket:hover:before {
    opacity: 1;
    transform: scale(1.2);
  }
}
.portfolio-shell :where(a, button):focus-visible {
  outline-offset: 5px;
  outline: 2px solid #9d3d13;
}
.portfolio-sr-only {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}
.portfolio-empty {
  color: #675846;
  text-align: center;
  margin: 40px 0;
}
.portfolio-shell[data-mobile="true"] .portfolio-card-frame {
  /* Keep the glass gradients without resampling six moving backgrounds on iOS. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 11px;
  padding-left: 10px;
  padding-right: 10px;
}
.portfolio-shell[data-mobile="true"] .portfolio-card-eyebrow {
  height: 27px;
  font-size: 12px;
}
.portfolio-shell[data-mobile="true"] .portfolio-card-footer {
  gap: 7px;
  min-height: 76px;
  padding: 12px 1px 14px;
}
.portfolio-shell[data-mobile="true"] .portfolio-title {
  font-size: 17px;
}
.portfolio-shell[data-mobile="true"] .portfolio-category {
  font-size: 14px;
}
.portfolio-shell[data-mobile="true"] .portfolio-link-label {
  padding-left: 6px;
  font-size: 12px;
}
.portfolio-shell[data-mobile="true"] .portfolio-controls {
  gap: 22px;
}
.portfolio-shell[data-mode="list"] .portfolio-viewport {
  perspective: none;
  height: auto;
}
.portfolio-shell[data-mode="list"] .portfolio-stage {
  cursor: auto;
  -webkit-user-select: auto;
  user-select: auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 26px;
  display: grid;
  position: relative;
}
.portfolio-shell[data-mode="list"] .portfolio-card {
  will-change: auto;
  width: 100%;
  position: relative;
  top: auto;
  left: auto;
}
.portfolio-shell[data-mode="list"] .portfolio-orbit-line {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-card {
    will-change: auto;
  }
  .portfolio-card-frame,
  .portfolio-bracket-mark,
  .portfolio-bracket:before {
    transition: none;
  }
}
.portfolio-shell[data-height-constrained="true"] .portfolio-card-eyebrow {
  letter-spacing: 0.08em;
}
.portfolio-shell[data-height-constrained="true"] .portfolio-card-footer {
  min-height: 64px;
  padding: 9px 2px;
}
.portfolio-shell[data-height-constrained="true"] .portfolio-category {
  letter-spacing: 0;
}
.portfolio-shell[data-height-constrained="true"] .portfolio-title {
  font-size: 18px;
}
.portfolio-shell[data-height-constrained="true"] .portfolio-link-label {
  align-items: center;
  height: 31px;
  padding: 0;
  display: flex;
  position: absolute;
  top: 0;
  right: 14px;
}
