.service-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding-top: 0;
  list-style: none;
}


.service-list a {
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease);
  background: var(--white);
}

.service-list>li:nth-child(9) {
  width: 70%;
  align-self: flex-start;
}

.service-list li {
  border: 1px solid var(--bg-dark);
  margin-bottom: 5px;
  border-radius: 2.5px;
}

.sub-head {
  font-family: var(--hc);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 .5rem;
  font-style: italic;
}

.service-kicker {
  font-family: var(--hc);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 3rem;
  font-style: italic;
}

.pricing-card {
  width: min(500px, 100%);
  margin: 0;
}

.contact-pricing-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 3vh, 2rem);
  width: 100%;
}

.contact-section,
.contact-card {
  width: min(500px, 100%);
  margin: 0;
}

.footer .pricing-card h1 {
  padding: 0;
  margin: 0 0 24px;
  color: var(--text);
  font-family: var(--h1);
  font-size: 2em;
  font-weight: normal;
  line-height: 120%;
  text-align: right;
  text-transform: uppercase;
}



.work-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding-top: 0;
  list-style: none;
}

.work-list li {
  border: 1px solid var(--bg-dark);
  margin-bottom: 5px;
  border-radius: 2.5px;
}

.work-list a {
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease);
}

.work-list li:nth-child(9) {
  width: 70%;
  align-self: flex-start;
}

.left {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  min-width: 0;
}

.title {
  font-family: var(--display-bold);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}

.right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.meta {
  font-family: var(--hc);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}

.arrow {
  display: inline-block;
  font-family: var(--hc);
  font-size: 1.15rem;
  line-height: 1;
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}

.work-list a:hover,
.work-list a:focus-visible,
.service-list a:hover,
.service-list a:focus-visible {
  background: var(--bg-dark);
  color: var(--text-light);
  outline: none;
}

.work-list a:hover .meta,
.work-list a:focus-visible .meta,
.service-list a:hover .meta,
.service-list a:focus-visible .meta {
  color: var(--text-secondary);
}

.work-list a:hover .title,
.work-list a:focus-visible .title,
.service-list a:hover .title,
.service-list a:focus-visible .title {
  transform: translateX(5px);
}

.work-list a:hover .arrow,
.work-list a:focus-visible .arrow,
.service-list a:hover .arrow,
.service-list a:focus-visible .arrow {
  transform: translateY(-3px);
}







/* Archive tiles */
.carousel .wrapper {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.services-eye-panel {
  display: none;
}

@media (max-width: 900px) {
  #carousel-panel > .wrapper {
    position: relative;
    z-index: 1;
  }

  .services-eye-panel {
    --services-eye-mark-size: clamp(60px, 10vw, 70px);
    display: block;
    position: absolute;
    top: auto;
    right: auto;
    bottom: var(--page-inset);
    left: var(--page-inset);
    z-index: 1;
    width: calc(var(--services-eye-mark-size) + 10px);
    aspect-ratio: 1;
    pointer-events: none;
    transform: none;
  }

  .services-eye-panel .hero-motion__mark {
    width: var(--services-eye-mark-size);
  }
}

@media (min-width: 901px) {
  #carousel-panel {
    --services-eye-size: clamp(160px, min(15vw, 25vh), 230px);
  }

  #carousel-panel > .wrapper {
    position: relative;
    z-index: 1;
  }

  .services-eye-panel {
    display: block;
    position: absolute;
    top: calc(40% + var(--services-eye-size) - 9px);
    left: clamp(38px, 4vw, 55px);
    z-index: 1;
    width: var(--services-eye-size);
    aspect-ratio: 1;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .services-eye-panel > .hero-motion__mark:not(.hero-motion__mark--pupil) {
    rotate: -17deg;
  }

}

.carousel h1,
.archive h1,
.footer h1 {
  padding-top: calc(4 * (1rem + 0.3rem) + 3 * 0.7rem + 1rem);
  margin: 0 0 24px;
  text-align: right;
}

.carousel .service-kicker {
  flex: 0 0 auto;
  width: min(50%, 48rem);
  margin: 0 auto 0.5rem;
}

.carousel .service-list {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(7, minmax(clamp(2.4rem, 4.8vh, 3.1rem), auto));
  align-content: start;
  gap: 0;
  width: min(50%, 48rem);
  max-width: 48rem;
  min-height: 0;
  margin: 0 auto calc(-1 * var(--page-inset));
  padding: 0;
}

.carousel .service-list:has(.service-details.is-open) {
  flex: 0 0 auto;
  height: max-content;
  grid-template-rows: none;
}



.carousel .service-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  animation: none;
  opacity: 0;
  transform: none;
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease);
}

.carousel.has-entered .service-list li {
  opacity: 1;
}

.carousel .service-card-content {
  display: flex;
  width: 100%;
  height: auto;
  min-height: clamp(2.4rem, 4.8vh, 3.1rem);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  padding: 0.45em 3.5rem 0.45em 1em;
  background: transparent;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}

.carousel .service-toggle {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  display: grid;
  width: clamp(2.4rem, 4.8vh, 3.1rem);
  height: clamp(2.4rem, 4.8vh, 3.1rem);
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(calc(-50% - 3px));
  cursor: pointer;
  transition: color 220ms var(--ease), transform 220ms var(--ease);
}

.carousel .service-toggle:hover,
.carousel .service-toggle:focus-visible {
  outline: none;
}

.carousel .service-list li:has(.service-details:not([hidden])) .service-toggle {
  top: calc(clamp(2.4rem, 4.8vh, 3.1rem) / 2);
}

.carousel .service-details {
  max-width: 68ch;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0 3.5rem 0 calc(1em + 5px);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.3;
  text-transform: none;
  opacity: 0;
  transition: max-height 360ms var(--ease), opacity 240ms var(--ease), padding-top 360ms var(--ease);
}

.carousel .service-details.is-open {
  padding-top: 0.65rem;
  opacity: 1;
}

.carousel .service-details.is-open::after {
  content: "";
  display: block;
  height: 1.25rem;
}

.carousel .service-details>p {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--hc), sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: none;
}

.carousel .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.carousel .tech-stack li {
  display: block;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0.4em 0.65em;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  opacity: 1;
  font-family: var(--hc);
  font-size: 0.72rem;
  line-height: 1;
  transform: none;
  transition: none;
  white-space: nowrap;
}



.carousel .service-details[hidden] {
  display: none;
}

.carousel .service-list li:has(.service-details:not([hidden])) {
  min-height: max-content;
  height: auto;
  background: var(--bg-dark);
  color: var(--text-light);
}

.carousel .service-list li:has(.service-details:not([hidden])) .service-card-content,
.carousel .service-list li:has(.service-details:not([hidden])) .meta {
  color: var(--text-light);
}

.carousel .service-list li:has(.service-details:not([hidden])) .service-details,
.carousel .service-list li:has(.service-details:not([hidden])) .service-toggle {
  color: var(--text-light);
}

.carousel .service-list li:has(.service-details:not([hidden])) .service-details>p {
  color: var(--text-light);
}

.carousel .service-list .left {
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  padding-left: 5px;
}

.carousel .service-list .title {
  min-width: 0;
  white-space: normal;
  font-family: var(--display-bold);
  font-size: 1.4rem;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: normal;
}



.carousel .service-list .right {
  flex: 0 0 auto;
  width: auto;
  justify-content: space-between;
}

.carousel .service-list li:is(:hover, :focus-within) {
  border-color: var(--bg-dark);
}

.archive .wrapper {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.archive .work-list {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0 calc(-1 * var(--page-inset)) calc(-1 * var(--page-inset)) calc(-1 * var(--page-inset));
  padding: 0 calc(var(--page-inset) + var(--social-icon-size) + var(--social-icon-gap)) 0 0;
}

.archive .work-list li {
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 2px;
  animation: none;
  opacity: 0;
  transform: none;
}

.archive.has-entered .work-list li {
  opacity: 1;
}

.archive .work-list li:nth-child(9) {
  width: auto;
  align-self: stretch;
}

.archive .work-list a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: transparent;
  perspective: 900px;
}

.archive .work-card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease);
}

.archive .work-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  overflow: hidden;
  padding: clamp(0.65rem, 1.4vw, 1.15rem);
  background: var(--bg);
  backface-visibility: hidden;
}

.archive .work-card__front {
  border: 0;
}

.archive .work-card__back {
  padding: 0;
  background: var(--bg-dark);
  transform: rotateY(180deg);
}

.archive .work-card__back::after {
  position: absolute;
  z-index: 1;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 58%));
  content: "";
  pointer-events: none;
}

.archive .work-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive .work-card__back-copy {
  position: absolute;
  z-index: 2;
  top: clamp(0.65rem, 1.4vw, 1.15rem);
  right: clamp(0.65rem, 1.4vw, 1.15rem);
  left: clamp(0.65rem, 1.4vw, 1.15rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #fff;
  text-align: left;
}

.archive .work-card__back-copy .title {
  font-size: 1.4rem;
  line-height: 1.15;
}

.archive .work-card__back-copy .meta {
  position: relative;
  top: -3px;
  color: rgb(255 255 255 / 78%);
}

.archive .work-card:is(:hover, :focus-visible) .work-card__inner,
.archive .work-list li.is-flipped .work-card__inner {
  transform: rotateY(180deg);
}

.archive .work-list .left {
  width: 100%;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.2rem;
}

.archive .work-list .meta {
  position: relative;
  top: -3px;
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 0.15rem;
  color: var(--text-secondary);
  font-family: var(--hc), "Akkurat Mono", monospace;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
}

.archive .work-list .title {
  width: 100%;
  white-space: normal;
  font-size: 1.4rem;
  line-height: 1.15;
}

.archive .work-list .right {
  position: absolute;
  right: clamp(0.65rem, 1.4vw, 1.15rem);
  bottom: clamp(0.65rem, 1.4vw, 1.15rem);
  width: auto;
}

@keyframes archive-tile-drop {
  0% {
    opacity: 0;
    transform: translateY(-75vh) rotate(-2deg);
  }

  78% {
    opacity: 1;
    transform: translateY(0.6rem) rotate(0.4deg);
  }

  90% {
    transform: translateY(-0.2rem) rotate(-0.15deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.archive.is-entering .work-list li {
  opacity: 0;
  animation: archive-tile-drop 560ms cubic-bezier(.2, .75, .25, 1) both;
  animation-delay: var(--tile-delay, 0ms);
}

.carousel.is-entering .service-list>li {
  opacity: 0;
  animation: archive-tile-drop 560ms cubic-bezier(.2, .75, .25, 1) both;
  animation-delay: var(--tile-delay, 0ms);
}



html.social-bar-horizontal #carousel-panel .service-list,
html.social-bar-horizontal #archive-panel .work-list {
  padding-bottom: calc(var(--social-icon-size) + var(--social-icon-gap) + var(--tile-right-inset));
}

html.social-bar-horizontal #footer-panel .wrapper {
  padding-bottom: calc(var(--page-inset) + var(--social-icon-size) + 12px);
}
